求救 Server Error in '/' Application.

英文字母打字员 2011-05-17 03:56:13
系统本地测试无错误 服务器上运行报错 错误信息如下:
Server Error in '/' Application.
--------------------------------------------------------------------------------

Object variable or With block variable not set.
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.

Exception Details: System.NullReferenceException: Object variable or With block variable not set.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object variable or With block variable not set.]
Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack) +423428
HhSoft.wcc.RecordEdit.FillControl() +372
HhSoft.wcc.RecordEdit.DataBind() +757
publicHotle.Added.Add_T_Personal_integral_send.Page_Load(Object sender, EventArgs e) in F:\怀化移动酒店系统\publicHotle\publicHotle\Added\Add_T_Personal_integral_send.aspx.cs:87
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


目前知道是WITH块错误 但是怎么改问下各位大侠
...全文
118 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
[Quote=引用 10 楼 porschev 的回复:]
<allow users="*" />加上试试看
[/Quote]

加了 直接报错 无法运行了
porschev 2011-05-17
  • 打赏
  • 举报
回复

<allow users="*" />加上试试看
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 laoyingisme 的回复:]

应该是那个变量没初始化
[/Quote]
给点准确的信息
laoyingisme 2011-05-17
  • 打赏
  • 举报
回复
应该是那个变量没初始化
  • 打赏
  • 举报
回复
又没人回答了 唉唉
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 porschev 的回复:]
在本地又没问题

你的web.config中

authorization是怎么配置的?
[/Quote]

<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="sql1" value="server=wlj;database=hotle;uid=sa;pwd=sa" />
</appSettings>

<connectionStrings/>
<system.web>
<!--
设置 compilation debug="true" 可将调试符号插入
已编译的页面中。但由于这会
影响性能,因此只在开发过程中将此值
设置为 true。
-->
<compilation debug="true" defaultLanguage="c#" />
<!--
通过 <authentication> 节可以配置 ASP.NET 用来
识别进入用户的
安全身份验证模式。
-->
<authentication mode="Windows"/>
<!--
如果在执行请求的过程中出现未处理的错误,
则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
开发人员通过该节可以配置
要显示的 html 错误页
以代替错误堆栈跟踪。

<customErrors mode="Off" >
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<pages validateRequest="false">
<controls>
<add tagPrefix="PageUC1" tagName="Header" src="~/Control/Header.ascx"/>
<add tagPrefix="PageUC1" tagName="Footer" src="~/Control/Footer.ascx"/>
<add tagPrefix="PageUC1" tagName="PageEditBar" src="~/Control/PageEditBar.ascx"/>
<add tagPrefix="PageUC1" tagName="HeaderIndex" src="~/Control/HeaderIndex.ascx"/>
<add tagPrefix="PageUC1" tagName="AdvancedSearch" src="~/Control/AdvancedSearch.ascx"/>
<add tagPrefix="HhSoft" namespace="HhSoft.wcc" assembly="HhSoft.wcc"/>
<add tagPrefix="HhSoft" namespace="HhSoft.wfw" assembly="HhSoft.wfw"/>
<add tagPrefix="HhSoft" namespace="HhSoft.wpc" assembly="HhSoft.wpc"/>
<add tagPrefix="HhSoft" namespace="HhSoft.wuc" assembly="HhSoft.wuc"/>
</controls>
</pages>
</system.web>
</configuration>

  • 打赏
  • 举报
回复
[Quote=引用 2 楼 houyanjun 的回复:]

权限问题,把你发布的文件夹权限设置下,设置成IUSER_ 与 User IIS_WPG这几个用户的读写权限打开。
[/Quote]

好像还是不行
服务器为03的系统
porschev 2011-05-17
  • 打赏
  • 举报
回复

在本地又没问题

你的web.config中

authorization是怎么配置的?
porschev 2011-05-17
  • 打赏
  • 举报
回复

这是什么对象没有初始化吧。
houyanjun 2011-05-17
  • 打赏
  • 举报
回复
权限问题,把你发布的文件夹权限设置下,设置成IUSER_ 与 User IIS_WPG这几个用户的读写权限打开。
  • 打赏
  • 举报
回复
哪位大侠说说啊 救命啊

62,263

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧