I'm having this problem on a new cruisecontrol.net install running on Windows Server 2003 where I cannot browse to http://localhost/ccnet/default.aspx.
I can, however, browse/open .html files, just not .aspx pages.
The errors I get when trying to access .aspx pages are:
In IE: "Internet Explorer cannot
display the web page".
In Chrome: "Error 101:
ERR_CONNECTION_RESET".
I've done the aspnet_regiis thing and double-checked my web extensions. Web extensions show as "ASP.NET 1.1.4322" and "ASP.NET 2.0.50727", both set to "Allowed".
Any ideas?
You may get a Page cannot be found message when you browse aspx pages in a Windows Server 2003 environment.
That is because in Windows 2003, all the webservice extensions are "Prohibited" by default to ensure security.
To resolve this, do the following steps:-
From your Run command, type inetmgr and press enter.
Expand the appropriate nodes in the IIS to locate the "Webservice Extensions" Node
Click on the same.
You will find a list of "prohibited" extensions in the right.
Click on ASP.NET and "allow" it
That should resolve this issue.
This applies for Windows Server 2003, IIS 6.0 environment.
pulled from: Link
I figured it out... sort of. The solution (if you want to call it that) was to uninstall IIS, reinstall IIS, then reinstall Windows 2003 Server SP2. After that, works perfectly.
Related
I am having the strangest issue. My website has been working perfectly in Visual Studio 2008 until I tried to work on the website in Visual Studio 2012. Having abandoned that idea, I am now back to Visual Studio 2008 with the following problem.
Problem:
Any page inside any folder displays a "Page can't be displayed" error or similar in all browsers (IE, Firefox, Chrome, Safari) UNLESS the page is a Default.aspx page. Break points do not load for any of the pages having problems, although debugging is enabled in Web.config. There are no errors in the event viewer.
Possible reason for problem:
I tried working on the website in Visual Studio 2012. After it didn't recognize any of the imports, etc., I decided to just continue using Visual Studio 2008.
I also deleted all of the files and folders in my %temp% directory
What I've tried:
Create a new blank page in any folder to see if it will display; the page has the same error
Comment out all code on an existing non-Default.aspx page; same problem
Check the hosts file; nothing is active and other changes I've made had no effect
Browse to another page from Default.aspx; same problem "Page can't be displayed"
Checked for new AV, malware, etc. software recently installed; none installed
Created a new site on the same machine to see if new site will have the same problem. New site works just fine.
Cleared out the contents of C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files; no change
Environment:
Visual Studio 2008 on Windows 7 x64. The backend is in VB .Net
Running on the developer machine using ASP .Net Development Server
Any and all help is appreciated.
Thank you.
So, I figured it out. Essentially, I was redirecting all but the Default.aspx pages to https (inside Global.asax). While this works on the production server that has valid certs, on the development machine, all one gets is the aforementioned behavior. Thank you all for the comments and suggestions.
Had the same error.
Turning customErrors Off worked for me.
In web.config:
<customErrors mode="Off" defaultRedirect="ErrorPage.aspx" ...>
In my case, Dropbox happened to be using the same port (49210). Fixed my issue by terminating the conflicting application. Alternately, change the port under the Project's properties.
I am new to IIS and it is annoying the hell out of me!
I have an asp.NET website that runs beautifully on visual studio 2010, so what i do, is publish the website, put the published website folder in the inetpub/wwwroot folder, connect all the dots, then in my browser i type in http://localhost:8080/A3Media/ and it brings up my index.html page. So the IIS is working correctly because it happily displays .html files. but when i try and access a .aspx file in my website. I get i weird 404 error saying the document doesnt exist. When it obviously does exist because... I checked... multiple times!
So i deducted that my IIS doesnt like .aspx files or anything to do with asp.NET.
So i make sure that i have all the asp.net modules installed by following the usual "windows features" and making sure the asp.net folder is ticked and installed, along with all the depending asp.net folders.
and my website still doesnt work.
have i missed something?
i have no idea:(
One of two options spring to mind.
Have you registered ASP.NET? aspnet_regiis.exe -i Link
cmd -> cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
C:\Windows\Microsoft.NET\Framework\v4.0.30319> aspnet_regiis.exe -i
In IIS manager - Request Filtering - Is .aspx denied?
Make sure you convert your "A3Media" directory into ASP.NET Application via IIS Manager, please see Deploying ASP.NET Websites on IIS 7.0 for more details.
I have an asp.net website that has been running well in IIS 6.0. I very well remember the sites ASP.NET version was set to version 2.0 in IIS but i just checked and found the version set to nothing. If i click the site asp.net version dropdownlist in IIS, i can see two options(1.1.4322 and 2.0.50727).
The problem is i set it back to 2.0 and now the site can nolonger be accessed both remotely and locally.
And i cant set it back to "nothing" since the version dropdownlist only has two options( 2.0.50727 and 1.1.4322).
Any ideas what could be going wrong.
Below is what i get in the browser
The page cannot be found The page you
are looking for might have been
removed, had its name changed, or is
temporarily unavailable.
Please try the following:
•Make surethat the Web site address displayed in
the address bar of your browser is
spelled and formatted correctly.
• If
you reached this page by clicking a
link, contact the Web site
administrator to alert them that the
link is incorrectly formatted.
•Click the Back button to try another
link. HTTP Error 404 - File or
directory not found. Internet
Information Services (IIS)
Technical Information (for support
personnel) •
Go to Microsoft Product
Support Services and perform a title
search for the words HTTP and 404.
• Open IIS Help, which is accessible
in IIS Manager (inetmgr), and search
for topics titled Web Site Setup,
Common Administrative Tasks, and About
Custom Error Messages.
This is the culprit
http://blogs.msdn.com/b/webtopics/archive/2010/06/14/iis-6-applications-may-stop-responding-after-you-install-microsoft-update-kb-982666.aspx
It sounds like .NET isn't properly installed on your IIS website.
Try to open a command prompt, step into %windir%\Microsoft.NET\Framework\v2.0.50727\ and run aspnet_regiis.exe (use the directive -? for help). If you only run one IIS website on your server you can run aspnet_regiis.exe -i
Hope this may help you.
.net 1.1 and .net 2.0 don't get along well on IIS 6.0. You must run one of the frameworks in a different app pool - so, for every 1.1 website, for example, run it in a new app pool (other than the default).
I recently installed Visual Studio 2010 and it works fine except one thing:
When I press the ASP.NET Configuration button above the solution explorer, nothing happens.
I'm running Windows 7 32-bit and have setup a server using aspnet_regsql.exe, which is correctly configured in web.config with LocalSqlServer connectionstring and in the membership and role provider.
I hope you can help. Thanks in advance.
Most likely this is because the path to your application contains non-standard characters (such as a space). Open your browser and point it to this URL to get the asp.net configuration page.
http://localhost:<port>/asp.netwebadminfiles/default.aspx?applicationPhysicalPath=<path to webapp>&applicationUrl=<application url>
Remember to escape non-standard URL characters (ie. a space is %20).
The "application url" by default is /
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.