Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Is Cassini compatible with the new VS2005 Microsoft Web Application Projects project type?
MonkeyBob
#1 Posted : Wednesday, October 18, 2006 11:54:09 AM(UTC)
Groups: Member
Joined: 10/17/2006(UTC)
Posts: 6

Hey,

I downloaded and installed Cassini yesterday - all good there.

However whenever I run up my Web Application, I get an Access Denied error.

Things of note:

a) We are using the new project type from microsoft (WebApplication Project, as opposed to WebSite project. Details here: http://www.microsoft.com...BFCA&displaylang=en)
b) The Cassini server starts up on a different port number than is specified in the config.
c) The MS Internal server starts up as well, on a different port number as well.
d) The url that the site starts up in matches the port number of the cassini webserver, but the access denied error comes up.
e) If i change the url to match the MS Internal web server, the application runs as expected, though obviously not in cassini.

I think that this points to the WebApplication project not being compatible with Cassini, but would like to confirm - can anyone do so?

Thanks

Stacy
Ultidev Team
#2 Posted : Thursday, October 19, 2006 7:15:56 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hello, Stacy!

To debug your application in Visual Studio using UltiDev Cassini your application does not need to be registered with the Cassini. Instead you would run UltiDev Cassini as a regular EXE with command line parameters to launch your application. The only thing to keep in mind is that when you debug your application this way, Cassini and your application are running in your current user security context, which is probably more powerful than SYSTEM (Local System) used for Cassini service. If you need to debug your application in the SYSTEM security context specifically, you would need to register your application with Cassini and then attach debugger to the UltiDevCassiniWebServer.exe process.

Best Regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
MonkeyBob
#3 Posted : Monday, October 23, 2006 3:48:58 PM(UTC)
Groups: Member
Joined: 10/17/2006(UTC)
Posts: 6

Hey,

This is how I have set it up - is there another way to set it up?

Note that once you install the project type mentioned, the options that you get on this screen change - I can send a screenshot if you like as I can't attach it here.

Stacy
Ultidev Team
#4 Posted : Tuesday, October 24, 2006 6:41:33 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hello, Stacy.

Sorry for the delay with the response - the web application project add-on was not showing up in VS'05 for no good reason.

We had no problem making Cassini our debug server. Here's how we set it up:
- We chose "Use Visual Studio Development Server", not IIS as a server. This, of course, did start up VS own web server, but that can be ignored.
- We selected "Start external program" option in the "Start Action" section and specified the complete path to the UltiDevCassinWebServer2.exe, and we supplied following command like parameters:
/run "c:\folder 1\folder 2".

That was enough to run an application under UltiDev Cassini. If your application does not have Default.aspx file, then you may want to specify an extra command line parameter - the default document. For example:
/run "c:\folder 1\folder 2" SomePage.aspx

Stacy, if you still have a problem, could you please post the exact error message you get?

Here's also the usage info on the Cassini web server in command line mode:
Code:
UltiDevCassinWebServer2.exe /run PhysicalAppFolder [<defaultDocument>] [<port>]
[<browser path> | nobrowser]
UltiDevCassinWebServer2.exe /register PhysicalAppFolder [AppGUID] [defaultDocumn
t] [port] [/DontKeepRunning]
UltiDevCassinWebServer2.exe /unregister AppGUID

Commands:
/run - launches an ASP.NET application under Cassini server.
/register - registers an ASP.NET application with Cassini.
/unregister - unregisters an ASP.NET application from Cassini.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
MonkeyBob
#5 Posted : Thursday, October 26, 2006 12:07:18 PM(UTC)
Groups: Member
Joined: 10/17/2006(UTC)
Posts: 6

Wierd. I tried it on a brand new project and it seemed to work fine.

I suspect that it may have something to do with the app requiring the current users logon details (Windows Auth)... which now that I think about it i remember seeing something in the forums about, but cant find it now. I cant find any information on your product pages either.

You can consider this closed, as it is obviously working for a new project.
Ultidev Team
#6 Posted : Thursday, October 26, 2006 12:13:46 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hello, Stacy.

We are glad you were able to resolve the issue. Regarding Windows Auth, unfortunately UltiDev Cassini does not support it.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.