Installing A New Version Of An ActiveX Control In Web Application?

Jan 7, 2011

I've been tasked to update and install a new version of an old ActiveX control in our Aspx web application .The actual updating is fairly straightforward, but the installing is giving me headaches. Here is what I tried:

In the VB6 editor, get the properties of the ActiveX project, and check off the "autoincrement" checkbox in the "Make" tab.Set the version to 1.0.12 Create a new CAB with the Package&Deployment wizard. Copy this CAB to my website.

Then in the Aspx itself, I update the version of the activeX as follows:

Me.Page.Header.Controls.Add(New LiteralControl(String.Format("<div style=DISPLAY:none'><object id='PrtLabel' codebase='{0}' classid='CLSID:AB61148E-D4B5-4D4B-8867-9E4CE8229B5E' viewastext></object></div>", "PrtLabel.CAB#version=1,0,0,12")))

After this, I delete the prtlabel.dll and prtlabel.inf files from the "c:windowsdownloaded program files" folder.

Problem is, when I then visit the web page and it asks me to install the activeX, it doesn't actually do it (no error message appears though). When I go back to the "c:windowsdownloaded program files" folder, ONLY the prtlabel.inf file has been copied there, NOT the prtlabel.dll file.

Is there a special procedure to put a new version of an ActiveX control in your website?

View 2 Replies


Similar Messages:

Clarification Regarding ActiveX Cab Version?

Jan 16, 2010

I'm building CAB for ActiveX contol and I need the following clarification:I've control.ocx which have 2.0.0.1 version. When I'm embedding my control I'm putting the following tag:Tommorow, I'm adding new functionality to my ocx and versing it as 3.0.0.1How my tag should look like? Should it content codebase="control.cab#Version=3,0,0,1" attribute? Is it correct?Can I set version for cab file?How can I tell my client to update my ActiveX component?

View 1 Replies

Configuration :: How To Give Full Trust To Activex Control By Programmaticallytrust To Activex

Jul 30, 2010

Currently I have written the Activex Control for RFID USB reader and calling that one in ASP.NET web application. The Activex Control is working fine when I will give the full trust permission for particular IIS URL in

1. Open Control Panel > Administrative Tools > .NET Framework 2.0 Configuration

2. Expand Runtime Security Policy > Machine > Code Groups > All_Code

3. Right Click All_Code and click New...

4. Create a new code group, I named mine MyProject_FullTrust_Zone

5. Choose the URL condition type and specify the path on the network where the apps will be deployed.

6. Choose Use Existing permission set, and set it to Full Trust.


Alternative way of giving permission for an Activex Control is

1. Open Visual Studio Command Prompt

2. Run the command caspol -machine -addgroup 1. -site <ip address> FullTrust Doing this it works fine.

Whenever my web site will open, it will ask the user to give permission for the Activex Control using Allow or Cancel Button in browser. This type of functionality I have seen some web site which takes input from the user to allow the ActiveX Control.

View 1 Replies

Configuration :: Drawbacks To Installing Framework Version 4?

Jun 7, 2010

I currently have the .net framework version 3.5 installed on my computer. Are there any known drawbacks to instyalling version 4?

View 5 Replies

Web Page On VPS Can't Create Word Application ActiveX Object

Nov 7, 2012

So I have written as part of an application some code that on my clients website pulls some information from SQL server and uses it to create a new file using a Word with bookmarks as a template. It works fine on my development machine, but not on my production server with the error: "Cannot create ActiveX component.: Word.Application". Now I have been approaching this as if it is an issue with Office, but it occurred to me that this might be another issue. Maybe some security issue with ASP.NET? My original thought was it was some kind of compatibly problem as I had Office 2007 on my machine and 2010 on the server.

Code:
Protected Sub btnCreate_Click(sender As Object, e As System.EventArgs) Handles btnCreate.Click
Dim objWord As Object
Dim objDoc As Object
Dim strContractFile As String = "~Documents" & txtContractFile.Text
Dim strContractFilePath As String = Server.MapPath(strContractFile)

[Code] .....

View 5 Replies

Asp.net - Application Buggy After Installing IE 8.0?

Oct 29, 2010

The HRIS app in my company is a asp.net web application which started showing bugs after IE 8.0 was rolled out on our company intranet. Few people open multiple instances of the app with different credentials, now since IE 8.0 has this session sharing feature on different browser windows, the sessions in both windows become the same but the data rendered on controls of the page is different and that results in incosistent data going into the database.The application is huge and has a userbase of more than 5000. Is there any way other than changing thesession to cookieless. One approach could be to restrict only one instance of the app on a mchine at a time. But I am not able to find a way to implement this. Looking for a solution which would have minimum impact.

View 1 Replies

Web Forms :: Installing A License Key For Application?

Oct 8, 2010

i would like to install a license such that it should run for a week or so. What i am doing is i will make setup file of my application and give it to the user when the user install it on PC i would like to give a default license which can run up to a week. After that even if he changes the date i would like to show a message as License expired

I need to know how can i give the user a default license which can run up to a week.

View 2 Replies

Add VB6 ActiveX Control In C#?

Jan 21, 2010

i created one ActiveX control in VB6 i need to use this ActiveX cotrol. how to register and how to add to AspX page.

View 7 Replies

Configuration :: Guideline On Installing The Application Dlls In GAC?

Apr 2, 2011

What is the guideline on installing the application dlls in GAC? I have not never done that. Is installing shared dllas like mvc2 dlls in GAC is a good approach?

What will happen in this case where I have an old version of the same dll in GAC and a new version of the same dll installed in the bin folder? Will always the GAC dll being used by the application rather than the dll in its bin folder?

View 1 Replies

Installation :: Running Application Written In .net 1.1 After Installing .net 3.5?

Apr 26, 2010

I have vs 2003 installed on my machine and recently I installed vs2008. I believe this two version can run simultaneously on one machine. but I'm having problem running application written in .net 1.1 after installing .net 3.5. this is the error msg i see when I open asp.net application written .net 1.1 "HTTP:/1.1 500 Internal Server Error" Is there a proper way of installing vs 2008 to eliminate this problem I'm experiencing right now?

View 2 Replies

Visual Studio :: Installing From Web Platform Installer Without Installing SQL?

Jan 18, 2010

Why does the Web Platform Installer force you to install SQL 2008 Express?

I have a production server which already has an installation of SQL 2000 but no web development tools are installed. I would prefer not to add SQL 2008 Express if it is not necessary. The server in addition to being the primary intranet webserver is also DC, APP SERVER, FILE SERVER and basically does not need to handle an extra instance of SQL.

The main purpose of this is just one of convenience to have the web development app on the RDP Desktop instead of attaching to the server in some manner (ftp/unc share).

View 3 Replies

ActiveX Control Coming On Top?

Dec 29, 2010

I have created a windows control and hosted it into my web application. I created that because I need to do some system level tasks through web application. The issue is that I need to show a modalpopup on that form and the activex control is coming on top of modal popup, rest is fine.

View 5 Replies

Installation :: Installing 2.0 SP2 Breaks - Application Fails To Initialize

Apr 9, 2010

On Windows XP I installed the .Net Framework 2.0 and my test aspx page worked fine. I then installed the .Net framework Service Pack 2 and then it breaks .Net. I get a Server Unavailable message and when I run aspnet_regiis -i I get a C0000005 error with message 'The Application failed to initialize properly.'
FYI, I have Symantec Endpoint Protection installed on my PC.

View 2 Replies

Way To Integrate A ActiveX Control Into Asp.net Page

Feb 3, 2010

I want to integrate a ActiveX control into asp.net page, I wonder if Firfox can support ActiveX control or not?

View 1 Replies

Legacy ActiveX Control Calls DLL Functions ?

Sep 1, 2010

Hint: this one might sound complicated, because I am trying to give as much info as possible, but I suspect that I just want someone to tell me "yes, you are correct".

On this legacy system, which dates from 2002, the user visits a web page and uses an RFID reader to read a tag number, which is then written to an input field on the web page.

The only s/w that comes with the reader is a custom DLL, nop .exe.

The very sparse documentation insists that only MSIE be used and that all security relating to ActiveX be disabled.

When I look into the source of the web page I see calls to functions in the DLL.

Now, here's the fun part: I know zilch about ActiveX, I have to make a minor change to the DLL _but_ the VB6 source code has been lost, so I guess that I have to recreate the (seemingly very simple) DLL from scratch - this week.

Decompiling the DLL shows me the functions (locateReader, getTagVal, closeReader). However, by decompiling I can't really know the number or type of the parameters, nor the return values ... and if anyone knows the API they are refusing to share it, but basically it all seems to have been lost in the mists of time as companies went bust, were bought & sold, merged & demerged and the initial DLL might have been written by an external guy, but no one knows who.

So, can I get the function params & type from the ASP page source?

I see things like

Reader = new ActiveXObject("<dllName>.Reader");
Reader.locateReader();
tagVal = Reader.getTagVal();
Reader.closeReader();


So, I would say that none of the fn()s take parameters, that closeReader doesn't have to return anything; it looks like locateReader doesn't return anything either, so I guess that error handling will have to be in the DLL (loop forever with a popup demanding that a reader be attached; and getTagVal seems to return a string.

Does that sound about right? Any other comments (other than lessons to be learned)?

View 1 Replies

How To Find What ActiveX Control Is Referred On A Webpage

Mar 4, 2010

I have developed a web application (ASP.NET Web Forms). One of my customer has very restrictive policies. When he accesses the web page, IE shows this message:

Your security settings do not allow Web sites to use ActiveX controls installed on your computer. This page may not display correctly.

As far as I know, we don't use ActiveX controls on our page. I did a "View > Souce" and did not find anything suspect.

How can I find what part of my page refers to an ActiveX. The application uses jQuery and a few jQuery plug-ins. Is there a tool/add-in like "Fire Bug" that I can use to list the ActiveX controls referred on a page?

View 1 Replies

Databases :: Read Write Excel File In Application Without Installing The Office On Server

Jan 8, 2010

I want to read write excel file in my application without installing the office on my server. Means my server don't have any excel (MS office) installation. Is it necessory to install the office on server to excute the program of read or write the excel file.

View 5 Replies

Web Forms :: Invoke JavaScript Function From ActiveX Control

Mar 4, 2010

I have to fullfill a requirement where my activeX control (developed in c#) need to invoke a callback JavaScript function asynchronously (or) synchronously (or) in both ways. I can handle the context using threads. JavaScript:

function handler_1(){ ..... }
myActiveXObject.registerCallBack(handler_1);

Where in ActiveX control, I need a function "registerCallBack" to accept the argument. But I have no clue how to invoke that registered JavaScript function from my ActiveX control. By digging MSDN forum, I found something as script.GetType().InvokeMember("myJSFunctionName", BindingFlags.Instance | BindingFlags.InvokeMethod | BindingFlags.Public, null, script, null);

the above line throwing me an exception Unknown Name etc. I do have the definition for "myJSFunctionName" in javascript and I got the script object from the document object.

View 2 Replies

Activex Control To Work In FireFox And Google Chrome?

Feb 11, 2010

I developed a activex control, it can work well in IE, but not in firefox , is it possible for my activex control to work in FireFox and Google Chrome?

View 1 Replies

ActiveX Control Works In HTML, But Not (quite) In ASPX. What's The Difference

Mar 23, 2011

I'm trying to use a third-party ActiveX control on our intranet ASP.NET site, and I've run into a problem I can't figure out.

Expected behavior: The control expects to see a specific variable in the URL ("msg"). If you provide it, it works. If you don't provide it, it complains that the value is missing.

If I put the control in an HTML page, it works fine. But if I then change the page's type to aspx, the control acts as if the variable isn't there. The control still loads and runs; I'm not getting any permission or safety messages. But it complains that "msg" wasn't provided on the URL.

In other words, if I try these URLs, the first one works fine; the second one gives me the "you didn't provide the msg parameter" complaint:

(works fine)
http://mysite.mydomain.com/controltest/test.html?msg=123

(complains)
http://mysite.mydomain.com/controltest/test.aspx?msg=123

I know the aspx version is being processed by the server before being sent to the client, but there aren't any server-side commands or tags (it's the same file, just copied and renamed). As far as I can tell, the resulting page that is sent to the client is exactly the same.

Is there something about aspx vs html that would cause the control to not be able to get that variable? I can see it fine from javascript that I add myself. Here's the content of the page. Not much to it. If I get this working I intend to add some aspx tags and code, but there's no point yet.

<html>
<head>
<title>
ActiveX Control Test
</title>
</head>
<body>
<OBJECT ID="control1" CLASSID="..." CODEBASE="..." >
</body>
</html>

View 1 Replies

Configuration :: Deploying An ActiveX Control And Marking It As Safe?

Apr 7, 2010

I have a dll written in VS 2008 that needs to act like an ActiveX control called via JavaScript from a HTML page and writes a file to the users local machine.

The main code is like the following:

[Code]....

The control works if I turn off a lot of security in IE and manually run regasm on the users machine, but how do I automate the process and let it run without the users having to lower their security levels?

Do I need to get the dll signed? If so how do I get it signed and how do I deploy and install it to users?

View 2 Replies

Ajax Modal Popup Loads Behind The Activex Control?

Aug 4, 2010

In a page there is an activex control as well as a button whose onclick opens an ajax modal popup. The problem i face is that whenever the button is clicked the ajax pop up loads behind the activex control and thus it is hidden.So I am not able to use that control at all. I have not found a proper solution to this. I tried a solution where a browser check condition was removed from the ajaxtoolkit code. but no luck. Am using Ajax toolkit version 3.0.30512.1.

View 2 Replies

Web Forms :: Multiple File Uploader - Create Own ActiveX Control

Dec 23, 2010

I need a multiple file uploader dialog,that means I can able to select multiple files at a time in file upload window.How can I achieve this task? I gone through Google and I came to know that we can achieve this using silverlight and flash plugins,but these are not recomandable in my application. Is there any open source(i.e free) ActiveX controls for Multi file Uploader? Is it possible to create own ActiveX control to achieve this task.

View 4 Replies

Configuration :: ActiveX Control Not Load When Apply SSL In Windows 2003?

Jan 28, 2011

I Apply SSL Certificate on my web but due to this Activex Control not load. While i remove my SSL Certificate then Activex Control Show.

View 1 Replies

Custom Server Controls :: Activex Control To Print A Zebra Tag?

Sep 15, 2010

I'm trying to create an Activex control (similar to the Crystal Activex) to Print tag's from a Client side to a Com Port 1. I created a User control I can pass values to it etc, but It won't Print.

User Control Code:

[Code]....

View 1 Replies







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