Error on deploying website to IIS - App still refers to local files directory even after publish

789 Views Asked by At

Has anyone experienced this issue before? I published a website using File Deploy and placed it in an IIS. Other apps works just fine, but the website I deployed shows this error:

enter image description here

It seems to still be pointing to my local directory. I've updated the paths but to no avail. Help please.

Thanks in advance.

2

There are 2 best solutions below

0
On

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.

0
On

If you set custom error "on" (in the web.config), you can get more info about the exception. In the "Network" tab of "Developer tools", you can check your request and response.