Im running an application that requires full trust to run; support at discountasp.net hosting has confirmed that the default level is set to medium and that i must change this in my web.config file. I´ve modified the root web.config file and added <system.web> <securityPolicy> <trustLevel name="Full" policyFile="internal" /> <trustLevel name="High" policyFile="web_hightrust.config" /> <trustLevel name="Medium" policyFile="web_mediumtrust.config" /> <trustLevel name="Low" policyFile="web_lowtrust.config" /> <trustLevel name="Minimal" policyFile="web_minimaltrust.config" /> </securityPolicy> <trust level="Full" originUrl="www.surtitodo.net" /> </system.web> under the <configsections> but this is not working, i keep getting errors that either system.web or location variables are unrecognized elements... im not too sure on what to do about this, any ideas anyone?
Try using the KB article shown here: http://support.discountasp.net/KB/a401/changing-the-default-aspnet-trust-level.aspx
Tried it and i keep getting this result: Module IIS Web Core Notification Unknown Handler Not yet determined Error Code 0x8007000d Config Error Unrecognized element 'system.web' Config File \\?\E:\web\surtitodone\htdocs\web.config Requested URL http://www.surtitodo.net:80/ Physical Path Logon Method Not yet determined Logon User Not yet determined Config Source 3: <configSections> 4: <system.web> 5: <trust level="Full" />
You put it in the wrong location. It shouldn't be in the <configSections> If you still can figure it out, post your web.config (please do not include sensitive info like username / password)
its a bit long but heres a part of it; or should i attach the file? if i add the script before the configsections i get an error stating that configsections must be the first child directory thingy....: <?xml version="1.0"?> <configuration> <system.web> <trust level="Full" /> </system.web> <configSections> <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
seems to have worked =) im now getting: Config Error Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'PricelistHandler' though, im guessing this it not related at all?