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

Xml Serialization Intermittent Failure

We have an ASP.NET site that performs a lot of xml serialization. The serialization occurs in the lbolibrary dll. Occasionally we get an .out file produced in the Winnt\temp folder that contains the following:

C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.1.4322\csc.ex e" /t:library /utf8output /R:"c:\winnt\assembly\gac\system.xml\1.0.5000.0__b7 7a5c561934e089\system.xml.dll" /R:"c:\winnt\assembly\gac\lbolibrary\1.0.0.0__30b57 061a1ea7c52\lbolibrary.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322\msco rlib.dll" /out:"C:\WINNT\TEMP\yxouf9ik.dll" /debug- /optimize+ /w:1 "C:\WINNT\TEMP\yxouf9ik.0.cs

Can you explain this problem? Our users get a filenotfound exception. This occurs about once or twice every day

Thank

rober
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.
for Microsoft (R) .NET Framework version 1.1.432
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved

c:\WINNT\Temp\yxouf9ik.0.cs(132,9): error CS0647: Error emitting 'System.Security.Permissions.PermissionSetAttribut e' attribute -- 'Access is denied.
c:\WINNT\Temp\yxouf9ik.0.cs(396,9): error CS0647: Error emitting 'System.Security.Permissions.PermissionSetAttribut e' attribute -- 'Access is denied.
ERROR: could not get the task list
Nov 12 '05 #1
10 3919
Robert,

The .out file is part of the normal workings of the XmlSerializer. Take a
look at my recent article on MSDN [0] to see if that helps finding the
source of the problem.

The questions I have though after reading your problem description is: Are
you instantiating XmlSerializer instances over and over or can you keep them
around? If you don't keep them around, which constructor overload are you
instantiating the instances with?

--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor

[0]
http://msdn.microsoft.com/xml/defaul...trblshtxsd.asp

"Robert" <an*******@discussions.microsoft.com> wrote in message
news:72**********************************@microsof t.com...
We have an ASP.NET site that performs a lot of xml serialization. The
serialization occurs in the lbolibrary dll. Occasionally we get an .out
file produced in the Winnt\temp folder that contains the following:-

C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.1.4322\csc.ex e"
/t:library /utf8output
/R:"c:\winnt\assembly\gac\system.xml\1.0.5000.0__b7 7a5c561934e089\system.xml.dll"
/R:"c:\winnt\assembly\gac\lbolibrary\1.0.0.0__30b57 061a1ea7c52\lbolibrary.dll"
/R:"c:\winnt\microsoft.net\framework\v1.1.4322\msco rlib.dll"
/out:"C:\WINNT\TEMP\yxouf9ik.dll" /debug- /optimize+ /w:1
"C:\WINNT\TEMP\yxouf9ik.0.cs"
Can you explain this problem? Our users get a filenotfound exception.
This occurs about once or twice every day.

Thanks

robert
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.

c:\WINNT\Temp\yxouf9ik.0.cs(132,9): error CS0647: Error emitting
'System.Security.Permissions.PermissionSetAttribut e' attribute -- 'Access
is denied. '
c:\WINNT\Temp\yxouf9ik.0.cs(396,9): error CS0647: Error emitting
'System.Security.Permissions.PermissionSetAttribut e' attribute -- 'Access
is denied. '
ERROR: could not get the task list

Nov 12 '05 #2
Robert,

The .out file is part of the normal workings of the XmlSerializer. Take a
look at my recent article on MSDN [0] to see if that helps finding the
source of the problem.

The questions I have though after reading your problem description is: Are
you instantiating XmlSerializer instances over and over or can you keep them
around? If you don't keep them around, which constructor overload are you
instantiating the instances with?

--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor

[0]
http://msdn.microsoft.com/xml/defaul...trblshtxsd.asp

"Robert" <an*******@discussions.microsoft.com> wrote in message
news:72**********************************@microsof t.com...
We have an ASP.NET site that performs a lot of xml serialization. The
serialization occurs in the lbolibrary dll. Occasionally we get an .out
file produced in the Winnt\temp folder that contains the following:-

C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.1.4322\csc.ex e"
/t:library /utf8output
/R:"c:\winnt\assembly\gac\system.xml\1.0.5000.0__b7 7a5c561934e089\system.xml.dll"
/R:"c:\winnt\assembly\gac\lbolibrary\1.0.0.0__30b57 061a1ea7c52\lbolibrary.dll"
/R:"c:\winnt\microsoft.net\framework\v1.1.4322\msco rlib.dll"
/out:"C:\WINNT\TEMP\yxouf9ik.dll" /debug- /optimize+ /w:1
"C:\WINNT\TEMP\yxouf9ik.0.cs"
Can you explain this problem? Our users get a filenotfound exception.
This occurs about once or twice every day.

Thanks

robert
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.

c:\WINNT\Temp\yxouf9ik.0.cs(132,9): error CS0647: Error emitting
'System.Security.Permissions.PermissionSetAttribut e' attribute -- 'Access
is denied. '
c:\WINNT\Temp\yxouf9ik.0.cs(396,9): error CS0647: Error emitting
'System.Security.Permissions.PermissionSetAttribut e' attribute -- 'Access
is denied. '
ERROR: could not get the task list

Nov 12 '05 #3
Hi Christop

I realize that the generation of the .out file is normal
My understanding is that this disappears once the assembly is compiled
However I have not seen following error in an .out file before:

Microsoft (R) Visual C# .NET Compiler version 7.10.3052.
for Microsoft (R) .NET Framework version 1.1.432
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved

c:\WINNT\Temp\yxouf9ik.0.cs(132,9): error CS0647: Error emitting 'System.Security.Permissions.PermissionSetAttribut e' attribute -- 'Access is denied.
c:\WINNT\Temp\yxouf9ik.0.cs(396,9): error CS0647: Error emitting 'System.Security.Permissions.PermissionSetAttribut e' attribute -- 'Access is denied.
ERROR: could not get the task lis

I am using the XmlSerializer(Type) constructor

Do you have any idea what could cause this

Thanks
Nov 12 '05 #4
Hi Christop

I realize that the generation of the .out file is normal
My understanding is that this disappears once the assembly is compiled
However I have not seen following error in an .out file before:

Microsoft (R) Visual C# .NET Compiler version 7.10.3052.
for Microsoft (R) .NET Framework version 1.1.432
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved

c:\WINNT\Temp\yxouf9ik.0.cs(132,9): error CS0647: Error emitting 'System.Security.Permissions.PermissionSetAttribut e' attribute -- 'Access is denied.
c:\WINNT\Temp\yxouf9ik.0.cs(396,9): error CS0647: Error emitting 'System.Security.Permissions.PermissionSetAttribut e' attribute -- 'Access is denied.
ERROR: could not get the task lis

I am using the XmlSerializer(Type) constructor

Do you have any idea what could cause this

Thanks
Nov 12 '05 #5
Robert,

That error is somewhat confusing coming out of the compilation step. Have
you looked at the file that's causing the error?

Does the Type your serializing carry any special security attributes?

--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor
"Robert" <an*******@discussions.microsoft.com> wrote in message
news:3C**********************************@microsof t.com...
Hi Christoph

I realize that the generation of the .out file is normal.
My understanding is that this disappears once the assembly is compiled.
However I have not seen following error in an .out file before:-

Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.

c:\WINNT\Temp\yxouf9ik.0.cs(132,9): error CS0647: Error emitting
'System.Security.Permissions.PermissionSetAttribut e' attribute -- 'Access
is denied. '
c:\WINNT\Temp\yxouf9ik.0.cs(396,9): error CS0647: Error emitting
'System.Security.Permissions.PermissionSetAttribut e' attribute -- 'Access
is denied. '
ERROR: could not get the task list

I am using the XmlSerializer(Type) constructor.

Do you have any idea what could cause this?

Thanks

Nov 12 '05 #6
Robert,

That error is somewhat confusing coming out of the compilation step. Have
you looked at the file that's causing the error?

Does the Type your serializing carry any special security attributes?

--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor
"Robert" <an*******@discussions.microsoft.com> wrote in message
news:3C**********************************@microsof t.com...
Hi Christoph

I realize that the generation of the .out file is normal.
My understanding is that this disappears once the assembly is compiled.
However I have not seen following error in an .out file before:-

Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.

c:\WINNT\Temp\yxouf9ik.0.cs(132,9): error CS0647: Error emitting
'System.Security.Permissions.PermissionSetAttribut e' attribute -- 'Access
is denied. '
c:\WINNT\Temp\yxouf9ik.0.cs(396,9): error CS0647: Error emitting
'System.Security.Permissions.PermissionSetAttribut e' attribute -- 'Access
is denied. '
ERROR: could not get the task list

I am using the XmlSerializer(Type) constructor.

Do you have any idea what could cause this?

Thanks

Nov 12 '05 #7
Christop

This error is intermittent, so the file is being compiled sometimes..
There are no special attributes on it

I am struggling trying to diagnose this one

Thanks for your help.
Nov 12 '05 #8
Christop

This error is intermittent, so the file is being compiled sometimes..
There are no special attributes on it

I am struggling trying to diagnose this one

Thanks for your help.
Nov 12 '05 #9
Robert,

what are you doing to capture the error? Are you running your application
with the diagnostics swtich set so all files created by the XmlSerializer
stay in the temp dir so you can take a look at the line that's causing the
problem?

Are you always serializing the same types or how many different types are
you trying to serialize?

--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor
"Robert" <an*******@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com...
Christoph

This error is intermittent, so the file is being compiled sometimes...
There are no special attributes on it.

I am struggling trying to diagnose this one!

Thanks for your help.

Nov 12 '05 #10
Robert,

what are you doing to capture the error? Are you running your application
with the diagnostics swtich set so all files created by the XmlSerializer
stay in the temp dir so you can take a look at the line that's causing the
problem?

Are you always serializing the same types or how many different types are
you trying to serialize?

--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor
"Robert" <an*******@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com...
Christoph

This error is intermittent, so the file is being compiled sometimes...
There are no special attributes on it.

I am struggling trying to diagnose this one!

Thanks for your help.

Nov 12 '05 #11

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

Similar topics

0
by: Philip | last post by:
Hi, I have a problem with a win 2003 server Standard edition. Sometimes when I'm working in my web application the session hangs (but not the ASP-application). In the application log I find the...
6
by: Adam H. Peterson | last post by:
I have an application that uses C++ file streams for storing the state of complex objects to be later read in, ideally reconstructing the state of the object as when it was serialized. One issue...
0
by: Robert | last post by:
We have an ASP.NET site that performs a lot of xml serialization. The serialization occurs in the lbolibrary dll. Occasionally we get an .out file produced in the Winnt\temp folder that contains...
0
by: deevoy | last post by:
Hi- I'm developing a asp.net web application and everything has proven fine on the dev and acceptance environment. We've moved the code up to our windows server 2003 prod environment and get the...
4
by: akhare1 | last post by:
OK, before I start, let me clarify a few things here. This is not the run of the mill failure to read a registry key while trying to write to the Event Log. Here's our setup: a) IIS 6.0...
4
by: caa | last post by:
We are intermittently getting the infamous Configuration error: "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be...
3
by: Lee Chapman | last post by:
Hi, I have a problem where my ASP.NET application occasionally generates a MissingFieldException exception. This unexpectedly happened on my development box, and so I was able to extract some...
1
by: deevoy | last post by:
Hi- I'm developing a asp.net web application and everything has proven fine on the dev and acceptance environment. We've moved the code up to our windows server 2003 prod environment and get...
1
by: guy | last post by:
when debugging a winforms vb.net 2005 app sometimes if i change the code it buils ok but when running fails with a failure to copy the exe. on checking with task manager there si a process still...
0
by: C.W. | last post by:
Hi I have run into a really bizzare problem in that asp.net stops working intermittently - and I can only get it to restart after restarting my computer. My environment is Windows XP Pro SP2,...
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
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.