.net 2.0与.net 3.5不兼容,高手们指点

weihanmingwhmwhm 2011-06-21 03:42:27
网店在2.0下面运行正常,服务器升级到.net 3.5后就出错,请大家指点一下!

Server Error in '/' Application.
--------------------------------------------------------------------------------

Unable to load DLL 'McRuntime364.dll': 找不到指定的模块。 (Exception from HRESULT: 0x8007007E)
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.DllNotFoundException: Unable to load DLL 'McRuntime364.dll': 找不到指定的模块。 (Exception from HRESULT: 0x8007007E)

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.

Stack Trace:


[DllNotFoundException: Unable to load DLL 'McRuntime364.dll': 找不到指定的模块。 (Exception from HRESULT: 0x8007007E)]
InfaceMaxtoCode.CheckRuntime64(IntPtr OO01O11Ol) +0
InfaceMaxtoCode.LoadRuntimes() +516
InfaceMaxtoCode.Startup() +28
V5Shop.Config.Provider.BaseConfigInfoProvider..cctor() +5

[TypeInitializationException: The type initializer for 'V5Shop.Config.Provider.BaseConfigInfoProvider' threw an exception.]
V5Shop.Config.Provider.BaseConfigInfoProvider.GetRealBaseConfig() +0
V5Shop.Page.HttpModule.OlO0100l1O011ll1O0(Object O01OOO, EventArgs O) +91
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
...全文
472 19 打赏 收藏 转发到动态 举报
写回复
用AI写文章
19 条回复
切换为时间正序
请发表友善的回复…
发表回复
weihanmingwhmwhm 2011-12-24
  • 打赏
  • 举报
回复
[Quote=引用 15 楼 lost_painting 的回复:]
整個服務器搜索 McRuntime364.dll
[/Quote]

怎办?
weihanmingwhmwhm 2011-12-24
  • 打赏
  • 举报
回复
[Quote=引用 16 楼 lextm 的回复:]
这个项目之前用这个加密过,http://www.maxtocode.com/chs/index.html

应该是绑定了在.NET 2上面才工作。

你想在.NET 3.5上面工作,估计得重新混淆。问问最开始加密的那个人吧。
[/Quote]

大哥,如何在.net 3.5上面工作呢,有具体混淆吗?
accpuser01 2011-09-05
  • 打赏
  • 举报
回复
请问问题解决了吗
lextm 2011-06-26
  • 打赏
  • 举报
回复
这个项目之前用这个加密过,http://www.maxtocode.com/chs/index.html

应该是绑定了在.NET 2上面才工作。

你想在.NET 3.5上面工作,估计得重新混淆。问问最开始加密的那个人吧。
鸭梨山大帝 2011-06-25
  • 打赏
  • 举报
回复
整個服務器搜索 McRuntime364.dll
porschev 2011-06-25
  • 打赏
  • 举报
回复

这整套东西都不是LZ写的?

也没有源文件?

那就没啥办法了。。
qq183670101 2011-06-23
  • 打赏
  • 举报
回复
帮顶,版本问题一直很头疼。
weihanmingwhmwhm 2011-06-21
  • 打赏
  • 举报
回复
[Quote=引用 9 楼 abao623660072 的回复:]
跟你说了,服务器上的是3.5 ,最好本地也有,然后重新生成
[/Quote]

帅哥,我没有原文件了,这是直接安装v5shop的
weihanmingwhmwhm 2011-06-21
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 jy251 的回复:]
看了下,总觉得问题出在V5SHOP这个第三方软件上,估计报错的那个DLL文件也是这个V5SHOP需要使用的DLL吧。
一般情况下第三方的DLL在初始化的时候并不会自己定义一个绝对路径去加载所需要的模块,而是根据调用方的软件情况来弄。
我个人觉得这个问题应该是你的程序并不太严谨导致的,也许你的代码在2.0里面没错,但是在3.5中就有问题了,你得仔细查查程序的逻辑,看看有没有不严谨的地方。这个问题……
[/Quote]

说得有道理 ,他们说也是程序问题,关键是如何去改掉。
金刚葫芦娃 2011-06-21
  • 打赏
  • 举报
回复
跟你说了,服务器上的是3.5 ,最好本地也有,然后重新生成
金刚葫芦娃 2011-06-21
  • 打赏
  • 举报
回复
清除,然后点生成解决方案
jy251 2011-06-21
  • 打赏
  • 举报
回复
看了下,总觉得问题出在V5SHOP这个第三方软件上,估计报错的那个DLL文件也是这个V5SHOP需要使用的DLL吧。
一般情况下第三方的DLL在初始化的时候并不会自己定义一个绝对路径去加载所需要的模块,而是根据调用方的软件情况来弄。
我个人觉得这个问题应该是你的程序并不太严谨导致的,也许你的代码在2.0里面没错,但是在3.5中就有问题了,你得仔细查查程序的逻辑,看看有没有不严谨的地方。这个问题就好比,我在1.1里面,直接在线程里面操作window,但是代码挪到2.0就直接报错一样。

查查你的程序逻辑吧。
weihanmingwhmwhm 2011-06-21
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 tashiwoweiyi 的回复:]
好像少了,'McRuntime364.dll'这个文件吧。。


你重新添加下引用看看,然后重新生成。
[/Quote]

如何做呢?
weihanmingwhmwhm 2011-06-21
  • 打赏
  • 举报
回复
<?xml version="1.0"?>
<configuration>
<!-- EnterpriseLibrary相关配置 -->
<configSections>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="cachingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Caching.Configuration.CacheManagerSettings, Microsoft.Practices.EnterpriseLibrary.Caching, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</configSections>
<!-- 数据库连接字符串列表 -->
<dataConfiguration defaultDatabase="DefaultString" />
<connectionStrings>
<add name="AccessConnString" connectionString="Provider = Microsoft.Jet.OLEDB.4.0 ; Data Source = E:\Web08Shop\SourceCode\V5Shop\V5Shop\V5Shop.Shop\database\#v5shopdb.config" providerName="System.Data.OleDb" />
<add name="SQLConnString" connectionString="Data Source=172.16.0.99;Initial Catalog=V5Shop;Persist Security Info=True;User ID=v5shop_p;Password=99663" providerName="System.Data.SqlClient" />
<add name="DefaultString" connectionString="Data Source=localhost\sql2005;Initial Catalog=v5shop_01;Persist Security Info=True;User ID=v5shop_01;Password=v5shop_019965" providerName="System.Data.SqlClient" />
</connectionStrings>
<cachingConfiguration defaultCacheManager="Default Cache Manager">
<cacheManagers>
<add expirationPollFrequencyInSeconds="1200" maximumElementsInCacheBeforeScavenging="100" numberToRemoveWhenScavenging="1000" backingStoreName="Null Storage" name="Default Cache Manager" />
</cacheManagers>
<backingStores>
<add encryptionProviderName="" type="Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.NullBackingStore, Microsoft.Practices.EnterpriseLibrary.Caching, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" name="Null Storage" />
</backingStores>
</cachingConfiguration>
<!-- 当前使用的数据库连接 -->
<!-- 使用缓存的相关配置 -->
<!-- 网站运行相关配置 -->
<appSettings>
<add key="MaskPage" value="index.aspx|Top.aspx|show.aspx|Left.aspx|lefttop.aspx|Login.aspx|logout.aspx|lefthelp.aspx" />
<add key="LogKeyFile" value="../App_GlobalResources/AdminLog.resx" />
</appSettings>
<location path="." allowOverride="false" inheritInChildApplications="false">
<system.web>
<httpRuntime maxRequestLength="2097151" executionTimeout="3600" />
<!-- 注意:此节设置错误信息的显示

"On" 始终显示自定义(友好的)信息。
"Off" 始终显示详细的 ASP.NET 错误信息。
"RemoteOnly" 只对不在本地 Web 服务器上运行的
-->
<trace localOnly="false" mostRecent="true" pageOutput="true" />
<customErrors mode="Off">
</customErrors>
<!-- 注意:此节设置全球化,V5Shop由此支持多语言。
-->
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" culture="auto" uiCulture="auto" />
<!-- 注意:此节设置是否使用ASP.net表单安全验证,V5Shop使用自己的验证。
-->
<pages validateRequest="false" enableEventValidation="false" enableViewStateMac="false" viewStateEncryptionMode="Never">
<controls>
<add tagPrefix="ajax" namespace="System.Web.UI" assembly="System.Web.Extensions" />
</controls>
<tagMapping>
<add tagType="System.Web.UI.WebControls.CompareValidator" mappedTagType="Sample.Web.UI.Compatibility.CompareValidator, Validators, Version=1.0.0.0" />
<add tagType="System.Web.UI.WebControls.CustomValidator" mappedTagType="Sample.Web.UI.Compatibility.CustomValidator, Validators, Version=1.0.0.0" />
<add tagType="System.Web.UI.WebControls.RangeValidator" mappedTagType="Sample.Web.UI.Compatibility.RangeValidator, Validators, Version=1.0.0.0" />
<add tagType="System.Web.UI.WebControls.RegularExpressionValidator" mappedTagType="Sample.Web.UI.Compatibility.RegularExpressionValidator, Validators, Version=1.0.0.0" />
<add tagType="System.Web.UI.WebControls.RequiredFieldValidator" mappedTagType="Sample.Web.UI.Compatibility.RequiredFieldValidator, Validators, Version=1.0.0.0" />
<add tagType="System.Web.UI.WebControls.ValidationSummary" mappedTagType="Sample.Web.UI.Compatibility.ValidationSummary, Validators, Version=1.0.0.0" />
</tagMapping>
</pages>
<!-- 注意:此节设置由V5Shop接管http请求。不会干涉对非V5Shop路径下的请求。
-->
<httpHandlers>
<remove verb="*" path="*.asmx" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions" />
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions" />
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions" validate="false" />
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions" />
<add type="V5Shop.Page.HttpModule, V5Shop.Page" name="HttpModule" />
</httpModules>
<compilation debug="true">
<assemblies>
<add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</assemblies>
</compilation>
</system.web>
</location>
</configuration>

Web.config 这个是调用的文件!帮看看是什么问题
weihanmingwhmwhm 2011-06-21
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 tashiwoweiyi 的回复:]
好像少了,'McRuntime364.dll'这个文件吧。。


你重新添加下引用看看,然后重新生成。
[/Quote]

是的,我查了缺少这个'McRuntime364.dll'文件,但是2.0下运行是正常的啊。不提示这个
tashiwoweiyi 2011-06-21
  • 打赏
  • 举报
回复
好像少了,'McRuntime364.dll'这个文件吧。。


你重新添加下引用看看,然后重新生成。
weihanmingwhmwhm 2011-06-21
  • 打赏
  • 举报
回复
[Quote=引用楼主 weihanmingwhmwhm 的回复:]
网店在2.0下面运行正常,服务器升级到.net 3.5后就出错,请大家指点一下!

Server Error in '/' Application.
--------------------------------------------------------------------------------

Unable to load DLL 'McRuntime364.dll':……
[/Quote]


如何改呢?
金刚葫芦娃 2011-06-21
  • 打赏
  • 举报
回复
可能需要在.net 3.5 重新编译下.

110,567

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧