Configuring .ASP pages in IIS 7.5 in Windows server 2003 - asp-classic

I am trying to add a virtual directory in IIS 7.5 version of Windows server 2003. But i could not browse my default.asp page. How can i troubleshoot this issue ?

I believe you installed IIS Express7.5... correct? If that is the case, take a look at failed request trace log files located in "%userprofile%\My Documents\IISExpress\TraceLogFiles\" and also see if there are any interesting events in event viewer.

Related

Setting up a simple website with IIS

I am trying to create an ASP.NET MVC 4 website and serve it with IIS 7.5. So, I build it in Visual Studio, and then publish the code to a directory. In IIS Manager, I create a new website, whose physical path is the publish directory. The bindings are http:*:80:.
However, when I try to reach the website by typing in the name of my machine on a browser, I get the following error message:
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
What's going on here?
Karnivaurs
Try to use "localhost" or the loop back ip "127.0.0.1" to get to the site.
For the browsing, If its available in IIS then you have to enable it. See here
I wonder if you have the same issue that happened with this question, it solved my problem with IIS on Windows 8
MVC 4 website with .NET 4.5 on IIS 8 in Windows 8 gives 403.14 forbidden error
Does it work when you run it straight from visual studio? Do you have home/index? To enable directory browsing in IIS , you need to double click on Directory Browsing and Enable it. That way you can see the content of the directory. After that, you can browse to your html page.

Getting 404 when accessing xml file having german characters in name on IIS6

I have a web application developed in ASP.NET. This app is setup on IIS 6 on windows 2003 server and same application setup on on IIS 7.5 on windows 2008 server. I have some xml files on root of the website having special characters in german i.e. ä,ö etc. When I try to access this file for example:
http://mytestxml.com/äötest.xml , it is accessible on IIS 7.5 but when I try to access the same on IIS 6, it comes up with 404 error. Just want to mention that nothing has been done to make it work on IIS 7.5.
Could anyone please suggest on this issue. how it could be resolved? I am really getting troubled with it and need to resolve it asap. Any help would be greatly appreciated.
I had this problem on IIS 10 and marking "Allow high-bit characters" in IIS Request Filtering settings fixed it for me.

Html code shows when browse the home.aspx

I have windows server 2008 R2 and IIS 7 to host the website. When I create the virtual directory and set the default document say Home.aspx and host the site. When I browse the page it shows the home page's html code. I have test this many times but same issue. Any thing wrong in my code aur any issue in hosting the site. Pls do the needfull.
Thanks
Dinesh Kumar
Looks like IIS is not setup to use .NET.
You can install .NET on IIS by going to the framework directory of the version you are using (%WINDIR%\Microsoft.NET\Framework\v.XXXXXX) and executing aspnet_regiis.exe.

ASP.Net MVC2 - IIS7.5 doesn't find view file for home page

We have a mid-sized asp.net project that we just promoted from our dev server (Windows 2003) to an external test server (Windows 2008 R2).
On the test server, IIS is not finding our home page, which is located in the views/home folder (404 error). As far as we can tell, the settings are the same on both servers. I've confirmed HTTP redirection is installed.
Is there perhaps some critical configuration we may have missed on IIS7.5 to let it know where to find the view and/or home page?
What do you mean by "not finding"? Are you getting 404 error?
I had a similar situation which was related with bad install of ASP.NET on windows 7 machine, so I would recommend you to:
Check if ASP.NET is installed on server
Run aspnet_regiis to check that ASP.NET correctly registered with IIS
We changed the App Pool for 4 classic to 4, seemed to fix the 404 issue.

Getting 404 with locall IIS 7 served page

My setup:
Vista 64-bit PC (my local PC)
IIS 7 obviously
VS 2008
I setup a new "Application" manually under the IIS default site. It's running.
The application is pointing to the correct directory (where my default.aspx exists)
I've setup this same exact setup on our dev server running Server 2008 and it runs fine
But for me, when I go to http://localhost/MyAppName I get a 404 not found.
I have no clue why.
So since that did not work and still got a 404, then I tried instead changing from using the VS web server to using IIS in my web project properties in the "Web" tab in VS 2008. Then clicked the "Create Virtual Directory" button and it created a new Application in IIS for me. Same thing though. If I go to that address, I get a 404 on my local machine where it's running.
Ok, I had not installed the IIS 6 functionality of IIS in Vista. I did not know it still used legacy features in IIS 7 to run sites locally....I guess. Not sure why but I guess it uses these IIS6 features. Will have to research why it's dependent on this stuff.
Do you have the home directory to look for "default.aspx" as the default page?
A couple things to check:
First, look at your access logs to see exactly what request is getting logged.
Check your IIS config - you may have a default.aspx page, but is IIS configured to use that as one of the default pages? If you go to http://localhost/AppName/default.aspx do you still get a 404?
If you put a static test.html file in the same directory, can you access it?
These should all help determine the cause.

Resources