Tagged Questions
63
votes
6answers
34k views
Login failed for user 'IIS APPPOOL\ASP.NET v4.0'
I have a web project (c# asp.net, EF 4 and MS SQL 2008 & IIS 7)
I need to move my website (that was working with no problem in CASSINI) to IIS 7 locally.
So locally in IIS I have my Default Web ...
20
votes
4answers
10k views
Display custom error page when file upload exceeds allowed size in ASP.NET MVC
My main issue is that I want to display an custom error page when an uploaded file exceeds allowed size (maxRequestLength in web.config).
When the big file is uploaded an HttpException is thrown ...
6
votes
2answers
2k views
Can gzip compression be selectively disabled in ASP.NET/IIS 7?
I am using a long-lived asynchronous HTTP connection to send progress updates to a client via AJAX. When compression is enabled, the updates are not received in discrete chunks (for obvious reasons). ...
50
votes
4answers
14k views
Is Enabling Double Escaping Dangerous?
I have an ASP.NET MVC application with a route that allows searching for stuff via /search/<searchterm>.
When I supply "search/abc" it works well, but when I supply "/search/a+b+c" (correctly url ...
13
votes
1answer
6k views
Using ServerManager to create Application within Application
I'm using ServerManager (Microsoft.Web.Administration.dll) to create an Application within a website on IIS 7.
I need to create an application within this application or convert a virtual directory to ...
18
votes
4answers
2k views
Workaround for HttpContext.HideRequestResponse being internal? Detect if HttpContext.Request is really available?
We're migrating an application to use IIS7 integrated mode. In library code that is designed to work either within the context of an HTTP request or not, we commonly have code like this:
if ...
14
votes
10answers
43k views
The requested page cannot be accessed because the related configuration data for the page is invalid error
I want to upload my own asp.net website on the IIS through IIS manager. But when i do this i get the following error
HTTP Error 500.19 - Internal Server Error The requested page cannot be
...
2
votes
1answer
13k views
WCF Service 405 Method Not Allowed Exception
I'm writing a WCF service in Visual Studio 2008 to be hosted on a Windows 2008 Standard server.
I've created a new Web Site in IIS7 with its own application targeted to ASP.NET 2.0. I added .NET 3.0 ...
2
votes
5answers
4k views
Posting forms to a 404 + HttpHandler in IIS7: why has all POST data gone missing?
OK, this might sound a bit confusing and complicated, so bear with me.
We've written a framework that allows us to define friendly URLs. If you surf to any arbitrary URL, IIS tries to display a 404 ...
1
vote
2answers
1k views
WindowsIdentity and Classic .Net App Pool
I have a ASP.NET website that requires my App Pool be the Classic .Net App Pool. The site is running on .NET 3.5 on IIS 7. When I try to get the Active Directory User name of the logged in user:
...
1
vote
2answers
5k views
System.Data.SqlClient.SqlException: Timeout expired
Coupled days ago I noticed that my web application giving me sql an exception timeout expired.
I cleaned up couple stored procedures taking more cpu and restarted SQL Server service and my ...
1
vote
2answers
3k views
Disable authentication on subfolder(s) of an ASP.NET app using windows authentication
Is it possible to disable windows authentication on one or more subfolders of an ASP.net application using windows authentication?
For example:
A website contains several other folders that contain ...
12
votes
7answers
6k views
Signalr/Hub not loading in IIS 7 but working correctly in Visual Studio
I am working on a Web Application on the Asp .Net 4.0 framework that uses SignalR, having installed it from the Nuget package. When I debug or run the application without debugging locally it works ...
15
votes
2answers
6k views
How to programmatically get sites list and virtual dirs in IIS 7?
Does anybody know how to programmatically get the sites list and virtual dirs in IIS 7?
3
votes
2answers
2k views
How to create subdomains for IIS7 programmatically?
I'm writing a SaaS app in C#/ASP.NET, hosted with IIS7. I want to create a personalized subdomain for every customer that signs up, i.e. fred.mydomain.com, bob.mydomain.com, each of which will point ...