View previous topic :: View next topic |
Author |
Message |
Yami King -
Joined: 08 Sep 2005 Posts: 120
|
Posted: Tue Jul 04, 2006 1:41 pm Post subject: The virtual path 'path' maps to another application.. |
|
|
Bloody ASP.NET, even the simplest code doesn't work :evil:.
I placed my ASP.NET 'Application' in the htdocs/ASPdotNET/ASPdotNET Bible/ directory under the name of SampleVB.aspx.
The contents of this file are:
Code: | <%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
</head>
<body>
<% Response.Write("Hello webserver from SampleVB.aspx!") %>
</body>
</html> |
I did set the parameters of Abyss properly, but why does it return this error, when I open the page from my localhost:
Server Error in '/learn/ASPdotNET/ASPdotNET Bible' Application.
The virtual path '/learn/ASPdotNET/ASPdotNET%20Bible/SampleVB.aspx' maps to another application, which is not allowed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: The virtual path '/learn/ASPdotNET/ASPdotNET%20Bible/SampleVB.aspx' maps to another application, which is not allowed.
Source Error:
Quote: | An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
Quote: | [ArgumentException: The virtual path '/learn/ASPdotNET/ASPdotNET%20Bible/SampleVB.aspx' maps to another application, which is not allowed.]
System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +270
System.Web.HttpContext.GetFilePathData() +27
System.Web.HttpContext.GetConfigurationPathData() +27
System.Web.Configuration.CustomErrorsSection.GetSettings(HttpContext context, Boolean canThrow) +80
System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean canThrow, Boolean localExecute) +88
System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext context, Exception e) +515 |
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Can someone help me with this? |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Jul 05, 2006 2:00 pm Post subject: Re: The virtual path 'path' maps to another application.. |
|
|
Yami King,
What are the virtual paths declared as ASP.NET applications in Abyss Web Server? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Jul 05, 2006 2:02 pm Post subject: Re: The virtual path 'path' maps to another application.. |
|
|
Is there also a Web.config file in one of the directories? If so, can you copy/paste its contents here? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Yami King -
Joined: 08 Sep 2005 Posts: 120
|
Posted: Wed Jul 05, 2006 2:25 pm Post subject: |
|
|
I think I know what the problem is, Visual Studio 2005 created a Web.config, and the default ASP.NET directories such as Bin, App_Code, etc..
It also pasted some code in my page (bloody VS2005!) which used the code-behind method.
That's probably what the error's about, because http://aspspider.biz/iwanweb/apps/SampleVB.aspx
and
http://aspspider.biz/iwanweb/apps/SampleCSharp.aspx
both work correctly, while they have the same code, except that these files were just created in Notepad.
:D |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Jul 06, 2006 11:59 am Post subject: |
|
|
Yami King,
If there is a /bin directory created inside your orginal application by VS2005, all you have to do is to copy it with the .aspx files. In other words, reproduce in the deployment directory the same layout/architecture as in the development one. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|