Pregunta

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.

¿Fue útil?

Solución

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"/>
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top