使用 Visual Studio 2010,我将 ASP.NET 项目部署到开发服务器并更改了 Web.Config 以反映开发服务器路径。一些代码正在运行,但对于图像和其他文件等路径,它似乎正在查看我机器的本地路径。我查看了所有代码以提示它在哪里使用我的本地路径,但我替换了所有代码,但它仍然无法正常工作。
DLL 都在正确的位置编译,一切都是最新的,等等。在本地运行代码也没有问题。是否有特定步骤来确保我缺少的部署?
谢谢。
错误:
`Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
FieldControl(String FieldType, String Argument, Field ParentField) in D:\Users\mydirectory\FieldControl.cs:132
<more of these>