From: Zhi-Qiang Ni[MSFT] on 3 May 2010 06:23 Hi Jason, The error message indicates the application attempted to perform an operation not allowed by the security policy. It is probably the trust level is incorrectly configured for you application. By default , the trust level is full , all privileged operations are supported. When an ASP.NET application domain is created, ASP.NET reads the value specified for the level attribute of the trust configuration element, creates an instance of the AspNetHostingPermission class with the specified Level attribute, and then adds the class to the permission set for the application domain. You will see the above error if the trust levels are incorrectly configured or modified. In this case, the trust configuration element in root web.config on your problem machine might be modified or it was override in a sub web.config file in your application. You can modify the trust level back to full by adding the following configuration section in the web.config file in your site root. <configuration> <system.web><trust level="full" originUrl="" /></system.web> </configuration> Here is some related information about the ASP.Net Trust Levels and Policy files, for your reference: trust Element (ASP.NET Settings Schema) http://msdn.microsoft.com/en-us/library/tkscy493.aspx http://support.microsoft.com/kb/910449 http://msdn.microsoft.com/en-us/library/xady2w27(v=VS.100).aspx http://msdn.microsoft.com/en-us/library/wyts434y.aspx If you problem persists, please feel free to let me know. Thanks. -- Sincerely, Zhi-Qiang Ni Microsoft Online Support ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications. MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 2 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx ==================================================
First
|
Prev
|
Pages: 1 2 Prev: UpdatePanel ( url rewrite) 2nd post back url changes Next: Try to open the Data Access Page |