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


Similar Messages:

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

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

Clarification Regarding Application Domain?

Feb 1, 2011

I need little clarification regarding the Application Domain. As it has been said in the .net framework documentation "a process can have one or more application domain", Does it means There can be only one process in a machine dedicated for the .net application and whenever a new .net application gets executed, an application domain gets created in the above mentioned process?

View 2 Replies

GridView Property Clarification?

Mar 30, 2010

if i set, CommandArgument="<%#((GridViewRow)Container).RowIndex %>" to linkbutton(inside gridview's template field) will it return (i) GridViewRow of current Row or (ii)DataKey valueof current row?

View 1 Replies

Some Basic Clarification On Global.asax?

Feb 8, 2010

I was under the impression till now that Global.asax is used for application level events and it's a common file for all users. Then what does Session_Start event does in this file. If we have to create user session varaibles then Is this the write place to create those? If someone can kindly clear my confusion on this file and it's methods.

View 5 Replies

Clarification / Explanation Of RegisterClientScriptInclude Method?

Apr 20, 2010

I've been looking on the Internet for a fairly clear explanation of the different methods of registering javascript in an asp.net application. I think I have a basic understating of the difference between registerStartupScript and registerClientScriptBlock (the main difference being where in the form the script is inserted).I'm not sure I understand what the RegisterClientScriptInclude method does or when it is used. From what I can gather, it is used to register an external .js file. Does this then make any and all javascript functions in that file available to the aspx page it was registered on? For example, if it was registered in the onLoad event of a master page, would all pages using that master page be able to use the javascript functions in the .js file? What problems would arise when trying to use document.getElementById in this case, if any? Also, when it is necessary/advantageous to use multiple .js files and register them separately?

View 1 Replies

MVC :: Clarification On How To Include Script File

Sep 26, 2010

It took me a while to realize the following, which was generated by VS after dragging and dropping the script file to a view file, does not work

[Code]....

However, the former works perfectly for another view file. I am wondering if any expert could shed some light on this.My current hunch is the correct path without using helper Url.Content() depends on a page's URl not where the view file is located.

View 14 Replies

Mvc Linq Clarification Database Call Or Will It Based On Dic?

Mar 2, 2011

var Dic = _db.Dictionaries.Single(m => m.int_DictionaryId == id);
var DicRef = Dic.DictionaryRefs.Where(m => m.int_DictionaryId == id);

The second one will make a database call or will it based on Dic?

View 2 Replies

Crystal Reports Objects Within Visual Studio The Full Version Or Is It A Trial Version

Nov 12, 2010

Are the Crystal Reports objects within Visual Studio (I'm using 2005) the full version or is it a trial version that is missing features?

View 1 Replies

Configuration :: How To Update The Licence For Dundas From Evaluation Version To The Licensed Version

Feb 25, 2011

We have an application that is already deployed in the production environment. And currently it is using Dundas evaluation version. We tried updating it to the licensed version by simply pasting the dll file. but we got the error message as "The file has not been pre-compiled and cannot be requested".

View 1 Replies

Strings Clarification - Biggest Character Using Ascii Values?

Mar 22, 2010

i have i doubt. any body clarify this doubts. Find biggest character in a string. using ascii values.

View 3 Replies

Firefox Version Wrong With Request.Browser.Version?

Sep 26, 2010

I'm try to get my site to detect what browser someone is using to ensure they're using one that is compliant with our site. Everything works, except Firefox seems to post the wrong version in the Request.Browser variables.I'm on Firefox 3.6.10, but Request.Browser shows Mozilla 1.9.2.10. It's correct in the HTTP_USER_AGENT string:

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 YFF35 Firefox/3.6.10 ( .NET CLR 3.5.30729)

Is there a way to detect it better without having to parse through the HTTP_USER_AGENT string?

View 3 Replies

C# - FormsAuthenticationTicket.Version Returns Invalid Version Number

Mar 8, 2011

Is there any limit on the size/numbers in the version number of the FormsAuthenticationTicket.

I tried to create an ASP.NET cookie using forms authentication, with a large version number(ex: 1234567 need this number for identification purposes). But when I decrypt the cookie I get 135 as the version number.

Initially the old forms authentication cookie was removed, in order to add new information.

Response.Cookies.Remove(FormsAuthentication.FormsCookieName);

Following is the code I used to create the FormsAuthentication cookie.

FormsAuthenticationTicket newAuthTicket = new FormsAuthenticationTicket(1234567, un, DateTime.Now, DateTime.Now.AddHours(5F), false, user_data);
HttpCookie newauthCookie = new HttpCookie(FormsAuthentication.FormsCookieName, FormsAuthentication.Encrypt(newAuthTicket));
Response.Cookies.Add(newauthCookie);

After retrieving the cookie, the version number I got was 135. This number varies with different version numbers.

string cookieName = FormsAuthentication.FormsCookieName;
HttpCookie authCookie = Context.Request.Cookies[cookieName];

if (authCookie == null)
{
return;
}
FormsAuthenticationTicket authTkt = null;
authTkt = FormsAuthentication.Decrypt(authCookie.Value);
if (authTkt == null)
{
return;
}
int versionID = authTkt.Version;

Can someone let me know if it's a bad idea to use such big version numbers, or am I missing something in this.

View 1 Replies

DataSource Controls :: Version 661. This Server Supports Version 655

May 22, 2010

I have Visual Studio 2008 installed on this workstation with SQL 2000, 2005 Express, 2008 Express and I think 2008 R2 (not sure if that is a version itselve or not)

I will call that workstation HOME

I created some tables in SQLEXPRESS through VS2008.

I worked on this project on another workstation that I just installed VS2008 annd SQLEXPRESS 2008 and I know that was R2

Installed Visual Studio 2010 trial edition between the thiem I made the tables on HOME and tonight for the first time since that install

I am now getting the "cannot be opened becuase it is version Version 661. This Server supports version 655..."

What to do now?

I can opened SQLExpress 2008 management studio and it is running.

So is my SQL 2000. The problem seems to be that after the VS2010 install neither VS2008 or VS2010 can connect to the SQLExpress 2008

What do I do now?

I can't remove sql 2000 because it is tied to several 3+ gig databases that will not work in Express.

View 2 Replies

C# - How To Upgrade Ajaxcontroltoolkit Version From 3.0.20820.0 To Version 3.5.40412.2

Jan 5, 2011

i am working in webapplication in asp.net using c#.I have a problem that currently i am using ajaxcontroltoolkit version 3.0.20820.0 but in this toolkit i don't have Editor Ajax control so i want to upgrade it with new version ajaxcontroltoolkit version 3.5.40412.2

When i upgrade it then my old ajax control is not working like validatorcalloutextender and requiredfieldvalidator etc.

so please tell me how can i upgrade ajaxcontroltoolkit version from 3.0.20820.0 to version 3.5.40412.2

i also use in web.config file but not successfull.

View 1 Replies

AJAX :: The Requested Script Resource 'Common.Common.js' Requires Version 'ControlToolkit, Version=4?

Aug 11, 2010

I have a solution I'm working on in VS2010 Professional, using ASP.NET 4.0 with the AJAX Toolkit.This has been working fine, but when I started it up today, I got the runtime exception shown above. This exception occurs on any page with a control from the toolkit.Sometimes when I load a page, I get an exception "Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, ublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified." If I then reload the page (without making any changes), I then get the exception shown in the subject line.I tried dragging an AJAX Toolkit control from the toolbox onto a page, and then deleting it, and that worked - once. The next time I tried the page (or any other), I got the exception again. Dragging a control out didn't help this time.

View 5 Replies

Factory Method Pattern Clarification - Allow The Client To Delegates The Product Creation (Instance Creation) To The Subclass

Mar 29, 2010

My understanding of Factory Method Pattern is (Correct me if i am wrong) Factory Method Pattern "Factory Method allow the client to delegates the product creation (Instance Creation) to the subclass". There are two situation in which we can go for creating Factory Method pattern.

(i) When the client is restricted to the product (Instance) creation.

(ii) There are multiple products available.But a decision to be made which product instance need to be returned. If you want to create Abstract Method pattern

You need to have abstract product Concrete Product Factory Method to return the appropriate product.

public enum ORMChoice
{
L2SQL,
EFM,
LS,
Sonic
}
//Abstract Product
public interface IProduct
{
void ProductTaken();
}
//Concrete Product
public class LinqtoSql : IProduct
{
public void ProductTaken()
{
Console.WriteLine("OR Mapping Taken:LinqtoSql");
}
}
//concrete product
public class Subsonic : IProduct
{
public void ProductTaken()
{
Console.WriteLine("OR Mapping Taken:Subsonic");
}
}
//concrete product
public class EntityFramework : IProduct
{
public void ProductTaken()
{
Console.WriteLine("OR Mapping Taken:EntityFramework");
}
}
//concrete product
public class LightSpeed : IProduct
{
public void ProductTaken()
{
Console.WriteLine("OR Mapping Taken :LightSpeed");
}
}
public class Creator
{
//Factory Method
public IProduct ReturnORTool(ORMChoice choice)
{
switch (choice)
{
case ORMChoice.EFM:return new EntityFramework();
break;
case ORMChoice.L2SQL:return new LinqtoSql();
break;
case ORMChoice.LS:return new LightSpeed();
break;
case ORMChoice.Sonic:return new Subsonic();
break;
default: return null;
}
}
}
**Client**
Button_Click()
{
Creator c = new Creator();
IProduct p = c.ReturnORTool(ORMChoice.L2SQL);
p.ProductTaken();
}

Is my understanding of Factory Method is correct?

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

Scanner ActiveX In .net?

Jun 28, 2010

I made a proje in asp.net which makes scan,resize...I used wia(Windows Image Acquisition).if I,m in local when I press scan button project works.but I published this project on the web it does not work on the web.I heart I need to write a activex control to work client scanner.however I do not have any idea to write it.

View 1 Replies

Cannot Create ActiveX Component

Apr 28, 2010

I have been working on an asp.net web application that calls a third party COM application through createObject method. The application works fine (gets initialized) in Win XP but I am having problems getting it to work in WIndows 2003. I get the "Cannot create ActiveX component" error.

The website works fine in visual studio - the application launches fine. The references added were the interop assemblies which were packed inside a tlb file.

I am aware of the change in default user - ASPNET for iis 5 and Network Service for IIS 6.0. Also I have changed the default permission levels in DCOM config for not just this COM application but all the COM applications by changing the default COM security properties of the computer. I gave almost every user the permissionto launch and access remotely including Network service and everyone.

The other thing I have done was to test it out in IIS 5.0 isolation mode but couldn't get the application work - still same error.

The final thing I have tried was to use IIS 6.0 itself but change the application pool to local system and I am just stumped that even this didn't resolve the error.

Another thing to add is that I cannot register the tlb file using regsvr32.exe command as it is not a dll.

View 4 Replies

VS 2005 - How To Make A Exe Like ActiveX

Jan 17, 2010

How can I call exe which is made by vb.net and then my web site can use it as a link for opening. If user does not install it, the warning window will help u install the exe, just like report builder in reporting service?

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

Accessing ActiveX Method From C#?

Jul 5, 2010

I have written an activex user control to get an image from a user's clipboard. I have a method to get the byte stream for this image. I want to embed this into a asp.net webforms page (C#).

I am not sure how to call this method from the "code behind" portion of the asp.net page by using c#. I am not able to access the object from the "code behind" portion.

I am trying to accompish this by using Javascript but I keep getting the error:

Microsoft JScript runtime error: 'ScreenCapMod1' is undefined

This is the HTML code:

<div id="panelScn" style="height:258px;">
<object id="ScreenCapMod1" name="ScreenCapMod1" height="812" width="689"
classid="ScreencaptureActiveX.dll#Screencapture_ActiveX.ScreenCapModule">
</object>

[Code]....

View 1 Replies

How To Run Doc Command In Client Side Using ActiveX

Mar 29, 2011

how to run doc command in client side using any ActiveX, java other way

View 1 Replies







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