Wednesday, March 21, 2012

Permissions Issue

Hello, I am tring to create a .mdb db programatically on my server. It works just fine on my pc but not when I attempt it on my online server. I got a security exception error which stated I needed to chage the applications trust level. So I attempted to change the trust and added this to my config file:

<securityPolicy>

<trustLevelname="Full"policyFile="internal" />

</securityPolicy >

<trustlevel="Full" />

Now i get this configuration error:

Parser Error Message:This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file.

Source Error:

Line 64: <customErrors mode="Off"/>Line 65:Line 66: <securityPolicy>Line 67: <trustLevel name="Full" policyFile="internal" />Line 68: </securityPolicy >

Any Ideas on how to fix this? Thanks!

Have you tried allowOverride=true?

<location allowOverride="true"><system.web><securityPolicy><trustLevel name="Full" policyFile="internal" /></securityPolicy ></system.web>

Thanks for the reply. I did try this before and I got this runtime error:

Description:An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

But i already have<customErrorsmode="off"/> in my config file. Im not sure what to do.



Hi grogo21,

Based on my understanding, this is because the site administrator of your online server has locked access to this section so you are not able to override the setting. In application hosting scenarios, administrator might want to lock some settings of an ASP.NET application to prevent modification at lower levels. You need to contact your site administrator for help if you don't have such permissions.

Please check this document for more details.

http://msdn2.microsoft.com/en-us/library/ms178693.aspx


0 comments:

Post a Comment