473,569 Members | 2,664 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 9641

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

Similar topics

5
7220
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...
1
1413
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...
1
1188
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...
1
1128
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
2214
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...
3
26312
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...
2
1206
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
4268
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...
13
3483
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,...
0
7698
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8122
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...
1
7673
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...
0
7970
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5513
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...
0
3653
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...
1
1213
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
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...

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.