曙海教育集团论坛开发语言培训专区Microsoft.NET Framework → 用vs.net2003开发,然后发布在使用.netframework1.0的服务器上出现的问题


  共有5985人关注过本帖平板打印

主题:用vs.net2003开发,然后发布在使用.netframework1.0的服务器上出现的问题

美女呀,离线,留言给我吧!
wangxinxin
  1楼 个性首页 | 博客 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:青蜂侠 帖子:1393 积分:14038 威望:0 精华:0 注册:2010-11-12 11:08:23
用vs.net2003开发,然后发布在使用.netframework1.0的服务器上出现的问题  发帖心情 Post By:2010-12-15 11:33:06

问:
我用vs.net2003测试一个小程序,能正常运行。但把它发布到安装framework1.0的服务器上,出现如下错误:
代码如下:
========================================
    private void Page_Load(object sender, System.EventArgs e)
    {
        try
        {
 string s = this.Request.Params["Folder"]; //如果删除这句,1.0的服务器上运行就会正常。
        }
        catch{}
    }

上面那句导致的错误catch无法捕获。运行时候浏览器中显示如下错误:
=================================
File or assembly name System, or one of its dependencies, was not found.
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.IO.FileNotFoundException: File or assembly name System, or one of its dependencies, was not found.

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. 

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


=== Pre-bind state information ===
LOG: DisplayName = System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
 (Fully-specified)
LOG: Appbase = file:///E:/wwwroot/aspxuser/hahahawk.17163.com
LOG: Initial PrivatePath = bin
Calling assembly : Wrox.WebModules.FileManager.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file (C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet.config).
LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Framework\v1.0.3705\config\machine.config.
LOG: Post-policy reference: System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/646c7f18/82ce05e1/System.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/646c7f18/82ce05e1/System/System.DLL.
LOG: Attempting download of new URL file:///E:/wwwroot/aspxuser/hahahawk.17163.com/bin/System.DLL.
LOG: Attempting download of new URL file:///E:/wwwroot/aspxuser/hahahawk.17163.com/bin/System/System.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/646c7f18/82ce05e1/System.EXE.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/646c7f18/82ce05e1/System/System.EXE.
LOG: Attempting download of new URL file:///E:/wwwroot/aspxuser/hahahawk.17163.com/bin/System.EXE.
LOG: Attempting download of new URL file:///E:/wwwroot/aspxuser/hahahawk.17163.com/bin/System/System.EXE.

 

Stack Trace:


支持(0中立(0反对(0单帖管理 | 引用 | 回复 回到顶部

返回版面帖子列表

用vs.net2003开发,然后发布在使用.netframework1.0的服务器上出现的问题








签名