我正在使用 .net framework 4.0 并且在 Web 部署设置上工作,我已经引用了 sql server 2008 的 SMO 组件。当我在我的设置中使用 Smo 组件调用 ExecuteNonQuery 函数时,它会给出以下错误:"Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information." 但有时候它在我的代码中可以正常运行,而有时候会出现这个错误。
我使用相同的类、相同的方法,有时它能够正确运行,有时却会出现此错误。我对这个错误感到非常烦恼,找不到任何原因。我还想知道 SMO 组件是否可用于 .Net framework v4.0?
我使用相同的类、相同的方法,有时它能够正确运行,有时却会出现此错误。我对这个错误感到非常烦恼,找不到任何原因。我还想知道 SMO 组件是否可用于 .Net framework v4.0?