iis

Authentication Error

I am trying to view a web page, fron an Android app, that requires authentication and get the following message: ----- Android webView error start -------- "You do not have permission to view this directory or page using the credentials that you supplied because your Web browser is sending WWW.Authenticate header field that the Web se...

How can I detect a child request?

I am trying to create an HttpModule in C# which will redirect arbitrary URLs and missing files, and which will perform canonicalization on all URLs that come in. Part of my canonicalization process is to redirect from default documents (such as http://www.contoso.com/default.aspx) to a bare directory. (like http://www.contoso.com/) I ha...

Performance monitoring for ASP.NET MVC2 ?

Hello, I would like to know if there is an equivalent of "New Relic RPM" or "JavaMelody" for ASP.NET MVC2 ? I can't find anything about monitoring on ASP.NET MVC2... Any idea ? How do you monitor the performances of you ASP.NET MVC2 applications ? http://www.newrelic.com/ http://code.google.com/p/javamelody/ Thank you ...

IIS to access SQL server on different machine

I have a Gui running on a server with the IIS and the SQL database both on the same machine. I have this connectionstring in the webconfig. Data Source=localhost\SQLEXPRESS;Initial Catalog=XYZDB;Integrated Security=True Now i want to access another database on a different server, i thought it would just take me to change "localhost" ...

Can ASP.NET MVC routing and a classic ASP homepage (VBScript, not web forms) play together nicely?

Hello, We have a classic VBScript "default.asp" page in the root of our site. (This is a heavy, legacy page and converting it is not an option right now.) We also have a new ASP.NET MVC 2 application we want to host on the same site. Everything actually works great together! Except for one thing: requests to the root of the site (e.g., ...

Unable to write a file in classic asp using IIS 6.0

I am using Windows 2003 and have an IIS website. I created a file called test.asp in the c:\inetpub\wwwroot directory with the following contents: <html> <body> <p>This is the text in the text file:</p> <% Set fs = Server.CreateObject("Scripting.FileSystemObject") set f = fs.CreateTextFile(Server.MapPath("testread.t...

IIS and WebDev server problem

developing web application i faced a problem. i wrote code, and it worked fine on webdev server in vs2010. i hosted it on remote iis, because, my windows 7 home basic doesnt have iis, and almost all code fails, so i had to rewrite it with using helpers for links, ResolveUrl and many other functions. So here is the question, how can i hos...

Creating an IIS site through setup

Hello I want to create an IIS site with setup and deployment. How can I create an installer that creates an IIS site? ...

Suggested IIS settings for WCF web service?

I've been reading the documentation on IIS settings, and haven't been able to find much on the MSDN site. I'm trying to figure out the preferred settings for a WCF REST service hosted in IIS6. Main goals of these settings should be reliability, restarting the service when needed, and max throughput. My service will use some processing ...

ASP.NET security exception with OpenWebConfiguration on shared host

After moving my web site from my local development environment to a shared host I get: Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust leve...

WCF and IIS confusion on the wsdl location

I created my WCF project and it works fine when I just run it from the debugger. But when I publish it to IIS and point a browser to the svc the path used has localhost in it. Like this: htpp://localhost/MyService/MyServices.svc but the path that the webpage says to go to for the WSDL uses my computer name, like this: http://MyComp...

How do I disable caching of an individual file in IIS 7 using weserver config settings

Is there any way to diable the caching of a single javascript file in my ASP.NET applicaiton without disabling the caching of any other files in the application? It is running on IIS 7 in Azure, so to me it seems that my only options of controlling this are within the webserver tags. I currently use the folowwing config, but this is di...

IIS + PHP + MySQL: A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306)

I'm running Windows, having installed IIS 7.5, PHP 5.3 (FastCGI). Trying to connect to MySQL and getting an error "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.". Started to develop a project with XA...

Strange Request URLs in logged ASP.NET exceptions, but not in IIS logs

Getting unhandled exception event log messages for legitimate exceptions but the event log message includes noise in the request URL. The noise is injected where uri escaped characters are. Noise like the apppool name, "An unhandled exception has occurred.", False and sometimes the request url itself recursively injected, sometimes a do...

Convert IIS rules to HTACCESS

Hi, how does one convert IIS Rewrite rules back to Apache/HTAccess rewrite rules? I'm looking at converting this: <rule name="SEO"> <match url="^([^/]+/)*([^/]+)\.(\d+)$" ignoreCase="false" /> <action type="Rewrite" url="index.php?id={R:3}" appendQueryString="false" /> </rule> Thanks in advanced! ...

IIS Worker Process and RAM question (w3wp.exe)

Hello. In my vds server (windows server 2008) some asp.net websites using iis worker and these use also 50 mb ram. Sometimes this is increase to 250 mb. Is it normal? ...

IIS7 Hijacks My Coldfusion Error Page

In my exception handling file, I set a statuscode to 404 and then render n HTML page, for the error page (think fail-whale). <cfheader statuscode="404" statustext="Application Exception"> <html><head><title>Error</title></head><body><h1>There was an error yo!</h1></body></html> This is obviously over simplified, but just to make sure...

When to add a service reference?

I'm building a WCF service that will get deployed to a server running IIS. I can add the service reference from the current solution and use it fine. If I deploy the service to that particular machine, will I need to re-add the service to the application that consumes it? ...

ASP.NET IIS Authentication issue for some users

I have an ASP.NET repository site running on IIS6.0 and I have an issue that I can't reproduce, but three of the users have this problem every time (~20 other users run just fine). I'm pretty sure it has something to do with the IIS Authentication setup, but I certainly haven't ruled out a coding mistake. The users tell me that the com...

Reading a file from a UNC path and setting the correct MIME type in a HTTP request

How would I go about reading a file from a UNC path, discovering the proper MIME type, and streaming that out to a browser? It feels to me like I'm re-inventing IIS, and I'll also have to maintain my own MIME type database for each file extension. Does the above request sound reasonable, or is there a better way? I plan on streaming t...