Replacement For The CreateObject("DLLName.ClassName") Method To Be Used In A Terminal Server Environment?

Jun 28, 2010

I am in the process of converting vb6 assemblies to VB.NET.I am trying to overcome a particular design challenge.I have a vb6 EXE sitting on a Terminal Server which is shared between multiple customers.Each customer has customizations in the form of overrides to this EXE in custom business logic contained within DLL's.We know what DLL to look at based on a setting in the database.We use the CreateObject ("CustomerDLLName.CustomerClass") method to create late bound objects.If the object is "not nothing", we check for override code.For example, if my base EXE has a sub called PrintForm, based on the logged in user I may use the base sub within the executable, or I may need to use the sub in a custom DLL:

Dim oCustom as Object<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

Dim strSetting as String<o:p></o:p>
strSetting = "Customer1DLL.Class1"[code].....

I am struggling to come up with a comparable if not better way to do the same thing in .NET. I want to continue sharing the base EXE so I can't just have separate EXE's and DLL's in separate folders.They all need to live in the same c:/Program Files/[Application Name] root directory so I can take advantage of the Terminal Server's shared application memory.

View 2 Replies


ADVERTISEMENT

Variable Replacement In WMI Method?

May 5, 2011

I am trying to execute a command that works with hard coded variables, but when I try and replace the name test below with selectedname, I cannot get the syntax for escaping the command. The basic idea is I am using WMI to query the app pool names and then selecting one and storing in the slectedname variable, which works when I test with a msgbox(selectedname) line. It also shows up when I am stepping through, but does not get passed to the bottom command. The function where I am trying to execute the command is

Private Sub Stpbtn_Click(sender As Object, e As System.EventArgs) Handles Stpbtn.Click
Dim selectedname As String

[Code].....

View 1 Replies

Com Object Failing On Server.createobject?

Jun 12, 2006

I am having problems calling a Com object that I created under Visual Studio 2005 with Standard ASP I registered it using regasm.exe.Below is my code (VB) . have tried creating the object two ways.What am I doing wrong ?

Server.CreateObject("TestCom2.TestFunction") and
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed

[code].....

View 10 Replies

Application Runs On Citrix Server But Not On Virtual Terminal Server

Sep 3, 2009

An application loaded on a citrix server executes with no problem. When we try to run the same program files on a virtual server, we get silent errors and we do not even see the application window appear. The program runs for a moment in task manager, but then closes down. BTW other .net apps run on the virtual server. Here is the error we see in the event viewer application logs[code]...

View 2 Replies

Application Running On Terminal Server?

Apr 29, 2009

I have a VB 2005 application running on Terminal Server and I need the IP address, clientname and username from the client system.

View 1 Replies

Terminal Server Users Logged On?

Aug 6, 2009

is there a way for a program to get a list of users that are logged into the terminal server that it is running on???

View 3 Replies

VS 2008 GlobalKeyboardHook - Application That Will Run On A Terminal Similar To A Micros Terminal

Feb 19, 2010

I have an application that will run on a terminal similar to a micros terminal. The terminal is already running another vendors app that captures the users logon ID from a swipecard. I need to capture the same logon ID at the same time. This is no problem, I just hook it.

The problem is I have another app which also captures swipes. In development I am running both apps for testing. It appears that when I unhook one app it unhooks both. Rehook and all is fine. As my two apps will never be on the same terminal this is not a problem. What I am concerned about is the vendors app unhooking mine or the other way around.

I would of thought that each app would have it's own ID and that each hook would be independent. I have considered finding a way to determine if a global hook is present and then use some logic to decide on unhooking or not but can't find anything.

View 1 Replies

VS 2010 - Getting Information From Terminal Server Client?

Nov 8, 2011

I'm developing a Windows application that runs on a terminal server and users connect to it via remote desktop. Standard stuff. However, I would like to know something about the user and I was wondering if there's a way to get some information about the client that the user connects from (his local machine).

View 1 Replies

Read Com Port From Datacard Located In Server From Terminal?

Jan 9, 2012

I am developing a program that send sms to cellphone using a datacard.I can read the com port from the server if i run the program from the server, but i run the program from the terminal y read the com port of the terminal, but i need to read the port from the server for use datacard. What can i do? My code for read com port.

Function checkPort() As String

Dim intPort, X As Long

Dim strAbierto As String[code].........

View 3 Replies

Application Locks Up When Running In Terminal Server Session?

Sep 23, 2010

I have a Windows Forms application created in VS2005 which runs fine on the user desktop but when running in Terminal Server session it frequently locks up when the remote desktop window is minimised and the user is working locally.There is plenty of RAM on the server so this is not an issue, the only solution so far has been to force the user session to log off on the Terminal Server and then reconnect.

View 14 Replies

ComboBox Dropdown Server 2003 Terminal Services?

Dec 22, 2011

I have built an application in VB 2010 on my Windows 7 Pro desktop. I have a particular combo box with a datasource that is dynamically populated, depending on certain values entered by the user; it may or may not have any records in the datasource. When I run/install the application on my desktop, the combo box acts normal, if I click the dropdown button and the datasource contains no records, the combobox will show a single blank beneath the combobox (to indicate no records). When I perform the same action on server 2003, the combobox DOES NOT show a blank row, it does nothing! It act's like it's broken.

View 3 Replies

Display The Data On Terminal B If Inserted From Terminal A?

Dec 8, 2010

my project work on server if inserted data from terminal A i need display the data on terminal B

View 1 Replies

Creating New DLL's - "the Call To The Server.CreateObject Falied While Cheking Permissions. Access Is Denied To This Object"

Jun 21, 2010

I am getting this error saying "the call to the server.CreateObject falied while cheking permissions. Access is denied to this object".I get this error every time I create a new DLL after compiling my VB6 code and drop it in the component services.i am using these DLL's for the web application i am working on. Is this a DLL registration issue, or is this because the DLL is not being generated correctly. What are your thoughts on this? i have attached the error message for reference

View 1 Replies

Use A Database In A Distributing Environment With IP Address To The Server Pc?

Jun 8, 2011

On my current project, posted here [URL]

I already made a project using Visual Studio 2010 (Visual Basic) and my database connected to SQL Server 2008 R2, also set up a PC 1 act as a server and the other is client i set this up for beta test.

I'm having issue about putting an IP Address to the server pc, actually if the IP setting of the server pc "Obtain IP Address automatically", i can open my application in the client pc, but once i put IP Address on the server PC i cannot open/run my application to the client pc, i cant figure it out how can i fixed this issue.

View 5 Replies

VB Script - Terminal Server - Script To Close All Open Connections?

Jun 16, 2010

Can anyone provide a script to close all open sessions in a Terminal Server?

Aldo.Everything is possible, impossible just takes longer

View 2 Replies

Find An Element By ClassName?

Sep 21, 2010

How would I find a part of a document by class name?Like heres the code of what I cam trying to find[code]...

View 1 Replies

Make A Connection To Dbf Free Table In LAN Environment Or Remotely To Server (without Mapping Network Drive)?

Sep 8, 2011

I have this code:

[Code]...

View 12 Replies

Where The ListBox Displays The Custom Classname Which Is Then Replaced With The Appropriate Display Data.

Apr 21, 2009

I've created a class that inherits from CollectionBase that populates with a custom object type. I populate the custom collection and set it as the datasource for a ListBox control and set the appropriate DisplayMember value to one of the properties of my custom object.

While the binding behaviour is working great, I'm trying to polish up the UI because when the list of objects is somewhat long, there is a momentary flash where the ListBox displays the custom classname which is then replaced with the appropriate display data. I'd like to keep that initial flash of the ToString() method from appearing. I tried SuspendLayout() and ResumeLayout() on the control and the form, but neither keeps the flash from occuring.

What am I missing?

View 2 Replies

Developemnt Environment But Not In Deployement Environment?

Dec 15, 2009

I have VB6 Dll which I am referencing in vb.net ,I am calling the following function in it. It working fine in developemnt environment but not in deployement environment.

Error Method not found: 'Boolean MyUtils._MyUtils.LoadMyObjectRecords(ADODB.Stream ByRef, System.Array ByRef)'.

View 4 Replies

Cannot Create ActiveX/CreateObject(). - Permissions?

Jun 30, 2011

I am troubleshooting a program that normally works, and has worked in the past on the machine I am working with.I am a very novice programmer, I didn't program this myself I am just trying to get it to work.I have done as much research as I can, which has lead me to believe it is permissions problem with the CreateObject command.I have tried a fix in the .net 2.0 machine.config file, changing the processModel user to System, that didn't help.The machine does have norton on it, and norton was installed since the program stopped working. However I have tried disabling norton and running the program. A friend suggested it might be some settings on the computer that Norton changed hence disabling it not helping.Here is the error:See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.[code]... When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.

View 2 Replies

VB6 - Call A Function With CreateObject ( Type )?

Sep 1, 2010

I have a dll ( vb6 ) containing a public class with a public Type ( named Test ) and finally a public function that wants a variable passed by ref of Test type. Obiouvsly, if I reference that dll in a new project ( vb6 ) I can see the public function and the Test type I must use...the problem comes when I must call that dll creating it at runtime without any reference, using in example CreateObject. Can I reference in some way the type Test inside the dll by having created it at runtime? If I declare a type IDENTICAL to the Test type in a public class in my new project, VB issues a TypeMismatch error even if both data type are the designed the same say, have the same name and so on! how it comes?

View 5 Replies

.net - Release A File Lock On A COM DLL That Has Been Instantiated Via `CreateObject`?

Dec 21, 2011

I have a .Net 4 WinForms app that generates a DLL, calls CreateObject on the generated DLL then calls one of several methods that the DLL contains. The DLL is eventually used by a separate app. This WinForms app is just to generate and test the DLL hence why it can generate the DLL multiple times.The problem lies in the fact that calling CreateObject on the DLL locks the file to the process. The next time the DLL is generated it can't overwrite the previous DLL file on disk without closing the app completely and starting it again.

I've tried Marshal.ReleaseComObject, executing the CreateObject in a separate AppDomain, even setting the variable holding the COM object to a different COM object via CreateObject, manually calling GC.Collect() and a whole host of other things but none result in unlocking the file.The code flow is basically (simplified and generic names, etc.):

...
' Compile and generate DLL that is COM enabled and works fine
...
Dim foo As Object = CreateObject("Bar.Foo")

[code]....

is there a way to release a file lock on a COM DLL that has been instantiated via CreateObject without killing the process?

Note: this is a continuation of this original issue. I now have the DLL registering without locking the file but now the issue is with the CreateObject call not the DLL registration.

View 1 Replies

Create An Object Dynamically With CreateObject Function?

Oct 8, 2011

I am trying to create an object dynamically with CreateObject function. The code is below but it gives error:"ActiveX object can't be created" while calling the CreateObject function.

Public Class Form1
Public Delegate Sub DButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs)
Private Sub DButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
MsgBox("You hit me")

[code]....

View 4 Replies

Send Email - Windows 7 (64 Bit) - Getting An ActiveX Exception On The CreateObject?

Mar 26, 2012

I am sending email via Office as per the example below.I am seeing an ActiveX exception on the CreateObject if office is already running (see below). If I close office prior to the CreateObject call, all works as planned.

http:[url].......

' Start Outlook.

' If it is already running, you'll use the same instance...

Dim olApp As Outlook.Application
Set olApp = CreateObject("Outlook.Application")

View 2 Replies

Which Method Should I Use For Chat Server?

Feb 22, 2012

I am working on the client-server on my application and I am unsure which one of those method that I should use for the chat server. When I tried this:

Dim port As Int32 = 13000
Dim localAddr As IPAddress = IPAddress.Parse("127.0.0.1")
server = New TcpListener(localAddr, port)[code].....

I found that both of these methods are the same, I can connect to the server when I use either of them. tell me which one of them is the easy way and which one of them that I should use to connect to the server, send message...etc?

View 9 Replies

CreateObject (InternetExplorer.Application) With Protected Mode ON With Trusted Site

Sep 13, 2010

I have one project created with VB 6.0. Step to reproduced this issue,

1. Start Internet explorer and add the site "[url]" to trusted site. now set protected mode check box to Off for the trusted site zone.

2. Open the Visual Basic 6.0 and created standard Exe project.

3. From Tools -> references add "Microsoft Internet Controls".

4. Copy and Paste below code. [Code]

View 1 Replies

Appropriate Method To Get Time Of Server Computer?

Oct 19, 2011

I do have my program running in a network. I have set one main computer as server and installed database system too. My other clients create transaction and saves it to database. Now I need to add date and time of server too in that record

View 1 Replies

Authenticate Web Server With POST Method

Feb 8, 2010

I've been googling for some VB.Net code to authenticate to a web server with the POST method, receive a session ID in a cookie, and then send this cookie along with all GET queries... but all I found is half-working code or C# code, ie. difficult to use for a VB.Net newbie.

View 2 Replies

Sql Server - Configure A Button To Run A Method?

Feb 7, 2012

I have a custom application I am developing in vba. I have written all the code and the only thing I am confused about is how to configure a button to actually "start" or "run" the program. On the form on the user side, the user will type in an item number, then a button will be pushed that brings up a bunch of fields and textboxes on a new small form for the user to enter, The window displays the default values and will update/save new or updated fields and insert it into the database.

The button is designed in microsoft-gp but I have to manually code it to run the program. Right now, when I click the button, the window pops up, but no information is displayed in the textboxes nor are the combobox values being displayed.

Private rs As Recordset
Public Sub Main()
DisplayWindow
'Item Number is the primary field for pulling data

[code]....

When I run these two methods in vba, the information displays on the form and works 100% Now I have to code the button on the original form so this is what I have ; Test = name of the button

Private Sub Test_Changed()
frmItemProfile.Show
End Sub

How can I code the button to run the program properly?

View 1 Replies

Use Server.mappath In Shared Method?

Dec 1, 2009

How can i use Server.MapPath in shared methos i tried something lile this [code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved