Unable to deploy an assembly in IE, as a cab file.

M

mqsash

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>

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/d...ml/mwconredirectingtomobilewebapplication.asp

1. Created the cab file called it test.cab (using cabarc.exe)
2. Created a config file called test.dll.config
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="test"/>
<codeBase version="1.0.0.0"
href="http://mypc/test.cab"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

3. In the HTML I specified this config file
<link rel="Configuration" 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.Class1"></OBJECT>
b. <OBJECT ID="myAssembly" classid="test.cab#testNS.Class1"></OBJECT>

But neither worked.

The assembly is strong named. Any idea what I did wrong ?

thanks
mqs
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top