ascx在命名空间ASP中含糊不清 [英] ascx is ambiguous in the namespace ASP

查看:63
本文介绍了ascx在命名空间ASP中含糊不清的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台使用IIS 6.0的Windows Server 2003机器,我收到错误


BC30560 prjob_ascx在命名空间ASP中含糊不清


我找到了解决办法。删除

中的所有文件C:\ WINDOWS \ MicroStoswork.NET \ Framework \v2.0.50727 \Temp orary ASP.NET文件

目录修复问题。


有没有办法防止这个问题。


谢谢

-

Jerry

解决方案

你确定你没有两次同样的ascx吗?您应该能够通过UV的@Control指令克服这个问题,给它

ClassName =" name"其名称与您的美国名称不同

:-)

-

Teemu Keiski

AspInsider,ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net


Jerry C < je ***** @ nospam.nospamwrote in message

新闻:C6 ************************* ********* @ microsof t.com ...


>我有一台使用IIS 6.0的机器Windows Server 2003而且我得到了
错误


BC30560 prjob_ascx在名称空间ASP中含糊不清


我找到了修复程序。删除

中的所有文件C:\ WINDOWS \ MicroStoswork.NET \ Framework \v2.0.50727 \Temp orary ASP.NET文件

目录修复问题。


有没有办法防止这个问题。


谢谢

-

Jerry



嗨Jerry,


此错误通常是报告因为ASP.NET使用

动态编译模型,所以在生成的程序集中有一些页面或用户控件

具有相同的名称。例如,您可能包含一个usercontrol和

a网页,它们具有相同的名称。

http://forums.codecharge.com/posts.php?post_id=55779


正如Teemu建议的那样,您可以尝试重命名

错误消息中提到的ascx控件,看看是否可以消除冲突。


此致,


Steven Cheng


Microsoft MSDN在线支持主管

让客户满意是我们的首要任务。我们欢迎您的意见和

有关我们如何改进我们为您提供的支持的建议。请

随时让我的经理知道您对服务水平的看法

提供。您可以直接向我的经理发送反馈:
ms****@microsoft.com


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

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

ications。


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

如果社区或微软支持人员在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

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

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

--------------------


>来自:=?Utf-8?B?SmVycnkgQw ==?=< je ***** @ nospam.nospam>
主题:ascx在名称空间ASP中含糊不清
日期:2008年4月18日星期五11:11:02 -0700


> X-Tomcat-NG:microsoft.public.dotnet.framework。 aspnet

我有一台使用IIS 6.0的Windows Server 2003机器,我得到



错误


>
BC30560 prjob_ascx在名称空间ASP中含糊不清

我找到了修复程序。删除
C:\ WINDOWS \ Microoft.NET \ Framework \v2.0.50727 \Tem porary ASP.NET文件
目录中的所有文件修复了问题。

有没有办法防止这个问题。

谢谢
-
Jerry


< blockquote>感谢您的回复。


此错误仅在偶尔发生一次。如果我在

目录中有重复文件,那么每次网站编译时都会发生这种情况。文件名也是

xxx_ascx我的代码中的任何地方都没有使用下划线来获取控件名称

或类。这似乎是一个框架错误。此外,如果我的代码中有重复的

名称,我将不得不删除它们以获取要编译的代码。要

修复此错误我必须删除临时文件然后它将编译。所以我

不认为这是由重复文件名引起的错误。此

问题也只发生在我的一台服务器上。另一台服务器用于编码

和测试工作OK。请记住,此服务器可能会在此之前运行数周

。该链接讨论了每次代码编译时出现的问题

编译,这不是这里的情况。删除临时文件会清除错误

并且代码编译并运行正常。


谢谢

-

Jerry

" Steven Cheng [MSFT]"写道:


嗨Jerry,


此错误通常报告有一些页面或用户控件

在生成的程序集中具有相同的名称,因为ASP.NET使用

动态编译模型。例如,您可能包含一个usercontrol和

a网页,它们具有相同的名称。

http://forums.codecharge.com/posts.php?post_id=55779


正如Teemu建议的那样,您可以尝试重命名

错误消息中提到的ascx控件,看看是否可以消除冲突。


此致,


Steven Cheng


Microsoft MSDN在线支持主管


让客户满意是我们的首要任务。我们欢迎您的意见和

有关我们如何改进我们为您提供的支持的建议。请

随时让我的经理知道您对服务水平的看法

提供。您可以直接向我的经理发送反馈:
ms****@microsoft.com


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

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

ications。


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

如果社区或微软支持人员在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

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

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


--------------------


来自:=?Utf-8?B?SmVycnkgQw ==?=< je ***** @ nospam.nospam>

主题:ascx在命名空间ASP

日期:2008年4月18日星期五11:11:02 -0700


X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet


我有一台使用IIS 6.0的机器Windows Server 2003,我得到



error



BC30560 prjob_ascx在名称空间ASP中含糊不清


我找到了修复程序。删除

中的所有文件C:\ WINDOWS \ MicroStoswork.NET \ Framework \v2.0.50727 \Temp orary ASP.NET文件

目录修复问题。


有没有办法防止这个问题。


谢谢

-

Jerry



I have a machine Windows Server 2003 using IIS 6.0 and I am getting the error

BC30560 prjob_ascx is ambiguous in the namespace ASP

I found a fix. Deleting all the files in the
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files
Directory fixes the problem.

Is there a way to prevent this problem.

Thank you
--
Jerry

解决方案

Are you sure you don''t have the same ascx twice?. You should be able to
overcome this, by in @Control directive of the UV, giving it
ClassName="name" where name is something different than the name of your uc
:-)
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Jerry C" <je*****@nospam.nospamwrote in message
news:C6**********************************@microsof t.com...

>I have a machine Windows Server 2003 using IIS 6.0 and I am getting the
error

BC30560 prjob_ascx is ambiguous in the namespace ASP

I found a fix. Deleting all the files in the
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files
Directory fixes the problem.

Is there a way to prevent this problem.

Thank you
--
Jerry



Hi Jerry,

This error is usually reporting that there are some pages or usercontrols
that have the same name in the generated assemblies since ASP.NET use a
dynamic compilation model. For example, you may contains a usercontrol and
a web page and they have the same name.

http://forums.codecharge.com/posts.php?post_id=55779

As Teemu suggested, you can try renaming the ascx control mentioned in the
error message to see whether that can eliminate the conflicting.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

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.
--------------------

>From: =?Utf-8?B?SmVycnkgQw==?= <je*****@nospam.nospam>
Subject: ascx is ambiguous in the namespace ASP
Date: Fri, 18 Apr 2008 11:11:02 -0700

>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

I have a machine Windows Server 2003 using IIS 6.0 and I am getting the

error

>
BC30560 prjob_ascx is ambiguous in the namespace ASP

I found a fix. Deleting all the files in the
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files
Directory fixes the problem.

Is there a way to prevent this problem.

Thank you
--
Jerry


Thank you for the replys.

This error occours only once in a while. If I had duplicate files in the
directory it would occur every time the site compiles. Also the file name is
xxx_ascx The underbar is not used anywhere in my code for a name of a control
or class. this seems to be a framework error. Also If there were duplicate
names in my code I would have to remove them to get the code to compile. To
fix this error I have to remove the temp files and then it will compile. So I
do not think this is a error caused by duplicate file names. Also this
problem only occurs on one of my servers. The other server used for coding
and testing work OK. Remember this server can run for weeks before this
occurs. The link talks about problems that ocur every time the code is
compiled this is not the case here. Deleting the temp files clears the error
and the code compiles and runs OK.

Thank you
--
Jerry
"Steven Cheng [MSFT]" wrote:

Hi Jerry,

This error is usually reporting that there are some pages or usercontrols
that have the same name in the generated assemblies since ASP.NET use a
dynamic compilation model. For example, you may contains a usercontrol and
a web page and they have the same name.

http://forums.codecharge.com/posts.php?post_id=55779

As Teemu suggested, you can try renaming the ascx control mentioned in the
error message to see whether that can eliminate the conflicting.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

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.
--------------------

From: =?Utf-8?B?SmVycnkgQw==?= <je*****@nospam.nospam>
Subject: ascx is ambiguous in the namespace ASP
Date: Fri, 18 Apr 2008 11:11:02 -0700

X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

I have a machine Windows Server 2003 using IIS 6.0 and I am getting the

error


BC30560 prjob_ascx is ambiguous in the namespace ASP

I found a fix. Deleting all the files in the
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files
Directory fixes the problem.

Is there a way to prevent this problem.

Thank you
--
Jerry



这篇关于ascx在命名空间ASP中含糊不清的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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