I keep getting this error when i try to create a web project.
I can create a windows app just fine.
I have IIS installed etc.
http://www.imagesticky.com/userimage..._net_error.JPG
Printable View
I keep getting this error when i try to create a web project.
I can create a windows app just fine.
I have IIS installed etc.
http://www.imagesticky.com/userimage..._net_error.JPG
Your IIS Server is configured incorrectly.
Can you visit http://localhost/ in your web browser?
if you CAN do what Rudi mentioned above, you may need to install ASP.NET onto IIS which can be done via the command line
aspnet_regiis -i
you can do a web search for aspnet_regiis if you want to learn more about what it does.
I did do that before and it said 1.1 or something was installed.
i tried to do aspnet_regiis -i
but the cmd line gave me error
If you're meaning the HTTP/1.1, that's the protocol, not your .NET Version.
Oh ok, so what do i do?
Sorry Im new at this stuff.
well did you try to type in
http://localhost/
in your browser and see if IIS is actually serving pages locally?
Can you actually visit http://localhost/? And if so what exactly do you get? A login box? A 404? A 500 error?
A copy and paste of the response would help. :)
I get this:
The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.
--------------------------------------------------------------------------------
Please try the following:
Open the localhost home page, and then look for links to the information you want.
Click the Refresh button, or try again later.
Click Search to look for information on the Internet.
You can also see a list of related sites.
HTTP 500 - Internal server error
Internet Explorer
Okay, who configured your IIS Server? If it was yourself you've done something wrong, so go back through what you changed and check for anything that may look out of place.
If it was someone else give them a call and tell them they broke your computer (Just joking)/they configured your server incorrectly (Really). They might know what they did wrong.
Go to IIS (start > run > inetmgr)
In the Default Website Properties, click on Configuration. You will find a list of handled file extensions. In that list, do you find any .htm or .htmls?
Also check the subdirectories... especially WebApplication1 for the same thing.
I'm guessing it would be in extension *.asp/*.aspx anyway?
And that's just triggered a thought, doesn't Visual Studio have it's own IIS Development mini-ASP Enabled server for testing?? If you press F5 it normally creates it's own lil' server.
Yes, that's for VS 2005. You mentioned VS 2003 in the title. And leave the .asp, .aspx extensions alone.
Did you find any .htm or .htmls, that's one possible cause for this error.
Ok, so i looked in IIS, right clicked and went to Default Web Site, but i dont see a config, i see a properties.
SO i went to that, but i dont see anything to do with file extentions.
After you click on properties, look for the configuration button.
Ok found it, i dont see .html etc in there
I do see asp and aspx in there
Ok found it, i dont see .html etc in there
I do see asp and aspx in there
OK, that path of troubleshooting's out the window. Need new troubleshooting steps.
http://support.microsoft.com/kb/822319
do you have your XP installation CD?
you could also just try to uninstall/reinstall IIS, and then rerun the aspnet_regiis -i to install ASP.NET on IIS.
This would be a "last resort" for me, but it would likely fix the problem.
Any other ideas?
Did you try reinstalling IIS?
Quote:
Originally Posted by RudiVisser
yes i tried to reinstall IIS but same error.
Joe, maybe try the steps outlined here (in order)
http://codebetter.com/blogs/peter.va.../08/24756.aspx
I had used this in the past to try to troubleshoot an IIS issue with VS 2003 and it helped me out. (not sure which of the steps solved the problem, but doing them all is a good way to get a clean start on IIS)
The whole process should take less than 30 minutes to try.
what does this mean
regsvr32 aspnet_isapi.dll
perform aspnet_regiis -i
regsvr32 is an exe that ships with windows and is in your windows\system32 folder. It is used for registering COM DLLs for use on a given system. COM dll files need to be "Registered" which consists of making registry entries to let the system know information about the file. regsvr32 does this automatically for you, so you just need to go do a cmd prompt, and type
This will register the ASP.NET DLL that interacts with IIS to be registered on the system for use.Quote:
regsvr32 C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll
aspnet_regiis -i (which I actually mentioned in post 3 above ;) ) is the command that actually installs ASP.NET onto IIS. IIS knows nothing about ASP.NET from the get go, as ASP.NET came out way after IIS 5.1.
However running aspnet_regiis -i (the -i is for install) runs the commands needed to install and configure ASP.NET to work on IIS (assuming IIS is setup correctly).
Keep in mind that this ALL is to resolve your issue at hand. Normally, on a "proper" working system, as long as IIS was installed before installing Visual Studio this all gets done automatically.
You should also make sure you shutdown any anti-virus app ESPECIALLY if it has firewall software built in, or any standalone firewall software.
I had zonealarm installed once, and even fully disabled, it screwed up Visual Studio and I couldn't load any of my ASP.NET projects. After totally uninstalling zone alarm, my PC was back to normal.
I did everything above and still getting an error:
http://imagesticky.com/files/1/neterror.JPG
anyone?
anyone?
Go back and run aspnet_regiis, but this time, do
aspnet_regiis -i -enable
Btw, are you using Windows 2003?
I just uninstalled IIS and .NET
I will do a fresh install and start again, and then do the above...
here is what i have what one do i run?
http://imagesticky.com/files/1/reggeds.JPG
anyone?
Start > Programs > Visual Studio 2003 > Visual Studio Tools > Visual Studio Command Prompt
In there, type those commands.
when i ran this, i cant open my .NET anymore it says one of the componest is missing and i need to reinstall.
I just reinstalled .NET and ran the above code, and got this, however i still get the error:
Here is what it says when i ran that code above.
http://imagesticky.com/files/1/error.JPG
Hmm... ok, here's something else to try.
Go to Internet Explorer. Tools. Options. Connections. Settings.
Do you have a proxy server specified? If yes, then make sure that the box "Bypass proxy server for local addresses" is checked.
Quote:
Originally Posted by mendhak
ok i did that...and still no go.
anyone?
Are you administrator on your machine?
yes..............Quote:
Originally Posted by mendhak