asp.net使用自己开发的公共组件发布问题。
蝈蝈俊 2003-05-20 09:21:17 自己开发了一个公共组件CSDNFunction,把它发布到应用程序缓存中(gacutil /i)
但是发布机子上执行asp.net程序,会报下面错误。
Server Error in '/member' Application.
--------------------------------------------------------------------------------
File or assembly name CSDNFunction, 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 CSDNFunction, 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 'CSDNFunction' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = CSDNFunction, Version=1.0.1206.32019, Culture=neutral, PublicKeyToken=64958407e147fc50
(Fully-specified)
LOG: Appbase = file:///E:/web/Csdn.net/member
LOG: Initial PrivatePath = bin
Calling assembly : member, Version=1.0.1206.32521, 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.1.4322\aspnet.config).
LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: CSDNFunction, Version=1.0.1206.32019, Culture=neutral, PublicKeyToken=64958407e147fc50
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/member/0aebdf3f/826dabde/CSDNFunction.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/member/0aebdf3f/826dabde/CSDNFunction/CSDNFunction.DLL.
LOG: Attempting download of new URL file:///E:/web/Csdn.net/member/bin/CSDNFunction.DLL.
LOG: Attempting download of new URL file:///E:/web/Csdn.net/member/bin/CSDNFunction/CSDNFunction.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/member/0aebdf3f/826dabde/CSDNFunction.EXE.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/member/0aebdf3f/826dabde/CSDNFunction/CSDNFunction.EXE.
LOG: Attempting download of new URL file:///E:/web/Csdn.net/member/bin/CSDNFunction.EXE.
LOG: Attempting download of new URL file:///E:/web/Csdn.net/member/bin/CSDNFunction/CSDNFunction.EXE.
Stack Trace:
[FileNotFoundException: File or assembly name CSDNFunction, or one of its dependencies, was not found.]
member.Test.Page_Load(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.510; ASP.NET Version:1.1.4322.510