一人,一生,一条路!
分类:
2005-08-17 21:16:28
遇到下面的问题或许大家在c#写的aspx页面里都会晕的,解决方式或许不简单,但想知道为什么的确也不容易。
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: Unable to load file 'ASClientCpp'.
错误如下,记得以前就写过这个问题,当初是因为ASClientCpp这个dll即使放置在bin下也无济于事,最终是拷入System32下解决的,但这一次无论拷入什么目录底下都不顶事了。而且错误页面上所显示的地址我都拷入了,于是就在群中使命的发贴,争取解决问题。解决方法无非是上面的两点,但我都做了,不过还是有高手的,有位高手最终说了一句,可能是动态库的版本问题,当时我就晕了,不可能呀,程序里什么也没改过,但是我导入的库好像是后来又编译过一遍的,不会只因为又编译了一遍程序就不认了吧,这样aspx也太脆弱的吧。于是将所涉及的自己编写的dll都重新编译了一遍,然后重新导入,再编译,然后拷入System32下。居然这次可以显示正常页面了,哎,真是无语了。
居然真的是这样,以后做程序要小心了。但这只是实践的结果,还不知道真正的原因到底是什么呢。等查到了再来。若有高人,也可以告之,先谢过了。
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: Unable to load file 'ASClientCpp'.
Source Error: Line 256:
Source File: c:winntmicrosoft.netframeworkv1.1.4322Configmachine.config Line: 258
Assembly Load Trace: The following information can be helpful to determine why the assembly 'ASClientCpp' could not be loaded.=== Pre-bind state information ===
LOG: DisplayName = ASClientCpp
(Partial)
LOG: Appbase = file:///D:/xnltest/tsa
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: ASClientCpp
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/xnltest/b7d96956/4e104a7a/ASClientCpp.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/xnltest/b7d96956/4e104a7a/ASClientCpp/ASClientCpp.DLL.
LOG: Attempting download of new URL file:///D:/xnltest/tsa/bin/ASClientCpp.DLL.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: ASClientCpp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573