我有一个类型为 Application Web - Web Forms 的项目。在本地版本中,我执行网站没有问题,但是当我发布网站并设置为 iis 服务器时出现错误;接下来是:
“文件‘XXX/XXX.aspx.vb’”不存在。这发生在除主页之外的所有页面
我将属性 CodeFile 更改为 CodeBehin 并得到下一个错误:
“无法加载类型‘XXXXX’”
我可以查看的主页面,因为它是在文件 web.config 中配置的
在iis服务器中,我先创建一个文件夹:
之后,粘贴应用程序网页发布的文件,最后我将文件夹转换为应用程序。
我还设置了每个 .aspx 和 .aspx.vb 文件的属性“复制到输出目录”
这些文件在文件夹“sigmac_app”中
有人可以帮我吗?