[Mono-list] InvalidOperationException using XSP2 with the .NET runtime

Robert Jordan robertj at gmx.net
Wed Aug 26 17:05:57 EDT 2009


abryson wrote:
> Hello,
> 
> I'm trying XSP2 on a Windows XP SP2 machine by executing xsp2.exe directly
> (without mono.exe) and have hit upon a problem when specifying virtual
> directories.
> 

[...]

> When I browse to http://localhost:8080/A or http://localhost:8080/B I get
> this exception:
> 
> System.InvalidOperationException: Failed to map the path '/Greenstone.JPG'.
> 
> Server stack trace:
>    at System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath
> virtualPat
> h, Boolean permitNull)
>    at System.Web.Hosting.HostingEnvironment.MapPathInternal(VirtualPath
> virtualP
> ath)
>    at System.Web.Hosting.MapPathBasedVirtualPathProvider.FileExists(String
> virtu
> alPath)
>    at Mono.WebServer.Paths.VirtualPathExists(IApplicationHost appHost,
> String ve

[...]

> So, any idea what is causing the exception?  Hope somebody can help.

This looks like a bug in MS.NET's ASP.NET.
VirtualPathProvider.FileExists is not supposed to throw exceptions.

Try applying the attached patch to xsp's sources.

Robert

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Paths.diff
Url: http://lists.ximian.com/pipermail/mono-list/attachments/20090826/a8301ea5/attachment-0001.pl 


More information about the Mono-list mailing list