C# ASP.NET Web应用程序在开发后不工作
我是ASP.NET新手,刚刚被指派为该公司的CMS(内容管理系统)web应用程序(用c#.NET编写)创建一个安装程序 在任何客户的服务器上使用C# ASP.NET Web应用程序在开发后不工作,c#,asp.net,web-applications,installation,setup-deployment,C#,Asp.net,Web Applications,Installation,Setup Deployment,我是ASP.NET新手,刚刚被指派为该公司的CMS(内容管理系统)web应用程序(用c#.NET编写)创建一个安装程序 在任何客户的服务器上使用Xcopy开发时,它都可以正常工作。但是,在我在VS2010中创建了.msi安装程序并安装了应用程序后,内部的某些web表单无法显示,出现以下异常: '/cms vodoke'应用程序中出现服务器错误 对象引用未设置为对象的实例 Description: An unhandled exception occurred during the execut
Xcopy
开发时,它都可以正常工作。但是,在我在VS2010
中创建了.msi
安装程序并安装了应用程序后,内部的某些web表单无法显示,出现以下异常:
'/cms vodoke'
应用程序中出现服务器错误
对象引用未设置为对象的实例
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.
例外情况详情:
System.NullReferenceException: Object reference not set to an instance of an object.
源错误:
[No relevant source lines]
Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\cms-vodoke\9f7fc69b\77cb7e4\App_Web_nlj0wmz0.7.cs Line: 0
堆栈跟踪:
[NullReferenceException: Object reference not set to an instance of an object.]
CuteEditor.Impl.b..ctor(Type type, String key) +77
CuteEditor.a.i(HtmlTextWriter A_0) +156
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +11249515
ASP.cmscontrol_cm_rteditor_catwallpaper_ascx.__RenderuiRTEditor(HtmlTextWriter __w, Control parameterContainer) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\cms-vodoke\9f7fc69b\77cb7e4\App_Web_nlj0wmz0.7.cs:0
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +11249515
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +245
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +11249515
ASP.cmsadmin_cm_category_form_aspx.__RenderpgContent1(HtmlTextWriter __w, Control parameterContainer) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\cms-vodoke\9f7fc69b\77cb7e4\App_Web_xq4tbmg1.0.cs:0
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +11249515
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +245
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +314
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +47
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +11249515
ASP.cmsadmin_system_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\wwwroot\cms-vodoke\cmsadmin\system.master:28
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +11249515
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +245
System.Web.UI.Page.Render(HtmlTextWriter writer) +39
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +11249515
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5273
web安装项目构建得很好,安装时没有任何问题,但应用程序就是不工作,即使在我的本地机器上也是如此。我已经被这个绊倒好几天了
有人能帮我确定这个问题是从哪里来的吗?非常感谢 这不是显示错误是什么以及抛出错误的原因的行。由于没有代码行可读取,因此我也很难找到错误的根源 一般来说,当您尝试引用空值或对象类型不是阶段中预期的类型时,会引发此异常。这可能是您正在处理的依赖项中的错误,也可能是此应用程序正在使用的程序集文件中的错误 这一页是空的吗?可能引发此错误的代码是什么
转到此处并阅读异常信息。请转到应用程序部署到的服务器并查看windows事件日志。您应该能够在那里看到详细的事件日志。请粘贴与您的应用程序相关的内容,以便我们了解发生了什么。嗨,阿法扎尔·艾哈迈德·泽山,谢谢您的回复。实际上,我只是想知道在什么情况下,当在IIS中手动添加虚拟目录并运行时,应用程序可以正常工作,但在创建安装程序并安装并运行后会抛出此异常。因为VS2010中的预构建过程进行得很顺利,所以我不知道哪个部分是错误的。谢谢。页面不是空的,它是一个常见的web表单,后面有C#代码。在构建安装项目时,我通过在应用程序文件夹下选择内容输出和主输出来添加项目输出。然后我得到警告:两个或多个对象具有相同的目标位置('[targetdir]\bin\gembox.spreadsheet.dll')。这是导致程序集文件错误的原因吗?我不确定如何检查依赖项是否正常工作。谢谢