ASP.Net网站无法重新生成解决方案也发布解决方案、网站、ASP、Net

2023-09-05 03:27:35 作者:別捅了莪1刀還問莪疼不疼

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

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更新过周末,因为上周五的一切工作,并在周一发现我们的电脑重新启动,并没有什么工作。的

 
精彩推荐
图片推荐