I have a web site that is just serving as a Remoting Server and has remoting configuration inside its web.config file.
<system.runtime.remoting>
<application>
<service>
<activated type="abc.def.ghi"/>
</service>
<channels>
<channel ref="http" machineName="localhost"/>
</channels>
</application>
</system.runtime.remoting>
Besides this web.config file, it has only these files in it:
dataConfiguration.config
enterpriseLibrary.config
log.config
website.publishproj
bin folder – which has the DLLs that are served from this project via remoting
When I build the web site, I receive build error which is:
“object reference not set to an instance of an object”.
How can I debug what’s causing this error and how to remove it?
Please advise.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
The issue is resolved. I had a assembly reference in my web.config where there was a version mismatch between it and the assembly present inside the bin folder:
<add assembly="Oracle.DataAccess, Version=4.112.3.0, Culture=neutral, PublicKeyToken=89B483F429C47342"/>
Method 2
This error appears when Target framework is not selected. enter image description here
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0