[Mono-aspnet-list] /demo/2 directory is searched instead of /demo2
Andrus Moor
kobruleht2 at hot.ee
Mon Aug 10 13:27:00 EDT 2009
My web application works OK when place to htdocs/demo folder.
Application root folder contains StockService.asmx file.
After copying same application to htdocs/demo2 folder POST request
POST /demo2/StockService.asmx
returns 404 error with content below.
For strange reason Mono looks for /demo/2/StockService.asmx file which
does not exist.
How to fix ?
Andrus.
<?xml version="1.0" ?>
<!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" xml:lang="en"
lang="en"><head><title>Error 404</title><style type="text/css">body
{font-family:"Verdana","DejaVu
Sans",sans-serif;font-weight:normal;font-size:
.7em;color:black;background-color: white}
p {font-family:"Verdana","DejaVu
Sans",sans-serif;font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana","DejaVu
Sans",sans-serif;font-weight:bold;color:black;margin-top: -5px}
h1 { font-family:"Verdana","DejaVu
Sans",sans-serif;font-weight:normal;font-size:18pt;color:red }
h2 { font-family:"Verdana","DejaVu
Sans",sans-serif;font-weight:normal;font-size:14pt;color:maroon }
pre,code {font-family:"Lucida Console","DejaVu Sans
Mono",monospace;font-size: 0.9em,white-space: pre-line}
div.bodyText {font-family: "Verdana","DejaVu Sans",sans-serif}
table.sampleCode {width: 100%; background-color: #ffffcc; }
.errorText {color: red; font-weight: bold}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy;
cursor:pointer; }</style></head><body><h1>Server Error in '/demo'
Application</h1><hr style="color: silver"/><h2><em>The resource cannot be
found.</em></h2>
<p><strong>Description: </strong>HTTP 404. The resource you are looking for
(or one of its dependencies) could have been removed, had its name changed,
or is temporarily unavailable. Please review the following URL and make
sure that it is spelled correctly.</p>
<p><strong>Requested URL: </strong>/demo/2/StockService.asmx</p>
<hr style="color: silver"/><strong>Version information: </strong> Mono
Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433</body></html>
<!--
[System.Web.HttpException]: The file '/demo/2/StockService.asmx' does not
exist.
at System.Web.Compilation.BuildManager.AssertVirtualPathExists
(System.Web.VirtualPath virtualPath) [0x0007f] in
/root/src/mono-2.4.2.2/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:1146
at System.Web.Compilation.BuildManager.BuildAssembly
(System.Web.VirtualPath virtualPath) [0x00000] in
/root/src/mono-2.4.2.2/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:1152
at System.Web.Compilation.BuildManager.GetCompiledType (System.String
virtualPath) [0x00039] in
/root/src/mono-2.4.2.2/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:652
at System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler
(System.Web.HttpContext context, System.String verb, System.String url,
System.String filePath) [0x0002b] in
/root/src/mono-2.4.2.2/mcs/class/System.Web.Services/System.Web.Services.Protocols/WebServiceHandlerFactory.cs:110
at System.Web.Script.Services.ScriptHandlerFactory.GetHandler
(System.Web.HttpContext context, System.String requestType, System.String
url, System.String pathTranslated) [0x000b0] in
/root/src/mono-2.4.2.2/mcs/class/System.Web.Extensions/System.Web.Script.Services/ScriptHandlerFactory.cs:70
at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context,
System.String url, Boolean ignoreContextHandler) [0x00055] in
/root/src/mono-2.4.2.2/mcs/class/System.Web/System.Web/HttpApplication.cs:1635
at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context,
System.String url) [0x00000] in
/root/src/mono-2.4.2.2/mcs/class/System.Web/System.Web/HttpApplication.cs:1616
at System.Web.HttpApplication+<Pipeline>c__Iterator2.MoveNext () [0x0071f]
in
/root/src/mono-2.4.2.2/mcs/class/System.Web/System.Web/HttpApplication.cs:1252
-->
More information about the Mono-aspnet-list
mailing list