Active-X Error CreateObject("ScriptControl")?

Jul 2, 2010

I have a Visual Basic application using Createobject("ScriptControl") to convert a user input like 3+3 to 6. This worked perfect under Windows XP and even Windows 7 but on my new Windows 2008 Server (64 bit) it gives an error: Cannot Create ActiveX component. Should I register or refer anywhere ? Should I install anything ?

Dim SControl = CreateObject("ScriptControl")
SControl.language = "VBScript"
Totalfee = SControl.eval(TotalfeeTextBox.Text)

[code].....

View 2 Replies


ADVERTISEMENT

Createobject("autocad.application.18") Gives ActiveX Error In VB

Sep 21, 2009

I have a program that is able to print selected drawings to a printer near the person who requested the drawing. recently we updated from autocad 2008 and inventor 2008 to autocad 2010 en inventor 2010. With opening of inventor 2010 I don't have any problems. I'm usung visual studio 2005 I open autocad with the following text:

[Code]...

View 8 Replies

Calling A COM Object (MSScriptControl.ScriptControl) From .Net?

Oct 24, 2011

I am currently trying to maintain a VB6 module that it is being called from a vbscript. The module needs to have a reference to the MSScriptControl.ScriptControl COM object. However, I obtain a 80040154 error. I went ahead and registered the component using the C;WindowsSysWOW64Regsvr32.exe but then I get that the entry-point DllRegister was not found.

View 3 Replies

Get Parameter Values With ScriptControl And ParameterInfo

Apr 18, 2010

I've almost accomplished getting method parameter name and values. [code] I'm using using vb.net 2005 /Vista/Microsoft Script Control 1.0

View 1 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

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

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

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

Troubleshooting IIS7 Active Directory Group Members W/ Error Log Text File?

Jun 17, 2011

Background: I have an application that loads marketing companies into a drop down list if the currently logged in user is a member of that marketing group in active directory. The Group ACOMP_USER_BIG is compared to MarketingCompanyShortName Big in the database records via a web service. Problem: I have 3 Newly added AD Groups that won't load in production but load fine in the drop down on my local dev server. The deployment guy already tried doing an IISReset and that didnt fix the issue. All the AD groups have read access only and no write access. We need to find out more information on why the marketing company AD groups are not loading. How do I get the groups to load correctly or prove that the problem is not a programming issue and a deployment or AD issue? H*ere's the VB.NET Code behind that populates the marketing company drop down list.

[code]...

View 1 Replies

VS 2005 Get The Active Control Of The Active Form?

Mar 30, 2009

I want to get the active control (control which has the focus or where the cursor is on) each time the cursor moves to another control or each time a control receives a focus.

View 5 Replies

Error - An Attempt Has Been Made To Free An RCW That Is In Use. The RCW Is In Use On The Active Thread Or Another Thread

Jun 6, 2011

I am in a trouble with this error:"An attempt has been made to free an RCW that is in use. The RCW is in use on the active thread or another thread. Attempting to free an in-use RCW can cause corruption or data loss." I am not sure if the RCW-error is related to my problem but I was having this error last January 25. It appears when I am ending my application. I ignored it. The next morning when I resumed coding for my application, the changes I am making does not appear at run-time anymore. Whatever GUI changes I make in my application (at design time), it does not make any effect any longer when I am running the application. What is causing this? I am so afraid if I have to restart my application from the scratch. I have gone far.

View 1 Replies

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

CreateObject("Excel.Application") Running Very Slow?

Nov 24, 2009

In my vb.net applications, I do a lot of reading/writing to excel files.This is one of the simpler bits of code I use:

Dim objApp As Object, objBook As Object, objSheet As Object
objApp = CreateObject("Excel.Application")
objBook = objApp.Workbooks.Open("C:maid2cleanM2CPrinters.xls")
objSheet = objBook.Worksheets.Item(1)

[code]....

It's never been fast but in the last few weeks it seems to take forever.The "createobject" line is taking 4 seconds to run. is there any way I can find out why it's slowed down?

View 4 Replies

CreateObject("WScript.Shell") With Cmd Window Minimized?

Nov 2, 2009

I using visual studio 2008 and visual basic.I need to create a form that pings my companies servers and gets the return value of the ping and displays the results in a label and run with a timer. I have eveything pretty set up and working the way I want it to but I would the command window pops up when the command is run. I found some code that was supposed to keep the command window in the background but it doesn't seem to work. [b]Can ayone help me figure how to make the command window run in the background or at least keeping if from popping up?/B]This is the code I found. According to the article I read False should keep the command window minimized. I tried it with true and I also tried it with False and neither worked.

objCmd = objWShell.Exec("ping " & url, 0, False)

This is the actual code I'm trying to run.

Public Function fnPingmeVer3(ByVal url As String) As String
Dim StringReturn As String
Dim objWShell As Object = New Object

[code]....

View 8 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

Get Query Active Directory With The Pc Name And Return It's Path In The Active Directory Tree

May 9, 2006

I'm a developer for a College we have an active directory.I need to query Active Directory with the Pc name and return it's path in the Active Directory tree.

View 3 Replies

FlashWindowEx Doesn't Work While The Application Is Active But Does When Another Application Is Active

Apr 2, 2010

I have a standard Visual Studio 2008 VB.Net WinForm application, running on Vista Business. One of the forms has a timer that passes Me.Handle to FlashWindowEx. This works as intended as long as none of the windows that belong to this application are the Foreground window. If this program is running and another application's window is the Foreground window, then it flashes as intended. If, however, any of this application's windows are the Foreground window, then it doesn't flash.

[Code]...

View 2 Replies

Get Process Id Of Process Started With CreateObject In .NET?

Mar 12, 2010

I'm using VB.NET for a web-application that starts some process using CreateObject, like this:

Dim AVObject = CreateObject("avwin.application")

After all is done everything get closed down en stopped using the proper release functions, however, for some reason the process remains.

Is there some way in which I can get the process id of the started process, in order to explicitly kill it just before termination?

View 2 Replies

"Regular Expressions" Create Object I.e. CreateObject("VBScript.RegExp")?

Apr 14, 2010

The code I am using is below: There is a failure somewhere in this code but I cannot "see" it

[Code]...

View 1 Replies

.Net Get Datagridview Which Is In The Active Tab?

Aug 24, 2011

I've got a form, with a TabControl which has a DatagridView on each of its tabs.

I would like to be able to access the datagridview which is on the active Tab.

I guess code could look something like this:

Dim
mydatagridToExport As DataGridView
mydatagridToExport = TabControl2.SelectedTab."Some code to access the datagridview on this tab"

View 3 Replies

Active Directory In .Net?

Jul 1, 2009

How can I get a list of computers and their properties from Active Directory using VB.Net and Visual Studio 2008?

View 3 Replies

Detect If Abc.exe Is Active/on Top/using Etc?

Mar 30, 2011

With active i meant for example you are using browser now, so its active when you skip to another window, its not active anymore

View 1 Replies

Get Active Workbook Name Only?

Mar 16, 2010

how can i find all the open excell workbooks

View 2 Replies

Get Name Of Active Control?

Jul 3, 2011

I would like to get the control name, regardless of if its on the projects form or not. put it in a thumbnail following the mouse...

So if i open up notepad it would give me the active control name...

View 5 Replies

Get Name Of Active Exe On Network Pc?

Oct 30, 2009

How could i get name of Active exe on Network pc?

View 1 Replies

Get The Last Active Control?

Dec 24, 2009

I have 9 textboxes in 1 form and couple of buttons to add unicode symbols inside the last active textbox when the button is pressed. So how do I find out which textbox was last active when the button was pressed.

View 10 Replies

Get The Name Of The Active Control?

Dec 19, 2009

how to get the name of the active control in Visual basic

system.reflection..... that doesnt work

like i use addhandler so if I do that it gets me the name of the adress of the original control

Also, I'm trying to get a toolstripdropdown menu as a bookmarks thing; how can I get the name of the selected dropdown item?

View 3 Replies







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