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

Notification

Icon
Error

Cassini + MVC2
case
#1 Posted : Wednesday, December 22, 2010 11:18:26 PM(UTC)
Groups: Member
Joined: 12/22/2010(UTC)
Posts: 2
Location: Germany

Hi,

im trying to get cassini running with asp.net MVC2. But all i get is an "403 - forbidden" error.

Here is what i've done so far:
- created a new sample MVC2-Projekt for .NET 3.5
- changed the routes for IIS 6.0-/Cassini-support (as mentioned here in the forum)
- builded and then published the project with the publish feature from VS to the filesystem
- launched the cassini web server explorer and added the application with the same name as in VS, generated a new Guid and set the port to system assigned.
- allowed everyone full access to the directory the mvc2-app was published to.
- checked the windows logs for errosr, but nothing there, except an favicon.ico error that i fixed.

so i'm out of ideas.

The machine runs Win7-64.



Ultidev Team
#2 Posted : Thursday, December 23, 2010 4:40:19 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)
Hi there!

Since 403 is a security problem, let's figure out what kind of access is prohibited. To do that could you please create a simple .htm or text file with minimum content and place it in the directory with your application. See if you can see that htm file in the browser. If you can't, it's file system access problem. If you can, it's likely to be an application authorization problem, for example if you use Windows authentication, which is not supported by UltiDev Cassini (it will be soon in the upcoming release of UltiDev Web Server Pro).

Please let us know what you have found.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
case
#3 Posted : Thursday, December 23, 2010 5:47:54 AM(UTC)
Groups: Member
Joined: 12/22/2010(UTC)
Posts: 2
Location: Germany

Hi,

I've added an index.html to the directory.
Works like expected. i see the contents in my browser.

What do you mean with "application authorization problem" exactly?

i've added

<authorization>
<allow users="*"/>
</authorization>

to my web.config, but nothing changed :(



Ultidev Team
#4 Posted : Thursday, December 23, 2010 6:58:51 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)
Hi,

For example, if your application uses Windows authentication along with roles-based authorization, then your application will never authorize anyone because instead of actual user identity the application will always see "Local System" account as a current user - just because Cassini currently does not support Windows auth.

Another possibility is that some resources (files, folders) may not be accessible to "Local System" (a.k.a. "NT AUTHORITY\SYSTEM") account under which all applications are running when hosted by Cassini windows service. Local System has access to most files on the computer, except some personal folders.

Other than that, we can't think of other reasons why you would get 403.

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.