We are using CSLA 22.214.171.124 in our application and trying to run it using ASP.NET Web Development Server. Desktop does not have admin rights so we can't use it in IIS. We are getting error in the class where we are referencing Csla.Security.BusinessPrincipalBase. I read it on book
that some components of CSLA can not be used with ASP.NET Web Development Server. I wanted to confirm whether Csla.Security.BusinessPrincipalBase can be used on ASP.NET Web Development Server?
No, absolutely not. BusinessPrincipalBase is not part of .NET, so it us a custom principal, and the dev server can't handle it (easily).
Only GenericPrincipal and WindowsPrincipal will work, and CSLA 3.5 doesn't support GenericPrincipal.
This is one reason Microsoft has (finally) abandoned the dev server in favor of a new dev server that is compatible with IIS7 (see Scott Guthrie's recent blog posts on the topic).
Can this be used when application is hosted on IIS with virtual directory or we need to create Web Site only to run our application. Please note we are using IIS 5.1.
I'm not sure what you mean by "this".
Cassini (the ASP.NET Dev Web Server) doesn't behave exactly like any version of IIS, and one of its quirks is that it doesn't work to run apps that use a custom principal. This isn't a CSLA issue, it is a broad issue with that web server.
So if you have a custom principal in your app, you need to host in IIS to do your development and testing. Any version of IIS that works with .NET should work fine.
It might be the case that this new dev server tool will allow you to do your development and testing without IIS. I don't know, as I haven't had time to try it out yet.
Copyright (c) Marimer LLC