Click here to Skip to main content
15,899,025 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: the registered dll is not displayed. Pin
prasadbuddhika7-May-10 18:40
prasadbuddhika7-May-10 18:40 
Questiongenerating CustomerID Pin
kolisa6-May-10 0:59
kolisa6-May-10 0:59 
AnswerRe: generating CustomerID Pin
Jens Meyer6-May-10 1:40
Jens Meyer6-May-10 1:40 
AnswerRe: generating CustomerID Pin
Not Active6-May-10 1:59
mentorNot Active6-May-10 1:59 
Questionreading size using radio buttons Pin
kolisa6-May-10 0:48
kolisa6-May-10 0:48 
AnswerRe: reading size using radio buttons Pin
Peace ON7-May-10 4:03
Peace ON7-May-10 4:03 
AnswerRe: reading size using radio buttons Pin
T M Gray7-May-10 4:38
T M Gray7-May-10 4:38 
QuestionSecurity Exception Pin
MWRivera5-May-10 6:03
MWRivera5-May-10 6:03 
Hi All,

When I try and run my ASP.NET/c# application using VS 2005 the following exception is thrown:

"Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers."


Source Error: 


Line 35: 
Line 36:                     AUser UserObject = new AUser();
Line 37:                     UserObject.VerifyCredentials("...", "...", "...");
Line 38:                     if (UserObject.IsVerified)
Line 39:                     {


Source File: p:\...\Login.aspx.cs Line: 37


Stack Trace: 


[SecurityException: That assembly does not allow partially trusted callers.]
   ASystems.AUser.GetConnection() +0
   ASystems.AUser.VerifyCredentials(String DSNEntered, String IDEntered, String PWDEntered) +281
   Login.btnLogin_Click(Object sender, EventArgs e) in p:\...\Login.aspx.cs:37
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +78
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +100
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5247
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +247
   System.Web.UI.Page.ProcessRequest() +79
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +23
   System.Web.UI.Page.ProcessRequest(HttpContext context) +110
   ASP.login_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\rrscaseinformation\56b618f4\ea67f999\App_Web_7ndzreci.4.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +391
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +76 



This exact same code works fine on one of our other machines. Is there some .NET setting that needs to be added/modified on the machine that is recieving this error?

Any help would be greatly appreciated.
Thanks,
Mel
AnswerRe: Security Exception Pin
Not Active5-May-10 7:00
mentorNot Active5-May-10 7:00 
GeneralRe: Security Exception Pin
MWRivera5-May-10 8:31
MWRivera5-May-10 8:31 
GeneralRe: Security Exception Pin
Not Active5-May-10 8:43
mentorNot Active5-May-10 8:43 
GeneralRe: Security Exception Pin
MWRivera5-May-10 9:24
MWRivera5-May-10 9:24 
QuestionWhich runtimes are required Pin
Richard Jones3-May-10 7:59
Richard Jones3-May-10 7:59 
AnswerRe: Which runtimes are required Pin
Dave Kreskowiak3-May-10 8:50
mveDave Kreskowiak3-May-10 8:50 
AnswerRe: Which runtimes are required Pin
Abhinav S3-May-10 19:33
Abhinav S3-May-10 19:33 
Questionneed clarification about gacutil.exe Pin
prasadbuddhika2-May-10 23:24
prasadbuddhika2-May-10 23:24 
AnswerRe: need clarification about gacutil.exe Pin
Peace ON2-May-10 23:51
Peace ON2-May-10 23:51 
AnswerRe: need clarification about gacutil.exe Pin
Abhinav S3-May-10 7:54
Abhinav S3-May-10 7:54 
AnswerRe: need clarification about gacutil.exe Pin
prasadbuddhika6-May-10 0:54
prasadbuddhika6-May-10 0:54 
QuestionHow to add launch condition for my deployment to insure that the required registry tree exists in client machine i.e AutoCAD 2008 or higher version is installed ? Pin
TARAK NATH ROY2-May-10 21:34
TARAK NATH ROY2-May-10 21:34 
QuestionJquery in asp.net Pin
siya patel2-May-10 4:53
siya patel2-May-10 4:53 
AnswerRe: Jquery in asp.net Pin
Pete O'Hanlon2-May-10 5:26
mvePete O'Hanlon2-May-10 5:26 
Questionhttp Basic authentication(RFC2617) Pin
kunaltilak29-Apr-10 20:27
kunaltilak29-Apr-10 20:27 
AnswerRe: http Basic authentication(RFC2617) Pin
T M Gray3-May-10 7:44
T M Gray3-May-10 7:44 
GeneralRe: http Basic authentication(RFC2617) Pin
The Man from U.N.C.L.E.4-May-10 3:29
The Man from U.N.C.L.E.4-May-10 3:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.