Bug 11003 - xsp4 location is inconsistent in Windows package
Summary: xsp4 location is inconsistent in Windows package
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: packaging ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-03-08 13:37 UTC by Miha Markic
Modified: 2015-01-21 22:42 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Miha Markic 2013-03-08 13:37:59 UTC
Xamarin Studio won't run asp.net mvc 3 using xsp4 - "cannot start web server" for some reason.

Repro: Create new asp.net mvc 3 project (and correct references to system.web.*) and run it.
Comment 1 Mikayla Hutchinson [MSFT] 2013-03-08 15:56:28 UTC
This is only when you change the target runtime to Mono?
Comment 2 Miha Markic 2013-03-08 16:01:53 UTC
Yes, only for mono.
(If I run it under .net it yields another exception (that doesn't work with CorDebugger).)
Comment 3 Mikayla Hutchinson [MSFT] 2013-03-08 16:12:42 UTC
On Mono 2.10.x, xsp4.exe is in:
Unix:  lib/mono/4.0/xsp4.exe
Win32: lib/mono/4.0/winhack/xsp4.exe

On Mono 3.0.6, xsp4.exe is in:
Unix:  lib/mono/4.5/xsp4.exe
Win32: lib/mono/4.0/winhack/xsp4.exe

It looks like the win32 package was not updated to track the new xsp4.exe location.
Comment 4 Mikayla Hutchinson [MSFT] 2013-03-08 16:14:34 UTC
FWIW if anyone's interested in submitting a patch to MD to work around this, the xsp location detection code is here:
https://github.com/mono/monodevelop/blob/master/main/src/addins/MonoDevelop.Debugger.Soft/MonoDevelop.Debugger.Soft.AspNet/AspNetSoftDebuggerEngine.cs#L87
Comment 5 Miha Markic 2013-03-20 13:22:32 UTC
Looks like Xamarin Studio is searching for xsp4 in C:\Program Files (x86)\Mono-3.0.6\lib\mono\4.5\winhack folder for some reason (probably because I references System.Web.Mvc and System.Web.WebPages assemblies from there.

Basically copying winhack folder to 4.5 folder does the trick.
Comment 6 Pallavi 2014-12-05 04:37:13 UTC
yeah, copying the winhack to usr/lib/mono/4.5 got it running. 
thanks @Miha
Comment 7 Pallavi 2014-12-05 04:39:02 UTC
yeah, copying the winhack to usr/lib/mono/4.5 got it running. 
thanks @Miha
Comment 8 Zoltan Varga 2015-01-21 22:42:01 UTC
This has been fixed in the 3.12 windows packages.