解析器错误消息:文件“XXX.aspx.vb”不存在。 IIS 服务器

时间:2021-04-09 22:52:50

标签: asp.net vb.net iis webforms

我有一个类型为 Application Web - Web Forms 的项目。在本地版本中,我执行网站没有问题,但是当我发布网站并设置为 iis 服务器时出现错误;接下来是:

enter image description here

“文件‘XXX/XXX.aspx.vb’”不存在。这发生在除主页之外的所有页面

这是代码 WFActividadesHSEQ.aspx enter image description here

我将属性 CodeFile 更改为 CodeBehin 并得到下一个错误:

enter image description here

“无法加载类型‘XXXXX’”

我可以查看的主页面,因为它是在文件 web.config 中配置的

enter image description here

enter image description here

这是代码 wfclave.aspx enter image description here

在iis服务器中,我先创建一个文件夹:

enter image description here

之后,粘贴应用程序网页发布的文件,最后我将文件夹转换为应用程序。

我还设置了每个 .aspx 和 .aspx.vb 文件的属性“复制到输出目录”

enter image description here

这些文件在文件夹“sigmac_app”中

enter image description here

有人可以帮我吗?

0 个答案:

没有答案