473,383 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Randomly occuring "Compilation Error"

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
5 1493
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bob | last post by:
Are they different names for the same concept ?
2
by: VB Programmer | last post by:
I created a ASP.NET app locally and it works great. Uploaded it to my server and I get this error when trying to view a page. Any ideas? Server Error in '/earlyalert3' Application....
2
by: fabrice | last post by:
Hello I'm getting an error during a .vb file compilation. My command is : vbc /t:library /r:system.web.dll /r:system.dll /r:mscorlib.dll myFile.vb The error is :
3
by: Vidit | last post by:
Hi I keep getting the error "Error Creating Windows Handle" in my application and different places in the code. This occurs only to certain users. Its very random and cannot be reproduced in...
1
by: timbobd | last post by:
I have encountered a situation that I don't understand. When I call a sub of Friend scope (in an object with Friend scope), I am getting an error "Public member 'subname' not found in type...
4
by: Toufik | last post by:
Hi, I've the folowing error "Concurency violation, The update command affected 0 records", when I execute the save command "DA.Update(DS, "tblName")" DA is a dataadapter linked to a...
0
by: dashprasannajit | last post by:
package djvusearching; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import org.apache.lucene.analysis.cjk.CJKAnalyzer; //import...
1
by: amindi | last post by:
Hi, I wrote a VB6 program to read some data records from a Ms Access database and to write them into a SQL server database.(I use Ms Access 2000 and SQL server 2000).After reading each record in...
11
by: markryde | last post by:
Hello, Followed here is a simplified code example of something which I try to implement; in essence , I want to assign a value to a return value of a method is C. I know, of course, that in this...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.