0

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.

Nicx
  • 31
  • 3
  • File names/line numbers shown in exception call stack are information saved in symbol files (generated by the compiler on the development machine), so they are irrelevant to the actual issue. To fix null reference exception, revise your code to handle null. – Lex Li Dec 27 '19 at 16:34
  • Sometimes this issue could happen when the IIS application pool's identity doesn't have the required permission to access some resources, please try to change the application pool identity to some other accounts like LocalSystem or Network Service and try again [link](https://learn.microsoft.com/en-us/iis/manage/configuring-security/application-pool-identities). – Jalpa Panchal Dec 30 '19 at 01:47

2 Answers2

0

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.

Martin Haluza
  • 1,075
  • 7
  • 17
0

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.

Adrian Mole
  • 49,934
  • 160
  • 51
  • 83
Sepideh I
  • 71
  • 4