asp.net 发布的问题

i8210 2005-09-26 11:31:48
小弟初学
随便写了一个把工程目录下所有的文件和文件夹都放到了空间里,结果执行出错,不知怎么解决:




Server Error in '/' Application.
--------------------------------------------------------------------------------

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: File or assembly name default2, or one of its dependencies, was not found.

Source Error:


Line 256: <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 257: <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 258: <add assembly="*"/>
Line 259: </assemblies>
Line 260:


Source File: c:\winnt\microsoft.net\framework\v1.1.4322\Config\machine.config Line: 258

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


=== Pre-bind state information ===
LOG: DisplayName = default2
(Partial)
LOG: Appbase = C:\root\etc\
LOG: Initial PrivatePath = NULL
Calling assembly : System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
===

LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: default2
LOG: Attempting download of new URL file:///C:/root/etc/default2.DLL.
LOG: Attempting download of new URL file:///C:/root/etc/default2/default2.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/9d9b4ae1/43f3570d/default2.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/9d9b4ae1/43f3570d/default2/default2.DLL.
LOG: Attempting download of new URL file:///C:/root/etc/default2.EXE.
LOG: Attempting download of new URL file:///C:/root/etc/default2/default2.EXE.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/9d9b4ae1/43f3570d/default2.EXE.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/9d9b4ae1/43f3570d/default2/default2.EXE.




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
...全文
223 16 打赏 收藏 转发到动态 举报
写回复
用AI写文章
16 条回复
切换为时间正序
请发表友善的回复…
发表回复
lalafeng 2005-10-01
  • 打赏
  • 举报
回复
建议:从最下面删除 直到 不报错为止 就晓得最后被删除的是错的

再发上看看
mywebcom 2005-10-01
  • 打赏
  • 举报
回复
深夜ding
i8210 2005-09-27
  • 打赏
  • 举报
回复
继续up
i8210 2005-09-27
  • 打赏
  • 举报
回复
继续up
i8210 2005-09-26
  • 打赏
  • 举报
回复
up
i8210 2005-09-26
  • 打赏
  • 举报
回复
设置为可执行程序了吗
=============================
没有。俺在本地运行正常,可以看见页面。
发布后就有这样的问题。
happyfamily 2005-09-26
  • 打赏
  • 举报
回复
设置为可执行程序了吗
redstorm11 2005-09-26
  • 打赏
  • 举报
回复
路径有问题吧
mywebcom 2005-09-26
  • 打赏
  • 举报
回复
Line 256: <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 257: <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 258: <add assembly="*"/>
Line 259: </assemblies>
Line 260:
=====================================================
这里没有错误,可能别的地方……
i8210 2005-09-26
  • 打赏
  • 举报
回复
你放到哪里了?

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

放到了一个国外的asp.net免费空间。
  • 打赏
  • 举报
回复
看这句
Source File: c:\winnt\microsoft.net\framework\v1.1.4322\Config\machine.config Line: 258
本人主观估计是服务器的配置问题。
amendajing 2005-09-26
  • 打赏
  • 举报
回复
你放到哪里了?
i8210 2005-09-26
  • 打赏
  • 举报
回复
up
NetStarStudio 2005-09-26
  • 打赏
  • 举报
回复
检查一下web.config的配置
flyboy20 2005-09-26
  • 打赏
  • 举报
回复
up
i8210 2005-09-26
  • 打赏
  • 举报
回复
up

62,047

社区成员

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

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

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

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