Unhandled exception vb.net 
Author Message
 Unhandled exception vb.net

I am getting the following error when running a simple application usinADO.

An unhandled exception of type 'System.Security.SecurityException' occurred
in WindowsApplication8.exe

Additional information: Request failed.

The line of code generating the error is:

InitializeComponent()

Any help will be appreciated.



Sun, 14 Aug 2005 01:17:34 GMT  
 Unhandled exception vb.net
Hi Richard --

It sounds like you might be getting a SQL exception or are attempting to
access some resources from a partially trusted application or location.  I
would recommend that you wrap the InitializeComponent, which is presumably
in the designer generated code, and look at the "inner exception".

Write this code:

Try
    InitializeComponent()
Catch ex As Exception
    Stop
End Try

Then stop on the line shown and type: ?ex.InnerException in the immediate
window.

Thanks,
Amanda
VB .NET

--
This posting is provided "AS IS" with no warranties, and confers no rights.

Quote:
> I am getting the following error when running a simple application
usinADO.

> An unhandled exception of type 'System.Security.SecurityException'
occurred
> in WindowsApplication8.exe

> Additional information: Request failed.

> The line of code generating the error is:

> InitializeComponent()

> Any help will be appreciated.



Sat, 20 Aug 2005 06:03:23 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Unhandled Exception in CF (VB .NET) - image attached

2. Deploying on XP with .Net Framework sp2 security exception unhandled

3. VB HELP COMPILER - Unhandled Exception error

4. VB OCX generating Unhandled exception

5. Unhandled Exception Err MSAcc97

6. Unhandled exception in Visdata.exe(rpcrt4.dll)

7. VBScript "Unhandled Exception" MSO9.DLL W2k

8. Return from unhandled exceptions after Application.ThreadException event

9. Unhandled exception error

10. Unhandled Exception is thrown

11. Getting unhandled exception error with WNetOpenEnum

12. Unhandled exception in system.windows.forms.dll (in my main form) - argh

 

 
Powered by phpBB® Forum Software