Click here to Skip to main content
15,899,605 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello sir..

i have develping jewellery website.. i hosted the server.. when i run the application it shows some error is


XML
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 216:                <tr>
Line 217:                    <td colspan="2" style="text-align: center;">
Line 218:                        <AjaxData:GridView ID="Productgrid" runat="server" CssClass="GridViewStyle" CellSpacing="0"
Line 219:                            AlternatingRowStyle-CssClass="AltRowStyle" CellPadding="3" RowStyle-CssClass="RowStyle" DeleteCommandEvent="onDeleteCommand"
Line 220:                            HeaderStyle-CssClass="HeaderStyle" SelectedRowStyle-CssClass="SelectedRowStyle" EditCommandEvent="onEditCommand"



how can i rectify plz help me....
Posted

Hi,

Try to do what your error is saying... :)

For more info about adding full trust level policy for some assembly look here[^].
 
Share this answer
 
The clue is in the error message:
"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."

See MSDN: ASP.NET Trust Levels and Policy Files[^] If this does not work, then you will have to talk to your web host.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900