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

How to report an error to microsoft?

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
"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

P: n/a
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

P: n/a
"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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.