ASP.Net网站无法重新生成解决方案也发布 [英] ASP.Net Website Cannot Rebuild Solution Nor Publish

查看:414
本文介绍了ASP.Net网站无法重新生成解决方案也发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个疯狂的问题,并且需要帮助。

I have a crazy issue and need assistance.

我有一个ASP.Net网站(4节框架),所有的突然我不能重建解决方案,也没有发布。

I have an ASP.Net Website (v. 4 framework) that all of sudden I cannot Rebuild Solution nor Publish.

当我重新生成解决方案,我得到一个CS0433错误,其中

When I Rebuild Solution I get a CS0433 error, where

类型ASP.ascx_breadcrumb_ascx'两个'C存在。 DLL'和'C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \临时ASP.NET文件\ MyAppName \ d1db14f7 \ 26574b0c \ App_Web_breadcrumb.ascx.c95a9aa.l64cmosr.dll'

"The type 'ASP.ascx_breadcrumb_ascx' exists in both 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\MyAppName\d1db14f7\26574b0c\App_Web_breadcrumb.ascx.c95a9aa.ckg3a1pq.dll' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\MyAppName\d1db14f7\26574b0c\App_Web_breadcrumb.ascx.c95a9aa.l64cmosr.dll'"

当我发布的Visual Studio(2010旗舰版)指出它成功,但没有* .compile文件在bin,这意味着不能访问该网站获得创建。

When I Publish Visual Studio (2010 Ultimate) states it succeeded but no *.compile files get created in the bin, which means the site cannot be accessed.

精练谷歌和我的同事们,我们碰到建议:

Scouring Google with my colleagues we came across advice to:

  • 删除在c的所有文件:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \临时ASP.NET文件
  • 重新启动IIS
  • 从该网站的bin删除所有文件
  • 重新启动开发机

我甚至恢复我的所有code,从源头控制和之前我目前的变化从一个版本的网站相同的问题。

I have even reverted all my code from source control and get the same issues from a version of the site from before my current changes.

请注意:

  • 在我重新启动我的机器,进入VS和重建我得到这个错误:在该线程运行已被卸载的应用程序域再次重建,我也得到了上述冲突错误。
  • 在我创建了这个网站,并打它成功的地方,但发布文件仍然在相同的情况下结束上述
  • 在未进行任何更改,以在错误中引用的Breadcrumb.ascx控制发

我的机器凭证为:

  • 在Windows Vista中
  • 的Visual Studio 2010旗舰版
  • 在我有管理权限

任何意见将是极大的AP preciated!

Any advice would be greatly appreciated!

推荐答案

。我现在可以重新生成解决方案,并发布(这将创建的* .compile)文件。

With the help of colleagues at work we fixed this issue by manually installing .Net 4.5. I can now Rebuild Solution and Publish (which creates the *.compile) files.

我们认为发生的事情是,我们的基础设施团队安装Windows更新过周末,因为上周五的一切工作,并在周一发现我们的电脑重新启动,并没有什么工作。

这篇关于ASP.Net网站无法重新生成解决方案也发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆