CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

CSLA 1.0 buisness principal and printing the end result of a query.

rated by 0 users
Answered (Verified) This post has 1 verified answer | 8 Replies | 3 Followers

Not Ranked
6 Posts
lunatikzx posted on Mon, Apr 23 2012 8:55 AM

First of all i must say i am not a CSLA programmer, im a web programmer with the mandate to convert a part of a "winform  CSLA 1.0" application to an ASP.NET application using the same core as the winform app (and i should mention i am sorry for the bad english my french sometimes takes over ) . And since we are a small team, i am the one  to code the conversion.

the app:
This app is quite simple in fact, it takes data from a database and use it in a CRYSTAL report. The problem is that i have to open the crystal report generated PDF in the user screen.

First the context : 

At first i had some problems understanding the Buisness principal error i got then i read ... A LOT then i found that i had to log in to CSLA with  CSLA.Security.BusinessPrincipal.Login(user, pass) but then another problem arose.

The problem:

I cant open the pdf, the pdf is generated in a folder i created but i cant open it for the user so he can save it . I have an error that read like this :

Le type n'est pas résolu pour le membre 'CSLA.Security.BusinessPrincipal,CSLA, Version=1.0.2693.15966, Culture=neutral, PublicKeyToken=null'.

Which can be translated to

The member type cannot be resolve for 'CSLA.Security.BusinessPrincipal,CSLA, Version=1.0.2693.15966, Culture=neutral, PublicKeyToken=null'.

What can be the problem? In fcat i am mostly sure that its related to the buisness principal and the system principal. But how can i resolve the issue that i dont know. Is there a way to kill the buisness principal object  or replace it by the system principal ( here i am only theorizing) .

Anyway thatnks for all the answers im really stuck here ... lol

 

Answered (Verified) Verified Answer

Top 10 Contributor
9,282 Posts
Verified by lunatikzx

Yes, Cassinni is a problem. It does not support custom .NET principal types.

You should use IIS Express or full IIS.

Rocky

All Replies

Not Ranked
6 Posts

can it be caused by the test server i use? (MS test server Cassinni)

 

 

Top 10 Contributor
9,282 Posts

You do need to make sure the CSLA assemblies are in the \bin folder of the web site.

Rocky

Not Ranked
6 Posts

The assembleis are in the bin folder of the app

Not Ranked
6 Posts

Can this be the bug i just read about coming from Cassinni VS test server

 

Top 10 Contributor
9,282 Posts
Verified by lunatikzx

Yes, Cassinni is a problem. It does not support custom .NET principal types.

You should use IIS Express or full IIS.

Rocky

Not Ranked
6 Posts

thanks a lot very useful

 

Not Ranked
6 Posts

I cant open the pdf, the pdf is generated in a folder i created but i cant open it for the user so he can save it . I have an error that read like this.

 

 

 

 

concord property management
Not Ranked
6 Posts

what is generating you r pdf

 

Page 1 of 1 (9 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems