This topic is locked
[SOLVED]

 Trust level on web hosting site set to Medium

8/20/2010 8:29:06 AM
ASPRunner.NET General questions
M
Michaelr05 author

Hello,
I am setting up a website on GoDaddy.com and developing using ASPRunner.NET 5.0 using an Access DB. The website IIS level is set to ASP.Net 2.0/3.0/3.5. I get major errors if I downrev it to ASP.Net 1.1. The default trust level required by the application is Full but their site Web.Config is set to medium. I can open and view but not make any database changes to the website.
Does anybody have a work around on how I can change my website trust levels to Medium?
http://help.godaddy.com/article/1039?
I have tried the Miscrosoft workaround with the web.config changes adding Location and trust level modifications but it does not help.
Thank you.

Admin 8/20/2010

ASPRunner.NET builds ASP.NET 2.0 applications so .NET 1.1 framework won't work here.
If you are able to view data and not able to edit this might be permissions issue. Start by posting exact error message here and we'll proceed from there.
You can also post your application URL here.

M
Michaelr05 author 8/22/2010

Exact error message is
<<< Record was NOT added: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. >>>
The problem is the Godaddy site is on a shared server which has it's trust level set to Medium. The ASPRunner generated code seems to be requiring full trust. I can read the data but cannot write anything (change or add new).
It works fine on my local test server but when putting it on the Godaddy site, I get the error on updating.
The current site is set in a \test subdirectory but the IIS is set to full read - write permissions so it shouldn't be a problem.
I had the following code in the web.config but it generated a compile error
<location allowOverride="true">

<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="Medium" originUrl="" />

</system.web>

</location>
You also had the same error/problem back in 2008 and never finshed answering the forum question or provided a complete solution.
http://www.asprunner.com/forums/topic/8912-innerexception-request-for-the-permission-of-type-systemsecurit/
Please let me know what you find out. If you want/need to check out my existing page, I can send it to you privately under a separate email.
Thank you and I look forward to your reply.
Rizzy

Admin 8/24/2010

We'll see what we can do here.
Meanwhile I suggest to check one of other web hosting companies that don't have Medium Trust limitations.

You can check our web hosting offer at http://inspirunner.com.