0

我对测试服务器上的 aspx.vb 文件进行了调整,通过制作文件副本、更改文本和替换服务器上的文件,对编写在代码中的自定义错误消息进行了微小的更改。但是,当我从浏览器返回页面时,更改不会反映出来。

我在想这与未编译的文件有关。但是,似乎应该动态编译 aspx.vb 文件。是否有确保发生这种情况的设置?这是 web.config 文件的副本:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.web>
    <compilation debug="true" strict="true" explicit="true" />
    <authentication mode="Windows" />
    <identity impersonate="true" />
    <customErrors mode="On" />
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true" />
        <defaultDocument>
            <files>
                <add value="MyIdeaSSO.aspx" />
            </files>
        </defaultDocument>
        <directoryBrowse enabled="true" />
  </system.webServer>
  <location path="MyIdeaSSO.aspx">
    <system.webServer>
      <defaultDocument enabled="true">
        <files>
          <add value="MyIdeaSSO.aspx" />
        </files>
      </defaultDocument>
    </system.webServer>
  </location>
</configuration>

我想我想知道的主要事情是,如果服务器上已经对 aspx.vb 页面进行了更改,是否还需要其他任何东西才能使其正常工作。谢谢。

4

1 回答 1

1

您将需要编译应用程序,.vb 文件更新将包含在应用程序的 dll 中。

于 2013-08-07T13:55:23.057 回答