M
MichiMichi
When using Server.MapPath on IIS 5 on my localhost everything works
well. All of the following commands are executed without any error
Response.Write(Server.MapPath("/app_test") & "<br>")
Response.Write(Server.MapPath("app_test") & "<br>")
Response.Write(Server.MapPath("~") & "<br>")
However, running the first statement on via the internal Visual Studio
2005 Server I receive an error for
Server.MapPath("/app_test")
Source File: C:\Documents and Settings\machine.namei\My Documents
\Visual Studio 2005\WebSites\testing\phishingPics\Default2.aspx.vb
Line: 10
Stack Trace:
[InvalidOperationException: Failed to map the path '/app_test'.]
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath
virtualPath, Boolean permitNull) +3521356
System.Web.VirtualPath.MapPathInternal() +41
System
What can I do to make this work on my testing enviroment with the
light weight webserver on Visual Studio 2005
well. All of the following commands are executed without any error
Response.Write(Server.MapPath("/app_test") & "<br>")
Response.Write(Server.MapPath("app_test") & "<br>")
Response.Write(Server.MapPath("~") & "<br>")
However, running the first statement on via the internal Visual Studio
2005 Server I receive an error for
Server.MapPath("/app_test")
Source File: C:\Documents and Settings\machine.namei\My Documents
\Visual Studio 2005\WebSites\testing\phishingPics\Default2.aspx.vb
Line: 10
Stack Trace:
[InvalidOperationException: Failed to map the path '/app_test'.]
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath
virtualPath, Boolean permitNull) +3521356
System.Web.VirtualPath.MapPathInternal() +41
System
What can I do to make this work on my testing enviroment with the
light weight webserver on Visual Studio 2005