对象引用不设置到对象的实例上建立网站 [英] Object reference not set to an instance of an object on build web site

查看:211
本文介绍了对象引用不设置到对象的实例上建立网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,只是作为一个远程服务器,并远程处理的的web.config 文件中的配置。

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>

除此之外web.config文件,它只有这些文件在里面:

dataConfiguration.config
enterpriseLibrary.config
log.config
website.publishproj
bin文件夹 - 这已经从这个项目通过Remoting供应的DLL文件

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?

请指教。

推荐答案

此问题已得到解决。我在我的的web.config一个集引用那里是它与bin文件夹内的装配present之间的版本不匹配:

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"/>

这篇关于对象引用不设置到对象的实例上建立网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆