English 中文(简体)
sharpdevelop, asp.net and run/debug it?
原标题:

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?

最佳回答

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:ProjectsMyAspNetProject 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/
问题回答

Since SharpDevelop 4.2 there is support asp.net mvc3.

For debugging you can use either iis or iisexpress





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签