什么是2.0编译异常? [英] What's this 2.0 compilation anomaly?

查看:46
本文介绍了什么是2.0编译异常?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在设计时,应用程序决定继续宣称它不能为b $ b找到一个dll。这种情况偶尔发生。在HTML中为

示例做一个简单的编辑,然后查看应用程序导致应用程序进入
繁荣。有时页面会使用F5编译和运行,而其他页面则没有。


所以我在网上搜索探索环顾博客和tuts和

确定我应该进入临时ASP.NET文件并删除包含应用程序临时文件的目录

。我必须将机器重置为

删除它。重新启动VS2005并返回工作,编辑,查看,编辑,审核,

编辑,审核,然后再进行BOOM。我一直在努力的是HTML。


我会抛弃结果并希望有人知道这个并且可以帮助

解释所以我可以再次忙碌...


错误CS0006:元数据文件

''C:\ WINDOWS \ MicrosoftMicrosoft.NET \ Framework \ v2.0.50727 \Tem porary ASP.NET

Files \2beta_metro2\331c872a\fd27ed37\App_Code.7swu hu9q.dll''无法找到
找到


来源错误:

[没有相关的源代码行]


C:\ WINDOWS \ system32> " C:\ WINDOWS \ Macrooft.NET\Framework\v2.0.50727\csc .exe"

/ t:library / utf8output

/ R :C:\ WINDOWS \ Microsoft.NET.NET \ Framework \v2.0.50727 \T emporary ASP.NET

Files \2beta_metro2 \ 331c872a \fd27ed37 \ App_Code。 7swu hu9q.dll"

/R:"C:\WINDOWS\assembly\GAC\BasicFrame.WebControls。 BasicDatePicker \1.1.1959.0__8c5b7d113ff0d5cd\Basic Frame.WebControls.BasicDatePicker.dll"

/R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0 .0.0__ b03f5f7f11d50a3a\System.Web.dll"

/R:" C:\ WINDOWS \assembly\GAC_MSIL \ System.Drawing \\\ 2.0.0.0b03f5f7f11d50a3a \ System .Drawing.dll"

/R:"C:\WINDOWS\assembly\GAC_32\System.Data\02.0.0.0_ _b77a5c561934e089\System.Data.dll"

/R:"C:\WINDOWS\assembly\GAC_MSIL \Accessibility \2.0。 0.0__b03f5f7f11d50a3a\Accessibility.dll"

/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configurati on\\\ 2.0.0.0__b03f5f7f11d50a3a \ System.Configuration。 dll

/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 \T emporary ASP.NET

Files \\ \\ 2beta_metro2\331c872a\fd27ed37\App_Web_three stackedpanels.master.6044e34.8is_oyvt.dll"

/ R:" C:\ WINDOWS \assembly \ GAC_MSIL \ System \ 2.0.0.0__b7 7a5c561934e089\System.dll"

/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\ 2.0.0.0__b03f5f7f11d50a3a \ System.Web.Mobile.dll"

/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\m scorlib.dll"

/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\\\ 2.0.0.0 __b77a5c561934e089\System.Xml.dll"

/ R: " C:\ WINDOWS \assembly\GAC_32\System.EnterpriseSer vices \2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseS ervices.dll"

/ R:" C:\\ \\WINDOWS\ass embly\GAC_MSIL \ System.Web.Service s \\\ 2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dl l"

/ out:" C:\ WINDOWS \ Myscoft .NET.\\Framework\v2.0.50727 \Temporary ASP.NET

Files \2beta_metro2 \ 331c872a \ fd27ed37 \ App_Web_chann elbuilder.aspx.851e3233.gbobafmd.dll"

/ D:DEBUG / debug + / optimize-

/win32res:"C:\WINDOWS\Microsoft.NET\Framework\v2.0。 50727\Temporary ASP.NET

Files \2beta_metro2 \ 331c872a \fd27ed37 \ tevfep2j.res" / w:4 / nowarn:1659; 1699

" C:\ WINDOWS \ Microsrosoft.NET \ Framework \v2.0.50727 \Tem porary ASP.NET

文件\2beta_metro2 \331c872a \ fd27ed37 \ App_Web_chann elbuilder.aspx.851e3233.gbobafmd.0.cs"

" C:\ WINDOWS \ MicrosoftMode \ Framework \v2.0.50727 \Tem porary ASP.NET

Files \2beta_metro2 \ 331c872a \ fd27ed37 \ App_Web_chann elbuilder.aspx.851e3233.gbobafmd.1.cs"

" C:\ WINDOWS \ Microsrosoft.NET \ Framework \v2.0.50727 \Tem porary ASP.NET

Files \2beta_metro2 \331c872a \ fd27ed37 \\ \\ App_Web_chann elbuilder.aspx.851e3233.gbobafmd.2.cs"

注意:


观察我的虚拟应用程序位于2beta_metro2

inetpub \ www.root \ 2beta是我开始构建metro2应用程序的地方

每次尝试加载页面时都会出现繁荣2.0与

VS2005并尝试使用浏览器加载应用程序

和HTTP请求时也一样。


现在如果你不介意的话,我会用大量的汽油来自行消耗

摩根船长倒入热巧克力牛奶。


< ;%= Clinton Gallagher



At design-time the application just decides to go boom claiming it can''t
find a dll. This occurs sporadically. Doing a simple edit in the HTML for
example and then viewing the application has caused the application to go
boom. Sometimes the page will compile and run using F5 and others not.

So I do the web search tango looking around the blogs and the tuts and
determine I should go into Temporary ASP.NET Files and delete the directory
containing the application''s temporary files. I have to reset the machine to
delete it. Restart VS2005 and go back to work, edit, review, edit, review,
edit, review and then BOOM. All I''ve been working on is the HTML.

I''ll dump the results and hope somebody knows about this and can help
explain so I can get busy again...

error CS0006: Metadata file
''C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\2beta_metro2\331c872a\fd27ed37\App_Code.7swu hu9q.dll'' could not be
found

Source Error:
[No relevant source lines]

C:\WINDOWS\system32> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc .exe"
/t:library /utf8output
/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\T emporary ASP.NET
Files\2beta_metro2\331c872a\fd27ed37\App_Code.7swu hu9q.dll"
/R:"C:\WINDOWS\assembly\GAC\BasicFrame.WebControls. BasicDatePicker\1.1.1959.0__8c5b7d113ff0d5cd\Basic Frame.WebControls.BasicDatePicker.dll"
/R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__ b03f5f7f11d50a3a\System.Web.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0 .0.0__b03f5f7f11d50a3a\System.Drawing.dll"
/R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0_ _b77a5c561934e089\System.Data.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\Accessibility\2.0. 0.0__b03f5f7f11d50a3a\Accessibility.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configurati on\2.0.0.0__b03f5f7f11d50a3a\System.Configuration. dll"
/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\T emporary ASP.NET
Files\2beta_metro2\331c872a\fd27ed37\App_Web_three stackedpanels.master.6044e34.8is_oyvt.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b7 7a5c561934e089\System.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\ 2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll"
/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\m scorlib.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0 __b77a5c561934e089\System.Xml.dll"
/R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseSer vices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseS ervices.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Service s\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dl l"
/out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 \Temporary ASP.NET
Files\2beta_metro2\331c872a\fd27ed37\App_Web_chann elbuilder.aspx.851e3233.gbobafmd.dll"
/D:DEBUG /debug+ /optimize-
/win32res:"C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\Temporary ASP.NET
Files\2beta_metro2\331c872a\fd27ed37\tevfep2j.res" /w:4 /nowarn:1659;1699
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\2beta_metro2\331c872a\fd27ed37\App_Web_chann elbuilder.aspx.851e3233.gbobafmd.0.cs"
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\2beta_metro2\331c872a\fd27ed37\App_Web_chann elbuilder.aspx.851e3233.gbobafmd.1.cs"
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\2beta_metro2\331c872a\fd27ed37\App_Web_chann elbuilder.aspx.851e3233.gbobafmd.2.cs"
NOTE:

Observe that my virtual application is located at 2beta_metro2 where
inetpub\wwwroot\2beta was where I began building the metro2 application
which is now going boom every time I try to load the page using 2.0 with
VS2005 and does the same when trying to load the application with a browser
and an HTTP request.

Now if you don''t mind, I am going to vaporize myself with copious amounts of
Captain Morgan''s poured into hot chocolate milk.

<%= Clinton Gallagher




推荐答案

clintonG写道:
clintonG wrote:
在设计时,应用程序只是决定去繁荣声称它不能找到一个dll。这种情况偶尔发生。例如,在HTML中进行简单的编辑然后查看应用程序已经导致
应用程序蓬勃发展。有时页面将使用F5编译和运行
而不是其他。
At design-time the application just decides to go boom claiming it
can''t find a dll. This occurs sporadically. Doing a simple edit in
the HTML for example and then viewing the application has caused the
application to go boom. Sometimes the page will compile and run
using F5 and others not.




在ASP.NET 2.0中,执行的程序集由代码组成 - 后面和

.aspx文件。当您浏览页面时,这两个被编译到Temporary ASP.NET Files文件夹中的

动态程序集中。编辑

..aspx页面时,必须重新编译该类。这是部分

类的概念。


我没有看到你描述的问题,但似乎如果

是锁定Temporary ASP.NET Files文件夹的东西。我做了

一时间听到一个问题,McAfee将文件锁定在

位置并导致问题。不确定你的情况是否有可能




-

Jim Cheshire

================================

博客: http://blogs.msdn.com/jamesche


最新条目:深入研究对象

描述使用调试器挖掘

内存使用情况的详细信息。



In ASP.NET 2.0, the assembly that executes is made up of the code-behind AND
the .aspx file. When you browse the page, those two are compiled into the
dynamic assembly in the Temporary ASP.NET Files folder. When you edit the
..aspx page, the class must be recompiled. This is the concept of partial
classes.

I''ve not seen the issue you describe, but it seems that this might occur if
something is locking the Temporary ASP.NET Files folder or something. I did
hear of an issue a while back where McAfee was locking files in that
location and causing issues. Not sure if that''s a possibility in your case
or not.

--
Jim Cheshire
================================
Blog: http://blogs.msdn.com/jamesche

Latest entry: Digging into Objects
Describes the details of digging into
memory usage with the debugger.

顺便说一句,就像你的博客一样,阅读良好,通常不会读到这种低级别的东西。


- -

最好的问候


无与伦比的Mr Newbie o?o

" Jim Cheshire" <无***** @ none.com>在消息中写道

news:uE ************** @ TK2MSFTNGP09.phx.gbl ...
Like your blog by the way, good reading, it''s not often one reads this kind
of low level stuff !

--
Best Regards

The Inimitable Mr Newbie o?o
"Jim Cheshire" <no*****@none.com> wrote in message
news:uE**************@TK2MSFTNGP09.phx.gbl...
clintonG写道:
clintonG wrote:
在设计时,应用程序决定继续繁荣声称它无法找到一个dll。这种情况偶尔发生。例如,在HTML中进行简单的编辑然后查看应用程序已经导致
应用程序蓬勃发展。有时页面将使用F5编译和运行
而不是其他。
At design-time the application just decides to go boom claiming it
can''t find a dll. This occurs sporadically. Doing a simple edit in
the HTML for example and then viewing the application has caused the
application to go boom. Sometimes the page will compile and run
using F5 and others not.



在ASP.NET 2.0中,执行的程序集由代码隐藏
和.aspx文件。当您浏览页面时,这两个被编译成Temporary ASP.NET Files文件夹中的动态程序集。当您编辑.aspx页面时,必须重新编译该类。这是
部分类的概念。

我没有看到你描述的问题,但似乎可能会发生这种情况
如果有什么东西锁定临时ASP。 NET Files文件夹或其他东西。我确实听说过McAfee将文件锁定在该位置并导致问题的问题。不确定你的情况是否可能


-
Jim Cheshire
============ ====================
博客: http://blogs.msdn.com/jamesche

最新条目:深入研究对象
描述挖掘内存使用情况的详细信息调试器。



In ASP.NET 2.0, the assembly that executes is made up of the code-behind
AND the .aspx file. When you browse the page, those two are compiled into
the dynamic assembly in the Temporary ASP.NET Files folder. When you edit
the .aspx page, the class must be recompiled. This is the concept of
partial classes.

I''ve not seen the issue you describe, but it seems that this might occur
if something is locking the Temporary ASP.NET Files folder or something. I
did hear of an issue a while back where McAfee was locking files in that
location and causing issues. Not sure if that''s a possibility in your case
or not.

--
Jim Cheshire
================================
Blog: http://blogs.msdn.com/jamesche

Latest entry: Digging into Objects
Describes the details of digging into
memory usage with the debugger.



Mr Newbie写道:
Mr Newbie wrote:
顺便提一下你的博客,好读,它'不经常读一读
这种低级别的东西!
Like your blog by the way, good reading, it''s not often one reads
this kind of low level stuff !




谢谢。到目前为止,我已将它保持基本且非常漂亮。我计划在更深入的概念中获得更多深入的概念。


-

Jim Cheshire < br $> b $ b ================================

博客:< a rel =nofollowhref =http://blogs.msdn.com/jameschetarget =_ blank> http://blogs.msdn.com/jamesche


最新条目:深入研究对象

描述使用调试器挖掘

内存使用情况的详细信息。



Thanks. I''ve kept it basic and pretty 101 level so far. I plan on getting
into more in-depth concepts as I develop a good base.

--
Jim Cheshire
================================
Blog: http://blogs.msdn.com/jamesche

Latest entry: Digging into Objects
Describes the details of digging into
memory usage with the debugger.


这篇关于什么是2.0编译异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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