iis-7.5

Why is my ASP.NET MVC 2 application reporting "The resource cannot be found."?

I deployed my first ASP.NET 4.0/MVC 2 application onto a staging and test server. The problem is that when I browse to the application I just get the ASP.NET 404 "The resource cannot be found." page. The application was written using: Visual Studio 2010 Premium Target Framework: .NET 4.0 ASP.NET MVC 2.0 The application is deployed o...

IIS 7.5: Setting 'app pool user' as the anonymous user programmatically

I have an web app in IIS 7.5 with its own AppPool using .net 4. I want to use the feature of having anonymous access as the app pool identity - which is easily configured in a GUI via the inetmgr snapin. Is there any way do this programmatically, for instance through web.config? I've looked around and it appears that the anonymousAuth...

Windows Workflow Foundation and IIS ApplicationPool recycle (particularly after editing Web.config)

I am involved in testing an ASP.NET MVC site that uses a WF service hosted as a separate site on the same IIS server. We currently use Log4Net to assist with diagnostics in Stage and Production, so sysadmins are regularly setting the logging levels from WARN to DEBUG and back again for brief periods in order to capture logs. I've notic...

Why does appcmd.exe behave differently when executed inside a batch file?

I have the following appcmd to add an exception to IIS7's ISAPI and CGI restrictions. The exception I am adding should look like: c:\perl\bin\perl.exe "%s" %s Here is the command line: appcmd set config -section:isapiCgiRestriction "-+[path='c:\perl\bin\perl.exe \"%s\" %s', allowed='true', description='Perl CGI']" If execute this fr...

System.IO.Directory.Exists in web application

Hello, I am faced with this strange problem: In an .net web application, there is some code equivalent to this: if (Directory.Exists("config")) { ... } It basically checks to see if C:\Windows\system32\inetsrv\config directory exists, why the code is written like this is beyond me and this question. What confuses me is the above co...

IIS 7.5 Can't open Handler Mappings?

I need to update the handler mappings on IIS 7.5 to allow URLs that don't have extensions to be routed to an application. The application was originally written in ASP.NET 2.0, but then later upgraded to ASP.NET 3.5. I don't know if that has relevance, but I've had no problem updating handler mappings for other .net 3.5 apps before. I sh...

Can I install IIS 6 & IIS 7.5 on the same Windows 7 machine?

I'm having trouble with an app that runs on IIS 6, but not IIS 7.5 (as outlined in this question: IIS 7.5 Can't open Handler Mappings?) I think it might solve the problem if I could run IIS 6 on my machine as well as 7.5. Can this be done? Will it cause any problems if I do this? ...

MVC.NET Routing works in development server but not on IIS 7.0

I've upgraded our project from being a website to a web app and imported to VS2k10. I've added the following references: System.Web.Abstractions System.Web.MVC System.Web.Routing ... Changed target framework to 4.0... Added a controller 'HomeController.cs'... This now works in the development server but NOT in IIS 7.0 Windows Serv...

My ASP.NET MVC2 application with Forms Authentication is blocking access even to Images, Styles and Scripts

Hi, I'm developing a MVC2 application and using Forms Authentication on it. The scripts, images and styles are all blocked to unlogged users and, consequently, the login page looks awful. It works well local, the problem is when I publish to the server. Does anyone has any idea WHY???? PS: The server IIS is version 7.5 My Web.config...

Why does using IIS7.5's Microsoft.Web.Management.dll only work in a 64bit process?

I'm writing some code to permit users to remotely manage IIS7. Under the bonnet this adds authorisation rules to c:\windows\system32\inetsrv\config\administration.config under the following config section: system.webServer/management/authorization/authorizationRules I'm using the Microsoft.Web.Administration assembly and namespace ...

HTTP 404 error while trying to browse web site created on IIS 7.5

hi, I am completely newbie with IIS. I have Win2008 with IIS 7.5 installed. I can start "Default Web Site" via IIS Manager GUI , but I get "HTTP 404 error - webpage cannot be found" while trying to browse it. What webpage is expected ? I have index.htm & default.aspx under c:\inetpub\wwwroot ... Also , I am not sure where to look for th...

IIS Manager can't configure .NET Compilation on .NET 4 Applications

Hi, i tried to configure the .NET Compilation Settings in the IIS Manager but all i see is an Error Message that tells me that there is an unrecognized element in the web.config file in C:\windows\Microsoft.NET\Framework64\v.4.0.30319\config\. A little bit strange for me is, that i get this error message on my Windows 7 System and also...

IIS 7 compression not working

Hi guys, I have a Windows server 2008 R2 with IIS 7. By default when you create a site in IIS, Compression is enabled. I checked the Compression module and both Checkboxes are checked. Now, I am using fiddler to check if pages are being compressed but it seems they are not as the No Compression is selected and the page size is over 10...

WebDav troubles for restfull WCF web service

Hi all, I created a WCF restfull service in .NET 4 and I published it under IIS 7.5/windows 7 x86. The verbs GET and POST worked fine, but the DELETE and PUT gave an error: Error: The remote server returned an error: (405) Method Not Allowed. After googling (a lot), I've found out that the problem is caused by WebDav module which ...

ASP.Net 3.5 WebForms app - problems with images & subfolders in IIS 7.5

Hello - I recently moved my development to a Windows 7 machine, and am having all sorts of trouble getting basic things to work. I have a pretty run-of-the-mill Web Forms app that is in .Net 3.5. It is developed in VS 2008. Having moved it to my new dev machine, I can't get the site to serve up any images (that are in an images/ folder)...

Script not served by static file handler on IIS7.5

I've just tried to deploy my first web application to IIS on my Windows 7 Home Premium notebook. After creating the application, I had to change to the Classic App Pool, then set that pool for framework 4.0. Now I get the following error: HTTP Error 404.17 - Not Found The requested content appears to be script and will not be served b...

Setting Up An FTP Server: IIS 7.5

I think I might have incorrectly configured an ftp site (it's my first time setting one of these up) in IIS 7.5 on Windows Server 2008 R2, but I'm not sure where I've gone wrong. The error that I keep getting is "User cannot log in, home directory inaccessible." This happens when I: Open up a Windows command prompt. Type ftp localhos...

Unable to start debugging IIS 7.5 Detailed Error - 500.19

I tried to run my WebApp on my local machine today (nothing has changed on it) and I had the above error. I know my machine had a windows update recently (not sure if that has anything to do with it). The error produces a big print out of css styles and html markup. In the markup it also says "The requested page cannot be accecssed bec...

IIS 7.5 no images css js showing

I have 2 Windows 2008 R2 x64 servers NLB, ARR with shared configuration. I have the application files in a network share. ASP.net pages (.aspx) come up fine but no css,images,js work. I also have a .htm file shows css and images just fine. In the iis log I do see a 401.3 message. So it seems to be permissions but not sure what else to...

IIS7.5 running both 32bit and 64bit websites

Can someone tell me if its possible to run both a 64bit compiled web site and a 32bit compiled website on the same IIS7.5 machine. The core OS would be Windows 2008 R2 64bit. I looked around and can only find how to switch the appPools to 32 or 64. But the question I want answered is can you have one appPool 32bit and another 64bit? ...