asp.net 1.1错误 [英] asp.net 1.1 error

查看:51
本文介绍了asp.net 1.1错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我在一个带有usercontrols的asp.net页面上发生了一个非常奇怪的错误。

如果我设置debug ="假QUOT;在web.config文件中,该页面抛出一​​个错误: -

System.Web.HttpException:外部组件引发了异常。 --->

System.Web.HttpCompileException:外部组件抛出异常。

在System.Web.Compilation.BaseCompiler.ThrowIfCompile rErrors(CompilerResults
结果,CodeDomProvider codeProvider,CodeCompileUnit sourceData,String

sourceFile,String sourceString)

System.Web.Compilation.BaseCompiler.GetCompiledTyp e()at

System.Web.UI.PageParser.CompileIntoType()at

System.Web.UI.TemplateParser.GetParserCacheItemThr oughCompilation()---结束
$ b $内部异常堆栈跟踪的b ---在System.Web.UI.TemplateParser.GetParserCacheItem上的系统.Web $。$ b $ System.Web.UI.TemplateParser.GetParserCacheItemInt ernal(Boolean

fCreateIfNotFound) ()

System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String

virtualPath,String inputFile,HttpContext context)

系统。 Web.UI.TemplateControlParser.GetCompiledIns tance(String virtualPath,

Str


系统.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String virtualPath,

String inputFile,HttpContext context)

System.Web.HttpApplication.MapHttpHandler($ b $ System.Web.HttpApplication.MapHttpHandler)$ b System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context,String

requestType,String url,String path) HttpCont ext context,String

requestType,String path,String pathTranslated,Boolean useAppConfig)

System.Web.MapHandlerExecutionStep.System.Web.Http Application + IExecutionStep.Execute( )

在System.Web.HttpApplication.ExecuteStep(IExecutionS tep step,Boolean&

completedSynchronously)


如果我设置调试=" true",然后一切正常。什么可能导致

这个?它刚刚开始发生......

Hi all,

I have a very weird error going on in an asp.net page that has usercontrols.
If I set debug="false" in the web.config file, the page throws an error:-

System.Web.HttpException: External component has thrown an exception. --->
System.Web.HttpCompileException: External component has thrown an exception.
at System.Web.Compilation.BaseCompiler.ThrowIfCompile rErrors(CompilerResults
results, CodeDomProvider codeProvider, CodeCompileUnit sourceData, String
sourceFile, String sourceString) at
System.Web.Compilation.BaseCompiler.GetCompiledTyp e() at
System.Web.UI.PageParser.CompileIntoType() at
System.Web.UI.TemplateParser.GetParserCacheItemThr oughCompilation() --- End
of inner exception stack trace --- at
System.Web.UI.TemplateParser.GetParserCacheItemInt ernal(Boolean
fCreateIfNotFound) at System.Web.UI.TemplateParser.GetParserCacheItem() at
System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.TemplateControlParser.GetCompiledIns tance(String virtualPath,
String inputFile, HttpContext context) at
System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String virtualPath,
String inputFile, HttpContext context) at
System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String
requestType, String url, String path) at
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig) at
System.Web.MapHandlerExecutionStep.System.Web.Http Application+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)

If I set debug="true", then everything works fine. What could be causing
this? It just started happening...

推荐答案

你好Param,


你可以试试看看的东西如果它有帮助:


1)做一个iisreset当您更改调试设置时

2)清除临时asp.net文件在

%windir%\microsoft.net \ framework \< version>


访问任何页面都会抛出异常?甚至是一个空页?


它是否可重复?即在其他网站上部署也存在这个问题。


最后,我建议你使用分而治之。 stragety追踪

根本原因:一次删除一些文件;一次在

web.config中注释掉配置。

真诚的,

Walter Wang(wa **** @ online.microsoft.com,删除''在线。'')

Microsoft在线社区支持


=========== =======================================

获取通知我的帖子通过邮件?请参阅
http://msdn.microsoft .com / subscripti ... ult.aspx#notif

ications。如果您使用的是Outlook Express,请确保清除

复选框工具/选项/读取:一次获取300个标题及时看到你的回复




注意:MSDN托管新闻组支持服务是针对非紧急问题

其中来自社区或Microsoft支持的初步响应

工程师可在1个工作日内完成。请注意,每个跟随

的响应可能需要大约2个工作日作为支持

专业人士与您合作可能需要进一步调查才能达到

最有效的分辨率。该产品不适用于需要紧急,实时或基于电话的交互或复杂的b $ b项目分析和转储分析问题的情况。这种性质的问题最好通过联系

Microsoft客户支持服务(CSS)处理
href =http://msdn.microsoft.com/subscriptions/support/default.aspx\"target =_ blank> http://msdn.microsoft.com/subscripti...t/default.aspx

======================================== ==========


此帖子按原样提供。没有保证,也没有授予任何权利。

Hi Param,

You may try following things to see if it helps:

1) do a "iisreset" when you changed the debug setting
2) clean the "temporary asp.net files" in
%windir%\microsoft.net\framework\<version>

Is visiting any page will throw the exception? even an empty page?

Is it reproducible? i.e. deploying on other web site also has this problem.

At last, I would suggest you use "divide and conquer" stragety to track
down the root cause: remove some files at a time; comment out the config in
web.config at a time.

Sincerely,
Walter Wang (wa****@online.microsoft.com, remove ''online.'')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.


这个问题现在也可以在开发中重现。


这是正在发生的事情。我有2个.ascx用户控件。两者都叫做

app_tabs.ascx。但是,它们分为两个单独的文件夹。


c:\ mysite \ usercontrols\app_tabs.ascx

c:\ myysite \ usercontrols \ new \app_tabs.ascx


现在,我在不同的页面中使用这些用户控件。具有第二个

usercontrol的页面抛出此异常: -

编译错误

描述:编译期间发生错误需要的资源

来处理此请求。请查看以下具体错误详情

并正确修改源代码。


编译器错误消息:BC30560:''app_tabs_ascx''在

命名空间''_ASP''。


来源错误:


第127行:< sta:titlebar id = QUOT; statitlebar" runat =" server" />

第128行:< sta:toolbar id =" statoolbar" runat =" server" />

第129行:< sta:dealerone_apptabs id =" statabs" runat =" server" />

第130行:< br>

第131行:


如果我设置在web.config中debug = true,这个错误就消失了.....


Walter Wang [MSFT]" < wa **** @ online.microsoft.com写信息

news:84 ************** @ TK2MSFTNGXA01.phx.gbl ...
This issue is now reproducible in Development as well.

Here is what is going on. I have 2 .ascx usercontrols. Both are called
app_tabs.ascx. However, they are in 2 seperate folders.

c:\mysite\usercontrols\app_tabs.ascx
c:\mysite\usercontrols\new\app_tabs.ascx

Now, I use these usercontrols in different pages. The page that has the 2nd
usercontrol throws this exception:-

Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.

Compiler Error Message: BC30560: ''app_tabs_ascx'' is ambiguous in the
namespace ''_ASP''.

Source Error:

Line 127:<sta:titlebar id="statitlebar" runat="server"/>
Line 128:<sta:toolbar id="statoolbar" runat="server"/>
Line 129:<sta:dealerone_apptabs id="statabs" runat="server"/>
Line 130:<br>
Line 131:

If I set debug=true in web.config, this error goes away.....


"Walter Wang [MSFT]" <wa****@online.microsoft.comwrote in message
news:84**************@TK2MSFTNGXA01.phx.gbl...

您好Param,


您可以尝试以下方法来查看它是否有帮助:


1)做一个iisreset当您更改调试设置时

2)清除临时asp.net文件在

%windir%\microsoft.net \ framework \< version>


访问任何页面都会抛出异常?甚至是一个空页?


它是否可重复?即在其他网站上部署也有这个问题。


最后,我建议你使用分而治之。 stragety追踪

根本原因:一次删除一些文件;在
web.config中一次注释掉配置




此致,

Walter Wang(wa****@online.microsoft.com,删除''在线。'')

Microsoft在线社区支持


=== ===============================================

通过电子邮件收到我的帖子通知?请参阅
http://msdn.microsoft .com / subscripti ... ult.aspx#notif

ications。如果您使用的是Outlook Express,请确保清除

复选框工具/选项/读取:一次获取300个标题看到你的

回复

及时。


注意:MSDN管理新闻组支持服务是针对非紧急问题的/>
,可以在1个工作日内收到社区或Microsoft支持工程师的初步回复。请注意,每个跟随

的响应可能需要大约2个工作日作为支持

专业人士与您合作可能需要进一步调查才能达到

最有效的分辨率。该产品不适用于需要紧急,实时或基于电话的交互或复杂的b $ b项目分析和转储分析问题的情况。这种性质的问题最好通过联系

Microsoft客户支持服务(CSS)处理
href =http://msdn.microsoft.com/subscriptions/support/default.aspx\"target =_ blank> http://msdn.microsoft.com/subscripti...t/default.aspx

======================================== ==========


此帖子按原样提供。没有保证,并且不授予

权利。
Hi Param,

You may try following things to see if it helps:

1) do a "iisreset" when you changed the debug setting
2) clean the "temporary asp.net files" in
%windir%\microsoft.net\framework\<version>

Is visiting any page will throw the exception? even an empty page?

Is it reproducible? i.e. deploying on other web site also has this
problem.

At last, I would suggest you use "divide and conquer" stragety to track
down the root cause: remove some files at a time; comment out the config
in
web.config at a time.

Sincerely,
Walter Wang (wa****@online.microsoft.com, remove ''online.'')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your
reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.



Hi Param,

您使用的是哪个版本的ASP.NET?您是否在VS2005中使用Web应用程序

项目加载项?


我已经在VS2005中使用网站进行了测试并且没有重现该问题如果我

在不同的文件夹中有两个相同名称的UserControl。


请你创建一个可重现的项目并发送给我?谢谢。


问候,

Walter Wang(wa****@online.microsoft.com,删除''在线。'')

Microsoft在线社区支持


============================ ======================

在回复帖子时,请回复群组通过你的新闻阅读器

其他人可以从你的问题中学习并从中受益。

==================== ==============================

此帖子提供按现状 ;没有保证,也没有授予任何权利。

Hi Param,

Which version of ASP.NET are you using? Are you using Web Application
Project add-in in VS2005?

I''ve tested using Web Site in VS2005 and didn''t reproduce the issue if I
have two same named UserControl in different folders.

Would you please create a reproducible project and send it to me? Thank you.

Regards,
Walter Wang (wa****@online.microsoft.com, remove ''online.'')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.


这篇关于asp.net 1.1错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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