473,387 Members | 1,291 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,387 software developers and data experts.

csc.exe fails suddenly after running several weeks

Hi all,

I'm have a console app which is called by a thirth party system over
20000 times a day. This console app links to a webservice on another
server to capture information. This works fine for several weeks, but
after some time I receive following error:

System.InvalidOperationException: Unable to generate a temporary class
(result=1).
error CS0016: Could not write to output file 'h:\temp\uwzshxmr.dll' --
'Could not execute CVTRES.EXE.'
at System.Xml.Serialization.Compiler.Compile(Assembly parent, String
ns, CompilerParameters parameters, Evidence evidence)
at
System.Xml.Serialization.TempAssembly.GenerateAsse mbly(XmlMapping[]
xmlMappings, Type[] types, String defaultNamespace, Evidence evidence,
CompilerParameters parameters, Assembly assembly, Hashtable assemblies)
at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[]
xmlMappings, Type[] types, String defaultNamespace, String location,
Evidence evidence)
at System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[]
mappings, Type type)
at System.Web.Services.Protocols.SoapClientType..ctor (Type type)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol..ctor()

I checked several things and nothing changed on the server setup and
there is no disk space issue. When I reboot the machine, it works again
for several weeks/months, but then again the same problem. The only fix
I currently have is rebooting the server when the error occurs. When I
have an error on the server that calls the webservice, all other
applications from other servers calling the same webservice, continue
to work, so the problem seems not related to the webservice as such.

Is this a problem with to much open files/tempfiles/open handles or
something related ?
Anyone any idea how I can pro-active solve this issue ?

Thx in advance,

Kristof

Nov 13 '06 #1
1 3014
This is to do with the way the XML Serialiser works. It generates a class on
the fly to serialize your object and compiles it. In .NET 2 you can select as
a project property to build the XML serialization objects at compile time
(Properties windows, build tab, Generate Serialization Assembly checkbox). If
its .NET 1.0/1.1 then there is a setting you can make on the machine to cache
the xml serialzation stuff to stop it having to keep regenerating. I cant
find a link to it now but its on the web somewhere.

Try that in .NET 2 and see if it helps.

Ciaran O'Donnell

More Info about serializer :
Troubleshooting Common Problems with the XmlSerializer
(http://msdn2.microsoft.com/en-us/library/aa302290.aspx)

"kr*************@dhl.com" wrote:
Hi all,

I'm have a console app which is called by a thirth party system over
20000 times a day. This console app links to a webservice on another
server to capture information. This works fine for several weeks, but
after some time I receive following error:

System.InvalidOperationException: Unable to generate a temporary class
(result=1).
error CS0016: Could not write to output file 'h:\temp\uwzshxmr.dll' --
'Could not execute CVTRES.EXE.'
at System.Xml.Serialization.Compiler.Compile(Assembly parent, String
ns, CompilerParameters parameters, Evidence evidence)
at
System.Xml.Serialization.TempAssembly.GenerateAsse mbly(XmlMapping[]
xmlMappings, Type[] types, String defaultNamespace, Evidence evidence,
CompilerParameters parameters, Assembly assembly, Hashtable assemblies)
at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[]
xmlMappings, Type[] types, String defaultNamespace, String location,
Evidence evidence)
at System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[]
mappings, Type type)
at System.Web.Services.Protocols.SoapClientType..ctor (Type type)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol..ctor()

I checked several things and nothing changed on the server setup and
there is no disk space issue. When I reboot the machine, it works again
for several weeks/months, but then again the same problem. The only fix
I currently have is rebooting the server when the error occurs. When I
have an error on the server that calls the webservice, all other
applications from other servers calling the same webservice, continue
to work, so the problem seems not related to the webservice as such.

Is this a problem with to much open files/tempfiles/open handles or
something related ?
Anyone any idea how I can pro-active solve this issue ?

Thx in advance,

Kristof

Nov 13 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Steve Holden | last post by:
For quite a while now I've been filling part of the navigation-bar on my home page with Python-related news extracted from O'Reilly's meerkat service. I've been experiencing intermittent...
7
by: Randell D. | last post by:
Whats wrong with my sample script below? All I want to do is confirm that my form data is in my environment (basically, I'm writing a script that will check that some form fields have a value, and...
9
by: Neurocon | last post by:
Hey everyone -- I've been having this problem for a couple weeks and was hoping maybe someone can help out a little bit. Synopsis: This SQL agent job contains code to perform a full...
0
by: Laura | last post by:
Hi: We have installed the runtime db2 client in a Solaris machine and executing shell script processes that connects to a DB2 database in a remote machine. Everithing was working fine for...
2
by: Shaun | last post by:
Hi Odd one here, I have a local version of SQL running on my laptop for demos, been working fine for years yet yesterday I suddenly get an error "Invalid Conection Parameter" running a sproc...
2
by: Anbu | last post by:
Sorry for cross posting the query. But I need a resolution as early as possible. I have developed an application to authenticate the user based on LDAP Search and authentication. The Windows...
4
by: =?Utf-8?B?SmltIE9ybXNiZWU=?= | last post by:
Hopefully my solution will help others. I have a MacBook Pro on which I am running WindowsXP Home Edition. It is running totally separate from the Mac OS. I have to reboot to switch between OS's....
0
by: ToadLurker | last post by:
Usually, to debug my .NET dll, I typically just run my web application until the DLL in question is invoked - at which point I can just attach to it via Visual Studio .Net, and debug it. Two weeks...
8
by: Joe Withawk | last post by:
I have a solution consisting of a c# project as win application and a c++ project as classlibrary. Both are .net 2.0 The classlibrary handles some loading of quicktime movies, but that should not...
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: 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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.