100求助:使用VS2005内运行成功,但发布到IIS失败
这是之前IT人员写的一个ASP.NET项目我拿来改。在VS2005后直接启动调试,测试后没有问题。但是放到IIS上就报错了。IIS我有开WEB扩展服务里的数据连接器和ASP.NET2.0。
这是错误信息:[NullReferenceException: 未将对象引用设置到对象的实例。]
DBOperation..cctor() +22
[TypeInitializationException: “DBOperation”的类型初始值设定项引发异常。]
DBOperation..ctor() +0
MasterPage..ctor() +23
ASP.masterpage_master..ctor() +10
__ASP.FastObjectFactory_app_web_ppgxpxbc.Create_ASP_masterpage_master() +20
System.Web.Compilation.BuildResultCompiledType.CreateInstance() +49
System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +250
System.Web.UI.Page.get_Master() +48
System.Web.UI.Page.ApplyMasterPage() +18
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +543
请各位大侠指教,在线等。我是用VS2005的发布网站,然后把发布的那个文件夹放到IIS里的。