Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista security

Vista - unhandled IOException

Reply
 
Old 06-23-2007   #1 (permalink)
Hegde G G


 
 

unhandled IOException

Hi,
I have a small test appllication that connects to network share and
get the file and folders and display it in a treeview.

This application works fine on Windows XP, when I run it on Vista I get
the error This application has stopped working.

If run from VS2005 in debug mode it would give "IOException was
unhandled" "An Unexpected Network error occured" which I am not able to
figure out which location it is throwing.

New to VS2005 and .Net could anybody help me out.

thanks in advance,
gg

My System SpecsSystem Spec
Old 06-23-2007   #2 (permalink)
Chris


 
 

Re: unhandled IOException

I guess your using System..IO.DirectoryInfo. I would first interrogate the
exception thrown to my catch statement and I would also enable as much
logging as possible and see if the windows event log has anything of value
to say.
I have not had any problem reading folder contends in Vista so it may have
something to do with the user account VS is running under..If you are
binding to the treeveiw maybe you could try it first just storing to a
FileInfo[] collection to see if the problem occurs when binding.

Good luck,

Chris




"Hegde G G" <hegdegg@novell.com> wrote in message
newsan.2007.06.23.11.57.47.785839@novell.com...
> Hi,
> I have a small test appllication that connects to network share and
> get the file and folders and display it in a treeview.
>
> This application works fine on Windows XP, when I run it on Vista I get
> the error This application has stopped working.
>
> If run from VS2005 in debug mode it would give "IOException was
> unhandled" "An Unexpected Network error occured" which I am not able to
> figure out which location it is throwing.
>
> New to VS2005 and .Net could anybody help me out.
>
> thanks in advance,
> gg



My System SpecsSystem Spec
Old 06-23-2007   #3 (permalink)
Mr. Arnold


 
 

Re: unhandled IOException


"Hegde G G" <hegdegg@novell.com> wrote in message
newsan.2007.06.23.11.57.47.785839@novell.com...
> Hi,
> I have a small test appllication that connects to network share and
> get the file and folders and display it in a treeview.
>
> This application works fine on Windows XP, when I run it on Vista I get
> the error This application has stopped working.
>
> If run from VS2005 in debug mode it would give "IOException was
> unhandled" "An Unexpected Network error occured" which I am not able to
> figure out which location it is throwing.
>
> New to VS2005 and .Net could anybody help me out.


You should post to a MS.Public.dotnet NG based on the language and type of
application you're using WEB or Windows.

I'll assume you are using a try/catch around the code, and you have put a
break point on the Catch and looked at the properties of the Exception for
more information.

Most likely, you have a permissions issue on Vista that you don't have with
XP running this program.




My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Solved Unhandled Exception has occured in your application General Discussion
IOException - How to gain file name? .NET General
Re: Unhandled exceptions in ASP.NET .NET General
Unhandled PowerPC 700 error Virtual PC


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46