error when opening a project

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When I am creating a new web project in visual studio.net an error with following message "Unable to create Web project 'Web Application'. The file path d:/inetpub/wwwroot does not correspond to the URL 'http//localhost/webapplication1'. The two need to map to the same server location." is coming. But the location is correct and same d:/inetpub/wwwroot. I am using windows 2003 server. I tried a lot but all in vain
Again when tying http://computer name/file name.asp " the page cannot be displayed message†come
But when typed like this http://localhost/file name.asp the page is correctly displayed, why
Any suggestion would be greatly appretiated

regard
shine
 
shine said:
When I am creating a new web project in visual studio.net an error with
following message "Unable to create Web project 'Web Application'. The file
path d:/inetpub/wwwroot does not correspond to the URL
'http//localhost/webapplication1'. The two need to map to the same server
location." is coming. But the location is correct and same
d:/inetpub/wwwroot. I am using windows 2003 server. I tried a lot but all in
vain.
Again when tying http://computer name/file name.asp " the page cannot be displayed message" comes
But when typed like this http://localhost/file name.asp the page is correctly displayed, why?
Any suggestion would be greatly appretiated.

regards
shine

It sounds like your IIS is not properly mapped to Visual Studio .NET. Try
repairing
the mapping between IIS and Visual Studio .NET.
Knowledge Base article #306005, which says in part:
"To repair IIS mappings for ASP.NET, you can run the Aspnet_regiis.exe
utility. To do so, follow these steps:
1.. Click Start, and then click Run.
2.. Type cmd, and then click OK.
3.. At the command prompt, type
"%windir%\Microsoft.NET\Framework\<version>\aspnet_regiis.exe" -i, and then
click OK. In this path, <version> represents the version number of the .NET
Framework that you installed on your server. You must replace this
placeholder with the actual version number when you type the command.

Note To repair IIS mappings for ASP.NET, you must correctly register the
Aspnet_isapi.dll. To do so, follow these steps:
1.. Click Start, and then click Run.
2.. Type regsvr32
%windir%\Microsoft.NET\Framework\<version>\aspnet_isapi.dll, and then click
OK. Regsvr32 returns the results of the registration. "
Hope this helps.

Peter [MVP Academic]
 
Back
Top