网站无法建立-foo.Global [英] Website won't build - foo.Global
问题描述
出于某种奇怪的原因,我收到了无法加载类型'foo.Global'".错误.好吧,我已经调查并发现错误是由以下事实引起的:在bin目录中没有名为foo的.dll文件.
For some odd reason I am getting the "Could not load type 'foo.Global'" error. Well, I have investigated and found that the error is caused by the fact that there is no .dll file in the bin-directory with the name of foo.
这是正确的. bin目录中没有文件.
Which is correct. There is no file in the bin-directory.
当我在VS中打开网站时,其名称为解决方案foo(2),而当我尝试构建它时,系统会要求我保存解决方案.当出现保存窗口时,该目录与本地网站的位置完全不同.
When I open up the website in VS it names the solution foo (2) and when I try and build it, I am being asked to save the solution. When the save window comes up, the directory is a totally different place than where the website locally is.
我的开发环境:
Windows 7-64位
Windows 7 - 64 bit
Visual Studio 2008专业版.
Visual Studio 2008 professional.
推荐答案
你好,
1.确保ASPNET帐户在/bin目录上具有读/执行访问权限
2.在需要的情况下重新安装框架
3.运行aspnet_regiis -u"然后是"aspnet_regiis -i"在框架目录中.
这篇关于网站无法建立-foo.Global的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!