开发者

Problems with Web.config not changing in MVC3

I have a brand new MVC3 application used for testing with a Web.Config looking like this:

<customErr开发者_如何学Cors defaultRedirect="aa.htm"
    mode="Off" >
  <error statusCode="500" redirect="aaa.htm"/>
</customErrors>

I have a Web.Debug.config that looks like this:

<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
  <system.web>
      <customErrors defaultRedirect="GenericError.htm"
        mode="RemoteOnly" xdt:Transform="Replace">
        <error statusCode="500" redirect="InternalError.htm"/>
      </customErrors>

  </system.web>
</configuration>

When I build my project with the "Debug" setting and then check the obj folder then I just don't see my changes getting applied. I thought before that I saw a folder with transformed and original web configs but now I see nothing.

Note this is a brand new application and I didn't change anything else. The customErrors in the Web.Config is in the correct place under system.web.

Finally I set the solution configuration to Debug and clicked on the green arrow next to that.

Any ideas?


You can make it always visible by.

  • Right Click on item.
  • Include In Project.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜