Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Security Exception
Message
From
04/08/2008 19:09:52
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01336245
Message ID:
01336441
Views:
15
>Here is what I got from your link

Hi Naomi,

That is the error exactly and everything I could find indcates I should have the website server set to FullTrust mode. They will not do it for me as it is their policy not to. I temporarily installed the exact same application files behind another web I have with a different hosting company to prove my application works and it does. We may have to change to a different hosting company for this application.

I also read that many of the dot net assemblies do not have the attribute set and thus would cause the same error. It is a shame a web hosting company would limit the use of some of the dot net assemblies.

If the assembly that was doing this was under my control, I could set the attribute on it, but this isn't the case here.


So are you saying if I put a link in here --> right here: I could do it with an href tag?
oh, never mind I see my link actually did work. It just doesn't show that way when you add it.
Tim


>
>Server Error in '/support' Application.
>--------------------------------------------------------------------------------
>
>Security Exception
>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:
>
>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
>
>Stack Trace:
>
>
>[SecurityException: That assembly does not allow partially trusted callers.]
>   AppWeb..ctor() +0
>   ASP.global_asax.Application_Start(Object sender, EventArgs e) +19
>
>
>
>
>--------------------------------------------------------------------------------
>Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434
>
>Links here are usually autoexpanded unless it's some complex link having () inside. In this case you do it regularly using a href tag...
>
>>>Hi all,
>>>
>>>Would anyone have any ideas what might cause this error on a web application?
>>>
>>>
>>>[SecurityException: That assembly does not allow partially trusted callers.]
>>>   AppWeb..ctor() +0
>>>   ASP.global_asax.Application_Start(Object sender, EventArgs e) +19
>>>
>>>
>>>It appears to be connected with the constructor of AppWeb and here is what is in there:
>>>
>>>/// <summary>
>>>/// Constructor
>>>/// </summary>
>>>public AppWeb()
>>>{
>>>    // Set the ApplicationName property
>>>    ApplicationName = "Pacifica Systems Support Portal";
>>>
>>>    // Set the default Access level for secured items - Need to change this later to ReadOnly
>>>    DefaultSecurityAccessLevel = mmSecurityAccessLevel.Full;
>>>    // Set the default Role access
>>>    UseMostPrivilegedRoleAccess = true;
>>>
>>>    this.InitializeComponent();
>>>}
>>>
>>>
>>>
>>>This is a MM application. I wouldn't think setting properties would cause an exception. Any thoughts or ideas?
>>>Thanks
>>>Tim
>>
>>Update: A google search points to some assmeblies needing to have "AllowPartiallyTrustedCallersAttribute" set in order to work in an environment other than FullTrust website setting. I just checked with godaddy and they do not have the shared website server in FullTrust mode and cannot change it. Even some of the DotNet assemblies do not have this attribute set. I am not sure which assembly would be the cause nor do I have an incling of how to track down which one it is. If I knew I could either fix it or see if I can do without it.
>>Any help appreciated. You can see the stack trace at www.pacifica-systems.com/support
>>
>>ps: How do you make a link in here actually be a link?
>>
>>Thanks
>>Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform