我在网上下载了一个名叫“NTidy”的开源代码,功能是把HTML转换成XML的,在开发环境下运行很正常,但部署后在没有开发环境的机器上运行就弹出错误提示。文件名是“NTidy.dll”,这个文件的依赖项是“Microsoft.VisualC”和“mscorlib”,我搞了很久都搞不定,希望能给点提示。以下是错误信息:有关调用实时(JIT)调试而不是此对话框的详细信息,
请参阅此消息的结尾。************** 异常文本 **************
System.IO.FileNotFoundException: 找不到文件或程序集名称“NTidy”,或找不到它的一个依赖项。
文件名: “NTidy”
   at UniversalFunction.ConvertHtmlToXml.FormatHtml(String html)
   at UniversalFunction.ConvertHtmlToXml.HtmlToXml(Byte[] Html)
   at UniversalFunction.Convert.ThisFunction.HtmlToXml(String html)
   at newControlDepository.HtmlInputBox.ToolBar_原格式()
   at newControlDepository.HtmlInputBox.meGetMht(String& Text)
   at newControlDepository.DataInput_ElementBox.meGetData()
   at newControlDepository.DataInputBox.SaveServer_Button_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)=== Pre-bind state information ===
LOG: DisplayName = NTidy, Version=1.0.2229.25758, Culture=neutral, PublicKeyToken=null
 (Fully-specified)
LOG: Appbase = C:\hyaa1\
LOG: Initial PrivatePath = NULL
Calling assembly : 通用功能, Version=1.0.2229.27134, Culture=neutral, PublicKeyToken=null.
===LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: NTidy, Version=1.0.2229.25758, Culture=neutral, PublicKeyToken=null
LOG: Attempting download of new URL file:///C:/hyaa1/NTidy.DLL.

解决方案 »

  1.   

    我是在windows2003下安装运行的,安装程序把NTidy.dll都写到安装目录里了。不存在.NET框架问题,已经是.NET1.1了,而且mscorlib都加载了。mscorlib
        程序集版本: 1.0.5000.0
        Win32 版本: 1.1.4322.2300
        基本代码: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
      

  2.   

    不明白,注册下看看,要不放到system32下?