这是什么错误,大家进来看看

qwjcool 2005-03-18 11:27:23
系统配置XP,IIS 5.0
一开始是只有一个解决方案,一切正常,后来在另外一个目录里面又新建了一个解决方案,问题来了,访问新建那个解决方案里面的内容就会出现下面的错误,原来的正常。错误信息如下。

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The 'pageBaseType' attribute must be set to a valid Type name (format: <typename>,<assemblyname>)

Source Error:


Line 25: <system.web>
Line 26:
Line 27: <pages pageBaseType="XmlTemplate.Web.Controls.BasePage, XmlTemplate.Web.Controls" />
Line 28:
Line 29: <!-- DYNAMIC DEBUG COMPILATION


Source File: C:\Inetpub\wwwroot\eastj2.0\web.config Line: 27

Assembly Load Trace: The following information can be helpful to determine why the assembly 'XmlTemplate.Web.Controls' could not be loaded.


=== Pre-bind state information ===
LOG: DisplayName = XmlTemplate.Web.Controls
(Partial)
LOG: Appbase = file:///C:/qwj/Eastj/JavaScript
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: XmlTemplate.Web.Controls
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/test/9ac49f0d/7df29987/XmlTemplate.Web.Controls.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/test/9ac49f0d/7df29987/XmlTemplate.Web.Controls/XmlTemplate.Web.Controls.DLL.
LOG: Attempting download of new URL file:///C:/qwj/Eastj/JavaScript/bin/XmlTemplate.Web.Controls.DLL.
LOG: Attempting download of new URL file:///C:/qwj/Eastj/JavaScript/bin/XmlTemplate.Web.Controls/XmlTemplate.Web.Controls.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/test/9ac49f0d/7df29987/XmlTemplate.Web.Controls.EXE.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/test/9ac49f0d/7df29987/XmlTemplate.Web.Controls/XmlTemplate.Web.Controls.EXE.
LOG: Attempting download of new URL file:///C:/qwj/Eastj/JavaScript/bin/XmlTemplate.Web.Controls.EXE.
LOG: Attempting download of new URL file:///C:/qwj/Eastj/JavaScript/bin/XmlTemplate.Web.Controls/XmlTemplate.Web.Controls.EXE.




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
...全文
85 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
qwjcool 2005-04-01
  • 打赏
  • 举报
回复
up
qwjcool 2005-03-21
  • 打赏
  • 举报
回复
谢谢fancyf(等待……)
我把第一个项目的XmlTemplate.Web.Controls.DLL复制到第二个项目的bin里面就可以了

还有一个疑问:
就是第二个项目中的web.config不能屏蔽,第一个项目中的web.config吗。我第二个项目中没有这个
<pages pageBaseType="XmlTemplate.Web.Controls.BasePage, XmlTemplate.Web.Controls" />
fanruinet 2005-03-21
  • 打赏
  • 举报
回复
新添加的这个方案缺文件XmlTemplate.Web.Controls.DLL
是不是没有编译?bin目录下有这个文件吗?

实在不行就打开Web.config文件把这行:
<pages pageBaseType="XmlTemplate.Web.Controls.BasePage, XmlTemplate.Web.Controls" />
直接删去
qwjcool 2005-03-21
  • 打赏
  • 举报
回复

spz1755 2005-03-18
  • 打赏
  • 举报
回复
pageBaseType 属性指示要用作所有动态创建的 Page 类的基础类型的类的名称和程序集。默认情况下,该属性在 config 文件中被设置为 System.Web.UI.Page。
njuzgj 2005-03-18
  • 打赏
  • 举报
回复
学习
qwjcool 2005-03-18
  • 打赏
  • 举报
回复
那文件中还需要写
class xxx
inherits System.Web.UI.Page
spz1755 2005-03-18
  • 打赏
  • 举报
回复
如果你在webconfig中设置了pageBaseType="XmlTemplate.Web.Controls.BasePage, XmlTemplate.Web.Controls" ,那么你所有的page页面都将继承XmlTemplate.Web.Controls。所以会出现上述错误。

62,243

社区成员

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

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

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

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