Trust Level error when publishing MVC application

Asked

Viewed 420 times

0

I need to publish an ASP.NET MVC application on a Locaweb server. But when publishing, the server displays the following message:

inserir a descrição da imagem aqui

I tried to tag

<securityPolicy>
  <trustLevel name="Medium" policyFile="web_mediumtrust.config" />
</securityPolicy>
<trust level="Full" originUrl="" />

But when placing, the server returns me this message: inserir a descrição da imagem aqui

What should I do?

  • 2

    I’m posting as an answer for not being able to comment yet. See this question ASP.NET Trust Level has similar information that you have provided.

  • Possible duplicate of ASP.NET Trust Level

  • 1

    This is something from Locaweb. That answer and that question went through the same problem.

  • I’ve checked these questions and tried everything that’s in them, but nothing’s worked. I’m not using any external DLL. I already opened a call, but they said I should recompile my application to work on medium trust

  • I’ve checked this answer, and I’ve tried everything in it, and nothing.

  • That’s exactly what it is. It may be easier to switch hosting than to adjust your application.

  • But this is the only hosting that supports MVC and is good that I could find. There are some to indicate there?

  • Has that one that you can test for 60 days. This other was well recommended. But overall, I still think the Azure the best option.

Show 3 more comments
No answers

Browser other questions tagged

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