[英]Error on deploying website to IIS - App still refers to local files directory even after publish
Has anyone experienced this issue before?有没有人遇到过这个问题? I published a website using File Deploy and placed it in an IIS.
我使用 File Deploy 发布了一个网站并将其放置在 IIS 中。 Other apps works just fine, but the website I deployed shows this error:
其他应用程序工作正常,但我部署的网站显示此错误:
It seems to still be pointing to my local directory.它似乎仍然指向我的本地目录。 I've updated the paths but to no avail.
我已经更新了路径,但无济于事。 Help please.
请帮忙。
Thanks in advance.提前致谢。
The paths show locations at compile-time, that is not a problem.路径在编译时显示位置,这不是问题。 Here, you are getting an exception on line 65 in DataAccess.cs - object reference not set to an instance of an object.
在这里,您在 DataAccess.cs 的第 65 行遇到异常 - 未将对象引用设置为对象的实例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.