By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,919 Members | 1,690 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,919 IT Pros & Developers. It's quick & easy.

Randomly occuring "Compilation Error"

P: n/a
Hi,

I recently upgraded a website from ASP.NET 1.1 to 2.0. While working on
the site and changing aspx or ascx files, I sometimes randomly get a
compilation error after refreshing the page in the browser (NOT when
building the project from within VS.NET). The only way to fix it is to
clean the project and rebuild it - then reload the page again. This
behaviour is very annoying and I can't work out what's causing it. None
of my other solutions on the same machine have this problem.

The error message I see in the browser is below:
Compilation Error

Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.

Compiler Error Message: CS0006: Metadata file
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\projectname\b877a173\9e5bbe12\App_global.asa x.a8yaarqf.dll' could
not be found

Source Error:
[No relevant source lines]
Can anybody tell me how I can fix this please?

Thanks,

Nick...
Jan 5 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Hi Nick,

The symptom you described is very similar to one of known issues in VS2005
which was just fixed by product team recently. Therefore unfortunately it's
not included in VS2005 SP1. It will be available in next version of Visual
Studio -- Orcas. We're sorry for the inconvenience.

The issue I'm referring to only exists in developing environment (while
debugging) and works fine in production environment.

I'm afraid for now you will have to clean the tempoary asp.net files and
reset IIS to make it work when the issue occurs. I've written following
batch file to do that automatically:

--------------------

Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")

WScript.Echo "iisreset will be executed"
Set oExec = WshShell.Exec("iisreset")

Do While oExec.Status = 0
WScript.Sleep 100
Loop

WScript.Echo oExec.Status

WScript.Echo "iisreset ->finished."

Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")

' you need to modify the folder path
Set f =
fso.GetFolder("C:\WINDOWS\Microsoft.NET\Framework\ v2.0.50727\Temporary
ASP.NET Files\WebAppX")
f.delete
Set fso = nothing
WScript.Echo "web folder was deleted."

------------------

Save above content in a file with extension ".vbs" and use "cscript.exe" or
"wscript.exe" execute it when the issue occurs.

Hope this helps.
Sincerely,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 8 '07 #2

P: n/a
Hi Walter,

Is there a hotfix for this problem as it has become very irritating. I
seem to have to do a full rebuild nearly every time I change an aspx
page now. This only happens on one of my projects and all the others are
fine.

Nick...

Walter Wang [MSFT] wrote:
Hi Nick,

The symptom you described is very similar to one of known issues in VS2005
which was just fixed by product team recently. Therefore unfortunately it's
not included in VS2005 SP1. It will be available in next version of Visual
Studio -- Orcas. We're sorry for the inconvenience.

The issue I'm referring to only exists in developing environment (while
debugging) and works fine in production environment.

I'm afraid for now you will have to clean the tempoary asp.net files and
reset IIS to make it work when the issue occurs. I've written following
batch file to do that automatically:

--------------------

Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")

WScript.Echo "iisreset will be executed"
Set oExec = WshShell.Exec("iisreset")

Do While oExec.Status = 0
WScript.Sleep 100
Loop

WScript.Echo oExec.Status

WScript.Echo "iisreset ->finished."

Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")

' you need to modify the folder path
Set f =
fso.GetFolder("C:\WINDOWS\Microsoft.NET\Framework\ v2.0.50727\Temporary
ASP.NET Files\WebAppX")
f.delete
Set fso = nothing
WScript.Echo "web folder was deleted."

------------------

Save above content in a file with extension ".vbs" and use "cscript.exe" or
"wscript.exe" execute it when the issue occurs.

Hope this helps.
Sincerely,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Jan 11 '07 #3

P: n/a
Hi Nick,

You could use one of your MSDN subscription support incident tickets or
contact Microsoft Product Support and Service directly to open a service
request. Since it's a confirmed bug, the service request will be free of
charge. After you contacted PSS, you can contact me and I will provide the
internal bug ID of this issue so that PSS will know better about the issue.
Thanks.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 12 '07 #4

P: n/a
Hi Walter,

How do I create a "support incident ticket" as you suggest? The only way
I can see of raising a support request requires payment.

Nick...

Walter Wang [MSFT] wrote:
Hi Nick,

You could use one of your MSDN subscription support incident tickets or
contact Microsoft Product Support and Service directly to open a service
request. Since it's a confirmed bug, the service request will be free of
charge. After you contacted PSS, you can contact me and I will provide the
internal bug ID of this issue so that PSS will know better about the issue.
Thanks.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Jan 12 '07 #5

P: n/a
Hi Nick,

Please see http://msdn2.microsoft.com/en-us/sub.../aa948874.aspx. As
an MSDN Subscriber, you are entitled to receive up to four support
incidents depending on your subscription level. If you have used up all
your free support incidents, you may need to pay first. However, for
product issues, you could ask for refund when contacting with a support
engineer.

Let me know if you other questions.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 14 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.