By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,200 Members | 1,593 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,200 IT Pros & Developers. It's quick & easy.

How to use application configuration file?

P: n/a
Hi,
How do I use a configuration file with <codebase> to
deploy a C# assembly as a cab file (in an html) ?

The config file has the <codebase> element which points to
the proper cab file. The html page and the cab file are in
the same location.
But upon invoking the html page nothing happens.
Even the FusLogvw.exe does not register anything.
Any help will be much appreciated.

The complete assembly is as simple as this
using System;
using System.Windows.Forms;
namespace testAssemblyNS
{
public class Class1
{
public Class1()
{
MessageBox.Show("ctor");
}
}
}
here is the complete html
<html>
<HEAD>
<Link rel="configuration"
href="http://samir2k/csharp/testAssembly.dll.config"/>
</HEAD>
<body >
<OBJECT ID="myAssembly"
classid="testAssembly.dll#testAssemblyNS.Class1">
</OBJECT>
testAssembly
</body> </html>

here is the config file
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-
com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="testAssembly"/>
<codeBase version="1.0.0.0"
href="http://samir2k/csharp/testAssembly.cab"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

TIA
mqs
Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
check
http://support.microsoft.com/default...&Product=vcSne
t
"mqsash" <mq****@rediffmail.com> wrote in message
news:08****************************@phx.gbl...
Hi,
How do I use a configuration file with <codebase> to
deploy a C# assembly as a cab file (in an html) ?

The config file has the <codebase> element which points to
the proper cab file. The html page and the cab file are in
the same location.
But upon invoking the html page nothing happens.
Even the FusLogvw.exe does not register anything.
Any help will be much appreciated.

The complete assembly is as simple as this
using System;
using System.Windows.Forms;
namespace testAssemblyNS
{
public class Class1
{
public Class1()
{
MessageBox.Show("ctor");
}
}
}
here is the complete html
<html>
<HEAD>
<Link rel="configuration"
href="http://samir2k/csharp/testAssembly.dll.config"/>
</HEAD>
<body >
<OBJECT ID="myAssembly"
classid="testAssembly.dll#testAssemblyNS.Class1">
</OBJECT>
testAssembly
</body> </html>

here is the config file
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-
com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="testAssembly"/>
<codeBase version="1.0.0.0"
href="http://samir2k/csharp/testAssembly.cab"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

TIA
mqs

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.