Exception Error in VB.Net |
Post Reply |
Author | |
jmargel
Groupie Joined: 10 February 2010 Status: Offline Points: 19 |
Post Options
Thanks(0)
Posted: 16 February 2010 at 2:07pm |
In the VB.Net sample if I try to remove a menu item or a button, I get the following error:
Exception of type 'System.Windows.Forms.AxHost+InvalidActiveXStateException' was thrown.
Why is this happening? I had to change to vb.net since I couldn't resolve my problem in access with your control. I purchased the control last week and still have not gotten any response to the access problem I am having.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello, Please show code you tried.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
And steps to reproduce
|
|
jmargel
Groupie Joined: 10 February 2010 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
Take the sample VB.Net that comes with your application. Delete one of the buttons (I deleted the new, open and save) and then run it again. The error should appear. If not, let me know and I can attach my application for you.
|
|
jmargel
Groupie Joined: 10 February 2010 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
It's frustrating because there doesn't seem to be anything that is pinpointing what is causing it. I took the vb.net sample, changed it so that it opens my access database and I am able to add, edit, delete events. I then removed one button (file open) and get that error. So, I brought back my old code and just tried to set the visible to false on the tbrFileOpen button and get the same thing. If I set the visible back to true that does not fix the problem.
I noticed if I close the project and unzip my working copy again into that directory I get the following error:
! C:\calendarvbnet.zip: Cannot create VB.NET\CalendarControl\obj\Debug\AxInterop.XtremeCalendarControl.dll
! The process cannot access the file because it is being used by another process. ! C:\calendarvbnet.zip: Cannot create VB.NET\CalendarControl\obj\Debug\Interop.XtremeCalendarControl.dll ! The process cannot access the file because it is being used by another process. I have to physically close out vs2008 (beta 2) to unzip over it again. Not sure if that has anything to do with this.
Is it because I am using vs2008? I need to get this done so I can move onto other projects. Thanks!
|
|
jmargel
Groupie Joined: 10 February 2010 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
You guys gave me a beta of version 14.0. I tried it and get the same error. |
|
jmargel
Groupie Joined: 10 February 2010 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
Sorry, I am not using VS2008, I am using VS2010 (beta 2). Thanks.
|
|
jmargel
Groupie Joined: 10 February 2010 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
I put 'Try' 'Catch' statements around all the calendarcontrol statements. When running in debug I get the following error:
A first chance exception of type 'System.Windows.Forms.AxHost.InvalidActiveXStateException' occurred in AxInterop.XtremeCalendarControl.dll |
|
jmargel
Groupie Joined: 10 February 2010 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
Actually if you just go into form design mode and then try to run it, it gives you this error. You don't need to edit any other controls for this error to come up.
|
|
jmargel
Groupie Joined: 10 February 2010 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
I found the issue. I had to move the intializecomponent and control to the form_shown event. Otherwise it was firing before the activex control was ready.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |