473,756 Members | 4,165 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to deploy an assembly in IE, as a cab file

Hi
Problem : Unable to deploy an assembly in IE, as a cab
file. (Works fine when deployed as a dll )

Description :
I have created a assembly (.dll) in C# which I
deploy in IE. The dll name is test.dll and the object tag
in the html page is as follows.

<OBJECT ID="myAssembly "
classid="test.d ll#testNS.Class 1"></OBJECT>

This works fine.

Now, for practical reasons, I want to deploy the assembly
as a cab file, but there is a problem.

To deploy it as a cab I followed the steps mentioned in
http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/mwsdk/html/mwconredirectin gtomobilewebapp lication.asp

1. Created the cab file called it test.cab (using
cabarc.exe)
2. Created a config file called test.dll.config as follows

<configuratio n>
<runtime>
<assemblyBindin g xmlns="urn:sche mas-microsoft-
com:asm.v1">
<dependentAssem bly>
<assemblyIdenti ty name="test"/>
<codeBase version="1.0.0. 0"
href="http://mypc/test.cab"/>
</dependentAssemb ly>
</assemblyBinding >
</runtime>
</configuration>

3. In the HTML I specified this config file
<link rel="Configurat ion"
href="http://mypc/test.dll.config "/>

4. I'm unsure about the object tag, so I tried the
following two cases
a. <OBJECT ID="myAssembly "
classid="test.d ll#testNS.Class 1"></OBJECT>
b. <OBJECT ID="myAssembly "
classid="test.c ab#testNS.Class 1"></OBJECT>

But neither worked.

The assembly is strong named. Any idea what I did wrong ?
How does one deploy an assembly in a cab file?

thanks
mqs
Nov 15 '05 #1
2 5495
Doesnt anyone in this group know how to do this ?
-----Original Message-----
Hi
Problem : Unable to deploy an assembly in IE, as a cab
file. (Works fine when deployed as a dll )

Description :
I have created a assembly (.dll) in C# which I
deploy in IE. The dll name is test.dll and the object tag
in the html page is as follows.

<OBJECT ID="myAssembly "
classid="test. dll#testNS.Clas s1"></OBJECT>

This works fine.

Now, for practical reasons, I want to deploy the assembly
as a cab file, but there is a problem.

To deploy it as a cab I followed the steps mentioned in
http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/mwsdk/html/mwconredirectin gtomobilewebapp lication.asp

1. Created the cab file called it test.cab (using
cabarc.exe)
2. Created a config file called test.dll.config as follows

<configuration >
<runtime>
<assemblyBindin g xmlns="urn:sche mas-microsoft-
com:asm.v1">
<dependentAssem bly>
<assemblyIdenti ty name="test"/>
<codeBase version="1.0.0. 0"
href="http://mypc/test.cab"/>
</dependentAssemb ly>
</assemblyBinding >
</runtime>
</configuration>

3. In the HTML I specified this config file
<link rel="Configurat ion"
href="http://mypc/test.dll.config "/>

4. I'm unsure about the object tag, so I tried the
following two cases
a. <OBJECT ID="myAssembly "
classid="test. dll#testNS.Clas s1"></OBJECT>
b. <OBJECT ID="myAssembly "
classid="test. cab#testNS.Clas s1"></OBJECT>

But neither worked.

The assembly is strong named. Any idea what I did wrong ?
How does one deploy an assembly in a cab file?

thanks
mqs
.

Nov 15 '05 #2
The initial post had an incorrect URL.
Here is the correct referenced URL for deploying assemblies in files

http://msdn.microsoft.com/library/en...ngcabfiles.asp

mqs

"mqsash" <an*******@disc ussions.microso ft.com> wrote in message news:<03******* *************** ******@phx.gbl> ...
Hi
Problem : Unable to deploy an assembly in IE, as a cab
file. (Works fine when deployed as a dll )

Description :
I have created a assembly (.dll) in C# which I
deploy in IE. The dll name is test.dll and the object tag
in the html page is as follows.

<OBJECT ID="myAssembly "
classid="test.d ll#testNS.Class 1"></OBJECT>

This works fine.

Now, for practical reasons, I want to deploy the assembly
as a cab file, but there is a problem.

To deploy it as a cab I followed the steps mentioned in
http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/mwsdk/html/mwconredirectin gtomobilewebapp lication.asp

1. Created the cab file called it test.cab (using
cabarc.exe)
2. Created a config file called test.dll.config as follows

<configuratio n>
<runtime>
<assemblyBindin g xmlns="urn:sche mas-microsoft-
com:asm.v1">
<dependentAssem bly>
<assemblyIdenti ty name="test"/>
<codeBase version="1.0.0. 0"
href="http://mypc/test.cab"/>
</dependentAssemb ly>
</assemblyBinding >
</runtime>
</configuration>

3. In the HTML I specified this config file
<link rel="Configurat ion"
href="http://mypc/test.dll.config "/>

4. I'm unsure about the object tag, so I tried the
following two cases
a. <OBJECT ID="myAssembly "
classid="test.d ll#testNS.Class 1"></OBJECT>
b. <OBJECT ID="myAssembly "
classid="test.c ab#testNS.Class 1"></OBJECT>

But neither worked.

The assembly is strong named. Any idea what I did wrong ?
How does one deploy an assembly in a cab file?

thanks
mqs

Nov 15 '05 #3

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

Similar topics

1
4203
by: Wilson Ricardo Passos Oliveira | last post by:
Hi fellows, I have two simple questions regarding the Framework's deploy and the Setup and Deploy Projects: 1. As I've read in another posts and newsgroups (and as I can imagine), VS.NET IDE isn't capable of create a setup and deploy project and, in a elegant way, during the setup process, detect the absence of the Framework. In this case, I'd like to run the Dotnetredist.exe file, first, and the
0
1502
by: mqsash | last post by:
Hi Problem : Unable to deploy an assembly in IE, as a cab file. (Works fine when deployed as a dll ) Description : I have created a assembly (dll with no user interface)in C# which I deploy in IE. The dll name is test.dll and the object tag in the html page is as follows. <OBJECT ID="myAssembly" classid="test.dll#testNS.Class1"></OBJECT>
1
430
by: Zeplynne | last post by:
There are several ways to deploy an assembly into the global assembly cache: 1) Use an installer designed to work with the global assembly cache. This is the preferred option for installing assemblies into the global assembly cache 2) Use a developer tool called the Global Assembly Cache tool (Gacutil.exe) provided by the .NET Framework SDK.
0
1637
by: ATS | last post by:
HOWTO Make a UserControl deploy an embedded resource. Please help, I need to embed an EXE into a C# UserControl that is run from script in an HTML web page as such: <html> <object id=objTest
0
1553
by: Ashutosh | last post by:
---------------------------------------------------------------------------- ---- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: File or assembly name Altiris.NS.SolutionsCommon, or one of its dependencies, was not found.
3
2383
by: AAA | last post by:
Hi, how could I deploy all my CF, SQLCE and my applicaiton .CAB file to pocket pc... I am now only able to run the msi setup file and install my application to my pocket pc, but I need to intall compact framework, opennetcf, and sqlce separentely. I am thinking if there is a way to run a setup file and install all the necessary components and files to pocket pc. I have done a search in google group. actually found 1 artcile talking...
3
17582
by: jensen bredal | last post by:
I have created a virtual directory for my webservice on iis 6 and i can browse the asmx file. But when i triy to invoke it, i get the following error:System.IO.FileNotFoundException: ? File name: "jgkvbdhy.dll" at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at...
0
1239
by: Mircea Pleteriu | last post by:
Hi, I will present you a virtual scenario. Here it is. Say, we develop a web app consisting in one page only. The page displays a culture-dependent text and a switch (as a dropdown list) to select one of 20 possible languages. Changing the language entails changing the text. At current time, the app supports only 5 cultures - having a resources file for each of the 5 cultures.
4
1708
by: meo | last post by:
Does .NET provide the way to deploy library to internal developer? I am trying to find the way to deploy a library file to developer for having integration to their application BUT the customer who is using that application will not use that library file. If I choose to deploy like a DLL file, the DLL file will deploy to the customer. I thought this is the easy way if customer copy DLL file to include to the project and use it.
0
9487
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9297
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10069
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9884
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 most users, this new feature is actually very convenient. If you want to control the update process,...
1
7285
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6556
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5168
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5324
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2697
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.