473,698 Members | 2,588 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AxMSTSCLib.AxMs TscAx - known issue

Embedding in a .net WinApp:
An unhandled exception of type 'InvalidActiveX StateException' occurred in
axmstsclib.dll

Happens on line:

axMsTscAx1.Serv er = "192.168.1. 44"

directions followed:
1. md c:\temp
2. cd c:\temp
3. %<SDK bin directory>%\axi mp.exe %windir%\system 32\mstscax.dll
This will generate MSTSCLib.dll and AxMSTSCLib.dll.
Make sure Interop.MSTSCLi b.dll and AxInterop.MSTSC Lib.dll have been deleted
in the obj and bin\Debug directories.
4. Copy the generated files (without renaming) - MSTSCLib.dll and
AxMSTSCLib.dll into the project's obj directory.
5. In the project's references, add MSTSCLib.dll and AxMSTSCLib.dll from
the obj directories.
6. Now, instead of drag-drop'ing the control from the toolbox, write code
to add the control:
Goto Form.cs code view
Declare: private AxMSTSCLib.AxMs TscAx axMsTscAx1;
In InitializeCompo nent:
this.axMsTscAx1 = new AxMSTSCLib.AxMs TscAx();
((System.Compon entModel.ISuppo rtInitialize)(t his.axMsTscAx1) ).BeginInit();

//
// axMsTscAx1
//
this.axMsTscAx1 .Enabled = true;
this.axMsTscAx1 .Location = new System.Drawing. Point(58, 17);
this.axMsTscAx1 .Name = "axMsTscAx1 "
this.axMsTscAx1 .OcxState =
((System.Window s.Forms.AxHost. State)(resource s.GetObject("ax MsTscAx1.OcxSta t
e")));
this.axMsTscAx1 .Size = new System.Drawing. Size(192, 192);
this.axMsTscAx1 .TabIndex = 1;
.....

this.Controls.A dd(this.axMsTsc Ax1);
((System.Compon entModel.ISuppo rtInitialize)(t his.axMsTscAx1) ).EndInit();


Jul 28 '07 #1
0 9659

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
7231
by: K. Shier | last post by:
when attempting to edit code in a class file, i see the bug "Visual Basic ..NET compiler is unable to recover from the following error: System Error &Hc0000005&(Visual Basic internal compiler error) Save your work and restart Visual Studio .NET." has anyone seen this bug and can you confirm one way or the other whether or not it can corrupt your source files? (by 'corrupt' i mean: do anything to it that will cause it to fail to load and...
1
1417
by: Tat | last post by:
Hello, I have an error handling routine in Win app. If there is an error, the app throws an exception and writes it to the text file all info about the error so the app can send it to tech. If file doesn't exist to begin with, it creates it. What happens is that after it creates file, it can't write to it and blows up with the following: "The process cannot access the file "..." because it is being used by another process" Here is the...
1
1190
by: John Black | last post by:
Hi, I have a code using exception, it works great on Solaris using Forte compiler, but on Linux using gcc3.2, there are some strange problem which ends up "segment fault", I am tracking the problem, but I have a feeling it's because of the exception. Is there any known issue of this? Is it better for me not use exception if I want to port the code to Linux? Thanks.
1
1133
by: Dave Bartlett | last post by:
Hello, When we print a page containing a datagrid, the first page prints fine, but all subsequent pages are printed without table / cell borders i.e. the data is just floating on the page. Is this a known issue? Any ideas?
13
2228
by: Lorne Smith | last post by:
Hi, First, sorry for the crosspost, but it seemed appropriate... :) I've come accross what I consider to be a bug, but I don't know if it's already known or not. (VS .Net 2003 Pro - VB.Net) Whilst playing with inherited forms, I created a simple base form containing a single button. I set this buttons' Click event to be public overridable and put "me.Close" in the code.
3
26317
by: M Noreen | last post by:
I'm unable to build a web project that has a custom .NET control that I downloaded (from: http://blogs.msdn.com/dmitryr/archive/2006/03/26/561200.aspx) I'm running VS 2005, ASP.NET 2.0 on my local development box. I created a new web site with a single test page in it. I also right-clicked the project added a Bin folder. Then I added the DLL that I downloaded to that Bin folder. Then I copy/pasted the sample code included from...
2
1209
by: mrobins | last post by:
Are there any known issues about using two of the same Web User Controls on the same page? I lose state and values in one control when the other control is activated.
4
4272
by: Mythran | last post by:
Reposted, originally posted in microsoft.public.vb.crystal which is not an MSDN managed newsgroup.... POST BELOW --------------------- We develop our applications and reports using Visual Studio 2008 with Crystal Reports Basic for Visual Studio 2008. The same issue that's been around for years, where you export a report to PDF and during the export process, CR shrinks the fonts of text and field objects on the report.
13
3497
by: SAL | last post by:
Hello, I'm trying to include a popup in the ItemTemplate of a gridview row. The ItemTemplate for the field contains a textbox and when the user clicks in the textbox I want a popup panel to show allowing the user to make a selection from the popup window. I have enabled AJAX extensions and have a working sample outside of a gridview. However, when I click in the textbox of a gridview row, all I see is a really small square instead of the...
0
8609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9169
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9030
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6528
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2335
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.