asp.net中的连接问题(sql server 2008) [英] Problem in connection in asp.net(sql server 2008)

查看:90
本文介绍了asp.net中的连接问题(sql server 2008)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..

请提供任何参考链接。









错误:





'/ p2c2'应用程序中的服务器错误。



无法加载文件或程序集p2c2或其中一个依赖项。此程序集由比当前加载的运行时更新的运行时构建,无法加载。



描述:执行当前Web请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。



异常详细信息:System.BadImageFormatException:无法加载文件或程序集p2c2或其依赖项之一。此程序集由比当前加载的运行时更新的运行时构建,无法加载。



源错误:



在执行当前Web请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常的起源和位置的信息。



装配负载跟踪:以下信息可以帮助确定装配的原因'p2c2'无法加载。





===预先绑定状态信息===

日志:用户= OMC02003005 \ tekexplore_C02003005

日志:DisplayName = p2c2

(部分)

日志:Appbase = file:/// E:/25.2.14/p2c2/

日志:初始PrivatePath = E:\25.2.14 \p2c2 \ bin

调用程序集:(未知)。

===

日志:此绑定在默认加载上下文中启动。

日志:使用应用程序配置文件:E:\25.2。 14 \p2c2 \web.config

日志:使用来自C:\ Windows \ Microprosoft.NET \Framework\v2.0.50727\config\machine.config的计算机配置文件。

日志:政策未在t处应用于参考他的时间(私人,自定义,部分或基于位置的程序集绑定)。

日志:尝试下载新的URL文件:/// C:/ Users / tekexplore_C02003005 / AppData / Local / Temp /临时ASP.NET文件/ p2c2 / 0088aec1 / 9867cce3 / p2c2.DLL。

日志:尝试下载新的URL文件:/// C:/ Users / tekexplore_C02003005 / AppData / Local / Temp / Temporary ASP.NET文件/ p2c2 / 0088aec1 / 9867cce3 / p2c2 / p2c2.DLL。

日志:尝试下载新的URL文件:/// E:/25.2.14/p2c2/bin/p2c2。 DLL。

错误:无法完成程序集的设置(hr = 0x8013101b)。探测终止。

解决方案




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

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



查看此链接

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



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



http://stackoverflow.com/questions/5138735/error-this-assembly-is-built-by-a-runtime-newer-than-the-currently-loaded-runti [< a href =http://stackoverflow.com/questions/5138735/error-this-assembly-is-built-by-a-runtime-newer-than-the-currently-loaded-runtitarget =_ blanktitle =新窗口> ^ ]



http://stackoverflow.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://stackoverflow.com/questions/10607095/this-assembly-is-built-by-a-runtime-newer-than-the-currently-loaded-runtime-and[^]

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

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


这篇关于asp.net中的连接问题(sql server 2008)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆