473,405 Members | 2,415 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,405 software developers and data experts.

How to report an error to microsoft?

On "some client's computer" the folowing C# code:
==
XmlDocument doc = new XmlDocument();
....
doc.Save(Application.LocalUserAppDataPath + "config.config");
==

throw the following error:
==
Exception : System.IO.IOException
Message : Unknown error "-1".
Stack :
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean
bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share)
at System.Xml.XmlDocument.Save(String filename)
==

The disk is not full, look at the directory and error, obviously everything
should be fine.

I would like to complain to Microsoft.

However I could foresee the answer from support:
"There is not enough information for use to do anything about it, case
closed."

Now I don't know what to do!
I played with interop and wrote some code to create a minidump
( inspired by this blog entry
http://blogs.msdn.com/greggm/archive...14/214725.aspx )
but when I try to open some MiniDump I generated for fun from C# (i.e. no
real exception,just a button click), all I get is
==
*ntdll.dll!00000000773d082a()
[Frames below may be incorrect and/or missing, no symbols loaded for
*ntdll.dll]
*kernel32.dll!000000007727ed73()
==

not even my C# calls are present... (I generated with all dump information,
but without exception info, obviously)

Any tip on how to generate meaningfull information (from C#) for Microsoft
Support to be able to help me on this issue?

May 9 '07 #1
6 1938
"Lloyd Dupont" <net.galador@ldwrote in message
news:Oy**************@TK2MSFTNGP02.phx.gbl...
On "some client's computer" the folowing C# code:
==
XmlDocument doc = new XmlDocument();
...
doc.Save(Application.LocalUserAppDataPath + "config.config");
==

throw the following error:
==
Exception : System.IO.IOException
Message : Unknown error "-1".
Stack :
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32
bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String
msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share)
at System.Xml.XmlDocument.Save(String filename)
==

The disk is not full, look at the directory and error, obviously
everything should be fine.

I would like to complain to Microsoft.

However I could foresee the answer from support:
"There is not enough information for use to do anything about it, case
closed."

Now I don't know what to do!
I played with interop and wrote some code to create a minidump
( inspired by this blog entry
http://blogs.msdn.com/greggm/archive...14/214725.aspx )
but when I try to open some MiniDump I generated for fun from C# (i.e. no
real exception,just a button click), all I get is
==
>*ntdll.dll!00000000773d082a()
[Frames below may be incorrect and/or missing, no symbols loaded for
*ntdll.dll]
*kernel32.dll!000000007727ed73()
==

not even my C# calls are present... (I generated with all dump
information, but without exception info, obviously)

Any tip on how to generate meaningfull information (from C#) for Microsoft
Support to be able to help me on this issue?
The error doesn't mean that the disk is full, "Unknown error "-1"" is a
generic error message, indicating that the error is not handled by the Init
function's catch handler, the error code -1, returned from the Win32 API
CreateFile(), means "unknown error".
I know this error message is of little help, anyway the problem is that the
system cannot create the file as specified by the path
Application.LocalUserAppDataPath + "config.config", mostly due to an
incorrect sequence of IO operations on the file or the path as result of a
virus scanner activity.
Willy.
May 9 '07 #2
JR
I think you are missing the backslash, and suggest you use Path.Combine.

JR
"Willy Denoyette [MVP]" <wi*************@telenet.be???
??????:CA**********************************@micros oft.com...
"Lloyd Dupont" <net.galador@ldwrote in message
news:Oy**************@TK2MSFTNGP02.phx.gbl...
>On "some client's computer" the folowing C# code:
==
XmlDocument doc = new XmlDocument();
...
doc.Save(Application.LocalUserAppDataPath + "config.config");
==

throw the following error:
==
Exception : System.IO.IOException
Message : Unknown error "-1".
Stack :
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32
bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String
msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share)
at System.Xml.XmlDocument.Save(String filename)
==

The disk is not full, look at the directory and error, obviously
everything should be fine.

I would like to complain to Microsoft.

However I could foresee the answer from support:
"There is not enough information for use to do anything about it, case
closed."

Now I don't know what to do!
I played with interop and wrote some code to create a minidump
( inspired by this blog entry
http://blogs.msdn.com/greggm/archive...14/214725.aspx )
but when I try to open some MiniDump I generated for fun from C# (i.e. no
real exception,just a button click), all I get is
==
>>*ntdll.dll!00000000773d082a()
[Frames below may be incorrect and/or missing, no symbols loaded for
*ntdll.dll]
*kernel32.dll!000000007727ed73()
==

not even my C# calls are present... (I generated with all dump
information, but without exception info, obviously)

Any tip on how to generate meaningfull information (from C#) for
Microsoft Support to be able to help me on this issue?

The error doesn't mean that the disk is full, "Unknown error "-1"" is a
generic error message, indicating that the error is not handled by the
Init function's catch handler, the error code -1, returned from the Win32
API CreateFile(), means "unknown error".
I know this error message is of little help, anyway the problem is that
the system cannot create the file as specified by the path
Application.LocalUserAppDataPath + "config.config", mostly due to an
incorrect sequence of IO operations on the file or the path as result of a
virus scanner activity.
Willy.


May 9 '07 #3
"JR" <No****@qsm.co.ilwrote in message
news:Oq**************@TK2MSFTNGP04.phx.gbl...
>I think you are missing the backslash, and suggest you use Path.Combine.

JR

You are right, the path is messed up, however, the missing backslash is not
the cause of the Exception, at least not on my system.
Don't know what the OP is using as OS, but it's sure worth a try after
correcting this using Path.Combine.
Willy.

May 9 '07 #4
I was using Path.Combine in the real code anyway!

--
Regards,
Lloyd Dupont
NovaMind Software
Mind Mapping at its best
www.nova-mind.com
"Willy Denoyette [MVP]" <wi*************@telenet.bewrote in message
news:CD**********************************@microsof t.com...
"JR" <No****@qsm.co.ilwrote in message
news:Oq**************@TK2MSFTNGP04.phx.gbl...
>>I think you are missing the backslash, and suggest you use Path.Combine.

JR


You are right, the path is messed up, however, the missing backslash is
not the cause of the Exception, at least not on my system.
Don't know what the OP is using as OS, but it's sure worth a try after
correcting this using Path.Combine.
Willy.
May 9 '07 #5
JR
What else is different in the real code?

JR

"Lloyd Dupont" <net.galador@ld???
??????:uj****************@TK2MSFTNGP03.phx.gbl...
>I was using Path.Combine in the real code anyway!

--
Regards,
Lloyd Dupont
NovaMind Software
Mind Mapping at its best
www.nova-mind.com
"Willy Denoyette [MVP]" <wi*************@telenet.bewrote in message
news:CD**********************************@microsof t.com...
>"JR" <No****@qsm.co.ilwrote in message
news:Oq**************@TK2MSFTNGP04.phx.gbl...
>>>I think you are missing the backslash, and suggest you use Path.Combine.

JR


You are right, the path is messed up, however, the missing backslash is
not the cause of the Exception, at least not on my system.
Don't know what the OP is using as OS, but it's sure worth a try after
correcting this using Path.Combine.
Willy.

May 10 '07 #6
nothing much.
but every one focuse about the missing "\\" whereas wether or nor I forgot
it, it changes nothing to the error..... :-(

--
Regards,
Lloyd Dupont
NovaMind Software
Mind Mapping at its best
www.nova-mind.com
"JR" <No****@qsm.co.ilwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
What else is different in the real code?

JR

"Lloyd Dupont" <net.galador@ld???
??????:uj****************@TK2MSFTNGP03.phx.gbl...
>>I was using Path.Combine in the real code anyway!

--
Regards,
Lloyd Dupont
NovaMind Software
Mind Mapping at its best
www.nova-mind.com
"Willy Denoyette [MVP]" <wi*************@telenet.bewrote in message
news:CD**********************************@microso ft.com...
>>"JR" <No****@qsm.co.ilwrote in message
news:Oq**************@TK2MSFTNGP04.phx.gbl...
I think you are missing the backslash, and suggest you use Path.Combine.

JR

You are right, the path is messed up, however, the missing backslash is
not the cause of the Exception, at least not on my system.
Don't know what the OP is using as OS, but it's sure worth a try after
correcting this using Path.Combine.
Willy.

May 10 '07 #7

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

Similar topics

3
by: Nicola | last post by:
Hi Everyone, I am new to programming and would like to know how to open an access Report from within vb 6. I am trying to write a program to organise cross stitch threads. I have found out how...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
2
by: Galina | last post by:
Hello All of a sudden I started getting error 13, type mismatch in a command, which was running happily for years. Here is a code: Option Compare Database Option Explicit Dim CmdClose1_Clicked...
0
by: smkkaleem | last post by:
I am stuck with the error I have posted above in the question title I am developing ASP.NET 2.0 web site and I have added a new rdlc file to my project by using the following process: -Right...
5
by: David L. | last post by:
I'm running into a frustrating problem. ASP.NET 2.0 web application, against SQL'05, I'm trying to run a report against a 'table provider' (query) that excutes well within SQL MGT studio, and...
3
by: lodatokab | last post by:
I'm have problem to run crystal report (VS 2005) on my computer with Windows 2000 Server. I run the solution in my dev envroiment (Windows XP) and no problems. When I try to run in on IIS 5.0 on...
3
by: steve | last post by:
Hi All I have a VB.net 2005 app which uses MS Report Viewer to create reports Occassionally I get the following error when changing to a different report User code running on thread 196 has...
1
by: =?Utf-8?B?Y2hhaXJtYW4=?= | last post by:
I am trying to set up a Report Server to publish reports that I have created in Visual Studio 2005. I have been able to get it up and running and I am able to access reports via the web and set up...
1
by: bh | last post by:
I have a vb.net 2003 front-end, which is a crystal report (8.5) viewer/generator. When trying to export the crystal report to excel spreadsheets, today, which has always been successful, up until...
0
by: silverrock7 | last post by:
Hello Friends i m stuck up to a place wherein i want to print a report which is displaying on a reportviewer. I actually want to send the report to printer directly without viewing it. i am...
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:
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...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.