English 中文(简体)
系统。 数据大会 不详
原标题:System.Data Assembly Not found

我在窗口服务项目中提到了<代码>System.Data。 查阅<代码>Exception:

不能装载档案或组装系统。 数据,版本=4.0.0.0,文化中立,公共锡肯=b77a5c561934e089,或其属地之一。 该系统无法找到具体档案。

I attach the FusionLog to my code and found out the following. For System.Data only visual studio is looking here:

方案主管从: C:windowsMicrosoft.NETFrameworkv2.0.50727mscorwks.dll

And it should be looking here (all the other assemblies are but System.Data)

方案主管从: C:windowsMicrosoft.NETFrameworkv4.0.30319clr.dll

How can I do point my System.Data file to look in the right place?

我的猜测是Microsoft Commerce 服务器 ,指2 个夹。

最佳回答

页: 1

  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
  </startup>

如果你需要旧的lls车装在窗户服务中,你必须补充。 对网络服务而言,二者自动照顾网络服务,而不是窗口服务。

问题回答

确保你们的项目得以实施。 框架4 如果做不到这一点,就将其全面描述(而不仅仅是客户)

如果你在解决方案探索者中选择参考组,则核实操作时间版是正确的(见下图)。 您可以删除这一提法,并在必要时重新提出。

此外,如果你使用笔记,则确保定时标本正确。

enter image description here





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签