首页 新闻 会员 周边 捐助

windows2003 iis6.0出现下面的错误, 有人告诉我解决的方法吗?

0
悬赏园豆:100 [已解决问题] 解决于 2011-08-11 14:04

windows2003 iis6.0 在创建文件时出现下面错误, 在vs中调试时不会出现, 网站已经设置为read write 也设置enable parent paths

 

Server Error in '/' Application.

The path is not of a legal form.

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.ArgumentException: The path is not of a legal form.

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:

[ArgumentException: The path is not of a legal form.]   System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) +3806   System.IO.Path.GetFullPathInternal(String path) +59   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +1681   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +138   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +89   SysManagement_PreviewCustomerInfo.btnPreview_Click(Object sender, EventArgs e) +925   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981

页面出现是这样。通过异常取得的信息是 Unable to load DLL 'SettingCE6.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

问题补充:

在32位的windows2003下, 问题可以解决, 但是在64位的windows2003下怎设置都是不行的

风浪的主页 风浪 | 老鸟四级 | 园豆:2996
提问于:2011-08-11 11:58
< >
分享
最佳答案
0

64位系统下看看 IIS运行在32、64哪种模式中

看你上面的信息好像 SettingCE6.dll是 32位,这样64的 IIS是不能加载的

收获园豆:100
2012 | 高人七级 |园豆:21645 | 2011-08-11 12:42
对的哦, 设置为32位的就行了, 为啥在64位上不行呢?
不是说.net与平台没关系吗?
为啥程序中对load dll在不同的平台上差别这么大呢?
风浪 | 园豆:2996 (老鸟四级) | 2011-08-11 14:04
.net本身是可以的32、64都行的,不过需要设置编译选项,以前的VS2005 2008一般都是编译为32位,可以改为CPU无关的即可32/64都能用
但是如果DLL不是.net实现的如C++,那32/64是明确区分的,加载这些库32/64也是明确区分的
2012 | 园豆:21645 (高人七级) | 2011-08-11 17:18
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册