Below is the error:
Server Error in '/SharePointApp1' Application.
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:
|
When I enabled the trace logs I realized the request type is "GET" instead of "POST" and in the header collection I am not getting the Authentication Header. After analysing further I understood the above error is because realm returned is NULL from SharePoint to remote server.
We do not have windows authentication enabled on the remote server. Also the remote server is in a separate LAN than the SharePoint Farm servers.
Please suggest the possible reasons for the above error. I am stuck in this issue for almost 2 weeks now.