Question

i created an asp.net project in sharpdevelop. i wanted to get started to see how debugging is and i am stuck already. How do i run the ASP.NET project? It just says its configured as a DLL. How do i launch it as a webpage. I see "start browser in url" but how do i get my code in a webpage or what do i use to do it? Also can i debug while doing so like i would in MSVS?

Was it helpful?

Solution

SharpDevelop does not have great ASP.NET support. It does not have a visual web forms designer, for example. If you need that I suggest you look at using Microsoft's Visual Web Developer Express Edition.

To be able to run, view and debug your ASP.NET web project with SharpDevelop you can use the Cassini personal web server. There is a closed source version of Cassini from UltiDev which I have not used. There is also an open source version of Cassini for .NET 3.5 which I have used. The open source version does need you to compile it from source however.

Once you have Cassini compiled you can do one of the following to debug your ASP.NET web project in SharpDevelop:

1) In the project options (Debug tab) choose Start External Program and then browse to the Cassini executable.

In the Command line arguments field specify the command line arguments for Cassini, for example:

d:\Projects\MyAspNetProject 8080 /

(The first parameter should be the folder containing your web.config and Default.aspx web page. The second parameter is the port number that Cassini will listen on. The third parameter is the virtual root to use.)

Save these project options and then when you select Debug | Run or press F5 you should be able to run and debug your ASP.NET project.

2) Alternatively you can start Cassini manually, with the command line arguments as described above, and leave it running in the background.

Then in the project options select Start Browser in URL and enter the URL for Cassini, for example:

http://localhost:8080/

OTHER TIPS

Since SharpDevelop 4.2 there is support asp.net mvc3.

For debugging you can use either iis or iisexpress

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top