且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

asp.net中的连接问题(sql server 2008)

更新时间:2023-02-22 20:42:09




我觉得有些装配丢失,请检查bin文件夹,是ddl显示的任何东西黄色警报图标?,重建网站并尝试,

和你的错误msg u bulit在最新的框架中你尝试在旧框架中运行,尝试检查framworke版本。



查看此链接

HTTP://社会.msdn.microsoft.com /论坛/窗/ EN-US / f9c42103-558a-4fe1-b9fb-4a316854433f /这具组件的内置按一个运行时,新超的-当前加载运行时 - 并且 - 无法加载?forum = winforms [ ^ ]



http://***.com/questions/10607095/this-程序集是由运行时构建的 - 比当前加载的运行时更新 - 和 [ ^ ]



http://***.com/questions/5138735/error-this-assembly-is-built-by-a-runtime-newer-than-the-currently-loaded-runti [ ^ ]



http://***.com/questions/6364676/this-assembly-is-built-by-a-runtime-newer-than-the-currently-loaded-runtime-and [ ^ ]

Hi..
Please give any reference link.




Error:


Server Error in '/p2c2' Application.

Could not load file or assembly 'p2c2' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

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.BadImageFormatException: Could not load file or assembly 'p2c2' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

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 'p2c2' could not be loaded.


=== Pre-bind state information ===
LOG: User = OMC02003005\tekexplore_C02003005
LOG: DisplayName = p2c2
(Partial)
LOG: Appbase = file:///E:/25.2.14/p2c2/
LOG: Initial PrivatePath = E:\25.2.14\p2c2\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\25.2.14\p2c2\web.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Users/tekexplore_C02003005/AppData/Local/Temp/Temporary ASP.NET Files/p2c2/0088aec1/9867cce3/p2c2.DLL.
LOG: Attempting download of new URL file:///C:/Users/tekexplore_C02003005/AppData/Local/Temp/Temporary ASP.NET Files/p2c2/0088aec1/9867cce3/p2c2/p2c2.DLL.
LOG: Attempting download of new URL file:///E:/25.2.14/p2c2/bin/p2c2.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8013101b). Probing terminated.

Hi
I think some assembly is missing,pls check bin folder,is any thing ddl show yellow alert icon ?,rebuild web site and try,
and in ur error msg u bulit in latest framework and u try to run in old framework,try to check framworke version.

check this links
http://social.msdn.microsoft.com/Forums/windows/en-US/f9c42103-558a-4fe1-b9fb-4a316854433f/this-assembly-is-built-by-a-runtime-newer-than-the-currently-loaded-runtime-and-cannot-be-loaded?forum=winforms[^]

http://***.com/questions/10607095/this-assembly-is-built-by-a-runtime-newer-than-the-currently-loaded-runtime-and[^]

http://***.com/questions/5138735/error-this-assembly-is-built-by-a-runtime-newer-than-the-currently-loaded-runti[^]

http://***.com/questions/6364676/this-assembly-is-built-by-a-runtime-newer-than-the-currently-loaded-runtime-and[^]