Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

c#

Display custom error page when file upload exceeds allowed size in ASP.NET MVC

September 2, 2022 by Magenaut

My main issue is that I want to display an custom error page when an uploaded file exceeds allowed size (maxRequestLength in web.config).

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, c#, iis-6, iis-7 Leave a comment

Programmatically get Summary comments at runtime

September 2, 2022 by Magenaut

I’m looking for a way to programmatically get the summary portion of Xml-comments of a method in ASP.net.

Categories ASP.NET, Q&A Tags asp.net, c#, documentation, reflection Leave a comment

Getting current directory in .NET web application

September 2, 2022 by Magenaut

So I have a web project, and I’m trying to get the root directory of the website using the c# method Directory.GetCurrentDirectory(). I don’t want to be using a static path as the file locations will be changing in the future. This method is running in my imageProcess.aspx.cs file, but where I thought it would return:

Categories ASP.NET, Q&A Tags .net, asp.net, c#, directory, filepath Leave a comment

Why use HttpClient for Synchronous Connection

September 2, 2022 by Magenaut

I am building a class library to interact with an API. I need to call the API and process the XML response. I can see the benefits of using HttpClient for Asynchronous connectivity, but what I am doing is purely synchronous, so I cannot see any significant benefit over using HttpWebRequest.

Categories ASP.NET, Q&A Tags asp.net, c#, dotnet-httpclient Leave a comment

The data source does not support server-side data paging

September 2, 2022 by Magenaut

I have a GridView on my screen and need it to allow paging.

Categories ASP.NET, Q&A Tags asp.net, c#, gridview, linq, sorting Leave a comment

Currency format for display

September 2, 2022 by Magenaut

Is there a way to format the correct currency representation for a country?

Categories ASP.NET, Q&A Tags .net, asp.net, c#, currency, globalization Leave a comment

The request was aborted: Could not create SSL/TLS secure channel

September 2, 2022 by Magenaut

My customer has informed my of issues with their SSL and Internet Explorer. They said they get trust issues when accessing the URL.

Categories ASP.NET, Q&A Tags asp.net, c#, httpwebrequest, ssl Leave a comment

Make ASP.NET WCF convert dictionary to JSON, omitting “Key” & “Value” tags

September 2, 2022 by Magenaut

Here’s my dilemma. I’m using a RESTful ASP.NET service, trying to get a function to return a JSON string in this format:

Categories ASP.NET, Q&A Tags asp.net, c#, json, rest, wcf Leave a comment

asp.net asmx web service returning xml instead of json

September 2, 2022 by Magenaut

Why does this simple web service refuse to return JSON to the client?

Categories ASP.NET, Q&A Tags asmx, asp.net, c#, json, web-services Leave a comment

How do I see the raw HTTP request that the HttpWebRequest class sends?

September 2, 2022 by Magenaut

I know you are all going to answer “use a debugging proxy server like Fiddler” but it’s not that simple.

Categories ASP.NET, Q&A Tags asp.net, c#, debugging, httpwebrequest, proxy Leave a comment
Older posts
Newer posts
← Previous Page1 … Page98 Page99 Page100 … Page451 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress