问题描述
我创建了一个模型的新观点。
我得到该错误消息
I'm creating a new view off of a model.
The error message I am getting is
错误
有运行选定code产生一个错误:
访问路径
'C:\\用户\\ XXXXXXX \\应用程序数据\\本地的\\ Temp \\ SOMEGUID \\ EntityFramework.dll被拒绝
我运行VS 2013年的管理员。
I am running VS 2013 as administrator.
我看了Is通过命令行?MvcScaffolding兼容VS 2013 RC ,但这似乎并没有解决问题。
I looked at Is MvcScaffolding compatible with VS 2013 RC by command line? but this didn't seem to resolve the issue.
VS2013
C#5
MVC5
全新项目开始于2013 VS
VS2013C#5MVC5Brand new project started in VS 2013.
推荐答案
问题是与损坏的web.config和包目录。
Problem was with a corrupted web.config and package directory.
我创建了新的项目,并复制我的code文件转移到新的工作项目,我后来回去跑的配置文件和项目本身的文件夹差异的diff。
I created the new project, and copied my code files over to the new working project, I later went back and ran diffs on the config files and a folder diff on the project itself.
问题是,更新了高度junked了很多,我结束了清理出的文物更新我的配置文件。
The problem was that the updates had highly junked up my config file with lots of update artifacts that I ended up clearing out.
第二个问题是,旧的项目还一直守候到被认为与包的NuGet的应用被消灭,老年人的DLL。于是,我抹了OBJ和bin文件夹,那么包文件夹。这是完成后,我能得到修复旧项目和建筑清洁。
The second problem was that the old project also kept hanging onto older DLLs that were supposed to be wiped with the application of the Nuget package. So I wiped the obj and bin folders, then the package folder. After that was done, I was able to get the older project repaired and building cleanly.
我还没有研究为什么配置文件或包文件夹是如此borked,但我假设它是两件事情之一。
I have not looked into why the config file or the package folder was so borked, but I'm assuming it is one of two things.
- 的可能封装的NuGet有一个缺陷
- 的TFS源代码管理无法正常更新各种依赖封锁的NuGet。
此后,应用任何更新之前,我检查出的一切。然而,因为我还没有更新EF一段时间,我没有证据表明这解决了我的EF或棚架问题。
Since then, before applying any updates, I check out everything. However, since I have not updated EF in a while, I no evidence that this has resolved my EF or scaffolding issue.
这篇关于"有运行选定code发生器QUOT一个错误;在VS 2013脚手架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!