Frank E
Frank E

Reputation: 21

Modifying the web.config file

I'm uploading a project to a GoDaddy server and running into a problem when I try to modify the web.config file before I upload. Specifically, I want to add the following so I don't have to edit my web.config on the server every time I publish:

<system.web>
    <customErrors mode="Off"/>
    <trust level="Full"/>
<system.web>

Upvotes: 1

Views: 122

Answers (1)

Frank E
Frank E

Reputation: 21

Adding a xdt:Transform fixed this problem.

<system.web>
  <customErrors mode="Off" xdt:Transform="InsertIfMissing">    
  </customErrors>
  <trust level="Full" xdt:Transform="InsertIfMissing">
  </trust>
</system.web>

Upvotes: 1

Related Questions