Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Exception Error in VB.Net
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Exception Error in VB.Net

 Post Reply Post Reply
Author
Message
jmargel View Drop Down
Groupie
Groupie


Joined: 10 February 2010
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote jmargel Quote  Post ReplyReply Direct Link To This Post Topic: Exception Error in VB.Net
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2010 at 4:28pm

Hello,

Please show code you tried.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2010 at 4:34pm
And steps to reproduce
Back to Top
jmargel View Drop Down
Groupie
Groupie


Joined: 10 February 2010
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote jmargel Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2010 at 2:04pm
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.
Back to Top
jmargel View Drop Down
Groupie
Groupie


Joined: 10 February 2010
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote jmargel Quote  Post ReplyReply Direct Link To This Post Posted: 18 February 2010 at 7:42am
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!
Back to Top
jmargel View Drop Down
Groupie
Groupie


Joined: 10 February 2010
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote jmargel Quote  Post ReplyReply Direct Link To This Post Posted: 18 February 2010 at 7:43am

You guys gave me a beta of version 14.0.  I tried it and get the same error.

Back to Top
jmargel View Drop Down
Groupie
Groupie


Joined: 10 February 2010
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote jmargel Quote  Post ReplyReply Direct Link To This Post Posted: 18 February 2010 at 7:45am
Sorry, I am not using VS2008, I am using VS2010 (beta 2).  Thanks.
Back to Top
jmargel View Drop Down
Groupie
Groupie


Joined: 10 February 2010
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote jmargel Quote  Post ReplyReply Direct Link To This Post Posted: 18 February 2010 at 8:13am
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

Back to Top
jmargel View Drop Down
Groupie
Groupie


Joined: 10 February 2010
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote jmargel Quote  Post ReplyReply Direct Link To This Post Posted: 19 February 2010 at 11:41am
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.
Back to Top
jmargel View Drop Down
Groupie
Groupie


Joined: 10 February 2010
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote jmargel Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2010 at 11:51am
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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.