当我运行我的应用程序(MVC 3)时,我无法弄清楚为什么我会收到此错误.该项目引用了Microsoft.SQLServer.ManagedDTS.我安装了SQL Server 2008 R2和SQL Server 2012(均为Express).我正在使用2012这个应用程序.
'/'应用程序中的服务器错误.
无法加载文件或程序集"Microsoft.SqlServer.DTSRuntimeWrap"或其依赖项之一.尝试加载格式不正确的程序.
描述:执行当前Web请求期间发生未处理的异常.请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息.
异常详细信息:System.BadImageFormatException:无法加载文件或程序集"Microsoft.SqlServer.DTSRuntimeWrap"或其依赖项之一.尝试加载格式不正确的程序.
来源错误:
在执行当前Web请求期间生成了未处理的异常.可以使用下面的异常堆栈跟踪来识别有关异常的起源和位置的信息.
程序集加载跟踪:以下信息有助于确定无法加载程序集"Microsoft.SqlServer.DTSRuntimeWrap"的原因.
警告:装配绑定日志记录已关闭.要启用程序集绑定失败日志记录,请将注册表值[HKLM\Software\Microsoft\Fusion!EnableLog](DWORD)设置为1.注意:程序集绑定失败日志记录会导致一些性能损失.要关闭此功能,请删除注册表值[HKLM\Software\Microsoft\Fusion!EnableLog].
堆栈跟踪:
[BadImageFormatException:无法加载文件或程序集'Microsoft.SqlServer.DTSRuntimeWrap'或其依赖项之一.尝试加载格式不正确的程序.]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName,String codeBase,Evidence assemblySecurity,RuntimeAssembly locationHint,StackCrawlMark&stackMark,Boolean throwOnFileNotFound,Boolean forIntrospection,Boolean suppressSecurityChecks)+0
System. Reflection.RuntimeAssembly.InternalLoadAssemblyName(的AssemblyName assemblyRef,证据assemblySecurity,StackCrawlMark&stackMark,布尔forIntrospection,布尔suppressSecurityChecks)567
System.Reflection.RuntimeAssembly.InternalLoad(字符串assemblyString,证据assemblySecurity,StackCrawlMark&stackMark,布尔forIntrospection)192 System.Reflection.Assembly .Load(String assemblyString)+35
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName,Boolean starDirective)+123[ConfigurationErrorsException:无法加载文件或程序集'Microsoft.SqlServer.DTSRuntimeWrap'或其依赖项之一.尝试加载格式不正确的程序.]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName,Boolean starDirective)+11568160
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()+485 System.Web.Configuration .AssemblyInfo.get_AssemblyInternal()+ 79 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)+337
System.Web.Compilation.BuildManager.CallPreStartInitMethods()+280
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager,IApplicationHost appHost,IConfigMapPathFactory configMapPathFactory,HostingEnvironmentParameters hostingParameters,PolicyLevel policyLevel,Exception appDomainCreationException)+1167[HttpException(0x80004005):无法加载文件或程序集"Microsoft.SqlServer.DTSRuntimeWrap"或其依赖项之一.尝试加载格式不正确的程序.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context)+11700896 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)+141 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr ,HttpContext context)+4869125
我正在使用Solr,我想知道是否可以在查询中使用LIKE子句.例如,我想知道标题中所有"纽约"的组织.在SQL中,这将被写成Name LIKE'New York%'.
我的问题 - 你如何在Solr中编写一个LIKE查询?
我正在使用SolrNet库,如果这有所不同.
我正在使用Visual Studio 2012和MVC4.我已经将链接文件(来自另一个项目)添加到我的MVC4应用程序中.以下是文件的属性:
这是我的包的一个例子:
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include("~/Scripts/jquery.unobtrusive*","~/Scripts/jquery.validate*","~/Scripts/FolderA/*.js"));
Run Code Online (Sandbox Code Playgroud)
为了测试,我还在该文件夹中添加了一个空的JavaScript文件(temp.js).这不是链接文件.检查页面源时,将显示此文件,但链接文件不会出现.我无法直接导航到此文件.捆绑中的其他文件看起来很好.
链接文件可以捆绑吗?
我正在研究NoSQL数据库,并对单元测试有疑问.对业务逻辑进行单元测试的适当方法是什么?如何模拟NoSQL数据库?
有谁知道将SQL Server Reporting Services(SSRS)报告嵌入MVC应用程序的方法?我们专门使用Razor Views,不想在我们的应用程序中添加任何.aspx页面.
c# ×3
asp.net-mvc ×2
.net ×1
asp.net ×1
edismax ×1
lucene ×1
nosql ×1
solr ×1
solrnet ×1
sql-server ×1