How to update ASP.NET website hosted at Locaweb

Asked

Viewed 4,251 times

3

I’ve had a website running for four years on a client of mine. The site was developed in VB.Net, and Locaweb migrated its servers from Windows 2003 to 2008 and consequently changed the Trust Level of Full for Medium and the following error appeared on the site that I do not know how to solve.

System.Security.Securityexception: Request for the permission of type 'System.Security.Permissions.Securitypermission, mscorlib, Version=4.0.0.0, Culture=neutral, Publickeytoken=b77a5c561934e089' failed.

How do I update this component to work in Medium Trust? Remembering that Locaweb does not allow me to change the level of Trust via web.config. Thank you.

  • http://stackoverflow.com/questions/19505770/how-to-disable-system-security-permissions-reflectionpermission-usage-in-new-vs2 Look if it can help you.

  • @Marconi look at the suggestion of this post is for me to change via web.config the Trust Level to Full. And that’s exactly what Locaweb’s snot won’t allow me to do. When I try that gives me the following mistake: 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.. If you have another suggestion, thank you.

  • Joao I found this http://stackoverflow.com/questions/9794985/iis-this-configuration-section-cannot-be-used-at-this-path-configuration-lock

  • The response from Locaweb’s support was that they made an exception and I have 10 days to change it. Apparently Aspemail will not work anymore but they did not answer me which components will work. I am migrating to system.net.mail. For example, try http://wiki.locaweb.com.br/pt-br/Envio_de_e-mails_via_.NET_utilizando_o_System.Net.Mail.

  • 2

    I am voting to close this question as out of scope because it is peculiarity of the hosting contracted and was resolved by the support of the respective company, in addition to which the issue had no activity after that (users with the same problem would need to go to the company’s support anyway).

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.