我已经在.net框架中组装了一个程序集,我打算将其发布到GAC,但是我无法找到gacutil它.
我一直在谷歌搜索,我发现了很多建议,但没有任何作用:
[DOES NOT WORK][DOES NOT
WORK][returns an error: this assembly is built by a runtime newer
than the currently loaded runtime and cannot be loaded]有没有人有想法解决这个问题?
我有一个ASP.net MVC应用程序,它使用由xamarin应用程序共享的可移植类库.当我的Web应用程序立即启动时,它会抛出此错误:
Method not found: 'Void Newtonsoft.Json.Serialization.DefaultContractResolver.set_IgnoreSerializableAttribute(Boolean)'.
Run Code Online (Sandbox Code Playgroud)
我正在使用Structure Map MVC nuget包,它工作正常,直到我引用了PCL库.
它在这行代码中出错:
GlobalConfiguration.Configuration.DependencyResolver = new StructureMapDependencyResolver(container);
Run Code Online (Sandbox Code Playgroud)
我认为它与PCL类和MVC有关,它们都引用了JSON.net.有想法该怎么解决这个吗?我最终重建了我的机器,以确保只有这个版本在GAC中而没有其他地方.
有任何想法吗
我有一台装有VS 2012的VS和VS2010的机器.我正在尝试按照http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api上的代码来试用Web API .我尝试在网上关注如何解决问题的一些不同的链接,但仍然无法使用IIS Express/Cassini为我的Windows 7 x64机箱上的主机使用Web API.目前我得到"未找到方法:'Void Newtonsoft.Json.Serialization.DefaultContractResolver.set_IgnoreSerializableAttribute(Boolean)'." 尝试查看应该是什么产品列表时出错.
我完全按照写入的方式跟踪网页,并且没有手动添加任何内容.我确实为网络堆栈设置了夜间存储库http://www.myget.org/F/aspnetwebstacknightly/,但不知道是否会导致问题.如果有帮助的话,这是NuGet的Get-Package转储程序.
PM> Get-Package
Id Version Description/Release Notes
-- ------- -------------------------
EntityFramework 5.0.0-rc Entity Framework is Microsoft's recommended data access technology for new applications.
jQuery 1.6.2 jQuery is a new kind of JavaScript Library....
jQuery.UI.Combined 1.8.11 jQuery UI is an open source library of interface components — interactions, full-featured widgets, and animation effects — based on the stellar jQuery javascript library . Each component is built accordin... …Run Code Online (Sandbox Code Playgroud)