473,762 Members | 6,570 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Configuration files for Services and Class Libraries

I have the need to store some application specific configuration data to be
used by a class library and or a windows service. I would like to do this
in a fashion similar to the way we do with applications and web services
without having to use the machine.config file.

I know that I could use the code below to do this but the problem then
becomes that when using a shared assembly both the assembly and the config
file need to be put in the GAC. I do not want operations to have to GAC
after changes to the config.

Any advice, links or samples would be greatly appreciated. Thank you.

using System;

using System.Reflecti on;

using System.Collecti ons;

using System.Xml;

using System.Configur ation;

// AssemblySetting s usage:

//

// If you know the keys you're after, the following is probably

// the most convenient:

//

// AssemblySetting s settings = new AssemblySetting s();

// string someSetting1 = settings["someKey1"];

// string someSetting2 = settings["someKey2"];

//

// If you want to enumerate over the settings (or just as an

// alternative approach), you can do this too:

//

// IDictionary settings = AssemblySetting s.GetConfig();

//

// foreach( DictionaryEntry entry in settings )

// {

// // Use entry.Key or entry.Value as desired...

// }

//

// In either of the above two scenarios, the calling assembly

// (the one that called the constructor or GetConfig) is used

// to determine what file to parse and what the name of the

// settings collection element is. For example, if the calling

// assembly is c:\foo\bar\Test Lib.dll, then the configuration file

// that's parsed is c:\foo\bar\Test Lib.dll.config, and the

// configuration section that's parsed must be named <assemblySettin gs>.

//

// To retrieve the configuration information for an arbitrary assembly,

// use the overloaded constructor or GetConfig method that takes an

// Assembly reference as input.

//

// If your assembly is being automatically downloaded from a web

// site by an "href-exe" (an application that's run directly from a link

// on a web page), then the enclosed web.config shows the mechanism

// for allowing the AssemblySetting s library to download the

// configuration files you're using for your assemblies (while not

// allowing web.config itself to be downloaded).

//

// If the assembly you are trying to use this with is installed in, and
loaded

// from, the GAC then you'll need to place the config file in the GAC
directory where

// the assembly is installed. On the first release of the CLR, this
directory is

// <windir>\assemb ly\gac\libName\ verNum__pubKeyT oken]]>. For example,

// the assembly "SomeLib, Version=1.2.3.4 , Culture=neutral ,
PublicKeyToken= abcd1234"

// would be installed to the c:\winnt\assemb ly\gac\SomeLib\ 1.2.3.4__abcd12 34
diretory

// (assuming the OS is installed in c:\winnt). For future versions of the
CLR, this

// directory scheme may change, so you'll need to check the
<code>CodeBas e</code> property

// of a GAC-loaded assembly in the debugger to determine the correct
directory location.

//

public class AssemblySetting s

{

private IDictionary settings;

public AssemblySetting s()

: this(Assembly.G etCallingAssemb ly())

{

}

public AssemblySetting s( Assembly asm )

{

settings = GetConfig(asm);

}

public string this[ string key ]

{

get

{

string settingValue = null;

if( settings != null )

{

settingValue = settings[key] as string;

}

return(settingV alue == null ? "" : settingValue);

}

}

public static IDictionary GetConfig()

{

return GetConfig(Assem bly.GetCallingA ssembly());

}

public static IDictionary GetConfig( Assembly asm )

{

// Open and parse configuration file for specified

// assembly, returning collection to caller for future

// use outside of this class.

//

try

{

string cfgFile = asm.CodeBase + ".config";

const string nodeName = "assemblySettin gs";

XmlDocument doc = new XmlDocument();

doc.Load(new XmlTextReader(c fgFile));

XmlNodeList nodes = doc.GetElements ByTagName(nodeN ame);

foreach( XmlNode node in nodes )

{

if( node.LocalName == nodeName )

{

DictionarySecti onHandler handler = new
DictionarySecti onHandler();

return (IDictionary)ha ndler.Create(nu ll, null, node);

}

}

}

catch (Exception e)

{

Console.WriteLi ne ("Error: " + e.Message);

}

return(null);

}

}
Nov 16 '05 #1
3 2881
Florida,

Quite simply, you can not do what you want. With Services, you can,
because they are the managed entry point for an application. However, for
class libraries, since they are loaded by an application, they are subject
to the configuration of that application.

Basically, if your class libraries have configuration options that need
to be set, you need to retrieve them separately from a well known location.
Either that, or you should depend on the settings being in the configuration
of the application, defaulting to something else if they are not available.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Florida Coder" <No****@Florida Development.com > wrote in message
news:e1******** *****@TK2MSFTNG P11.phx.gbl...
I have the need to store some application specific configuration data to be
used by a class library and or a windows service. I would like to do this
in a fashion similar to the way we do with applications and web services
without having to use the machine.config file.

I know that I could use the code below to do this but the problem then
becomes that when using a shared assembly both the assembly and the config
file need to be put in the GAC. I do not want operations to have to GAC
after changes to the config.

Any advice, links or samples would be greatly appreciated. Thank you.

using System;

using System.Reflecti on;

using System.Collecti ons;

using System.Xml;

using System.Configur ation;

// AssemblySetting s usage:

//

// If you know the keys you're after, the following is probably

// the most convenient:

//

// AssemblySetting s settings = new AssemblySetting s();

// string someSetting1 = settings["someKey1"];

// string someSetting2 = settings["someKey2"];

//

// If you want to enumerate over the settings (or just as an

// alternative approach), you can do this too:

//

// IDictionary settings = AssemblySetting s.GetConfig();

//

// foreach( DictionaryEntry entry in settings )

// {

// // Use entry.Key or entry.Value as desired...

// }

//

// In either of the above two scenarios, the calling assembly

// (the one that called the constructor or GetConfig) is used

// to determine what file to parse and what the name of the

// settings collection element is. For example, if the calling

// assembly is c:\foo\bar\Test Lib.dll, then the configuration file

// that's parsed is c:\foo\bar\Test Lib.dll.config, and the

// configuration section that's parsed must be named <assemblySettin gs>.

//

// To retrieve the configuration information for an arbitrary assembly,

// use the overloaded constructor or GetConfig method that takes an

// Assembly reference as input.

//

// If your assembly is being automatically downloaded from a web

// site by an "href-exe" (an application that's run directly from a link

// on a web page), then the enclosed web.config shows the mechanism

// for allowing the AssemblySetting s library to download the

// configuration files you're using for your assemblies (while not

// allowing web.config itself to be downloaded).

//

// If the assembly you are trying to use this with is installed in, and
loaded

// from, the GAC then you'll need to place the config file in the GAC
directory where

// the assembly is installed. On the first release of the CLR, this
directory is

// <windir>\assemb ly\gac\libName\ verNum__pubKeyT oken]]>. For example,

// the assembly "SomeLib, Version=1.2.3.4 , Culture=neutral ,
PublicKeyToken= abcd1234"

// would be installed to the
c:\winnt\assemb ly\gac\SomeLib\ 1.2.3.4__abcd12 34
diretory

// (assuming the OS is installed in c:\winnt). For future versions of the
CLR, this

// directory scheme may change, so you'll need to check the
<code>CodeBas e</code> property

// of a GAC-loaded assembly in the debugger to determine the correct
directory location.

//

public class AssemblySetting s

{

private IDictionary settings;

public AssemblySetting s()

: this(Assembly.G etCallingAssemb ly())

{

}

public AssemblySetting s( Assembly asm )

{

settings = GetConfig(asm);

}

public string this[ string key ]

{

get

{

string settingValue = null;

if( settings != null )

{

settingValue = settings[key] as string;

}

return(settingV alue == null ? "" : settingValue);

}

}

public static IDictionary GetConfig()

{

return GetConfig(Assem bly.GetCallingA ssembly());

}

public static IDictionary GetConfig( Assembly asm )

{

// Open and parse configuration file for specified

// assembly, returning collection to caller for future

// use outside of this class.

//

try

{

string cfgFile = asm.CodeBase + ".config";

const string nodeName = "assemblySettin gs";

XmlDocument doc = new XmlDocument();

doc.Load(new XmlTextReader(c fgFile));

XmlNodeList nodes = doc.GetElements ByTagName(nodeN ame);

foreach( XmlNode node in nodes )

{

if( node.LocalName == nodeName )

{

DictionarySecti onHandler handler = new
DictionarySecti onHandler();

return (IDictionary)ha ndler.Create(nu ll, null, node);

}

}

}

catch (Exception e)

{

Console.WriteLi ne ("Error: " + e.Message);

}

return(null);

}

}

Nov 16 '05 #2
Mike Woodring wrote someting that does what you're after. Check out:

http://www.bearcanyon.com/dotnet/#AssemblySettings

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog

nntp://news.microsoft. com/microsoft.publi c.dotnet.langua ges.csharp/<uL************ **@TK2MSFTNGP15 .phx.gbl>

Florida,

Quite simply, you can not do what you want. With Services, you can,
because they are the managed entry point for an application. However, for
class libraries, since they are loaded by an application, they are subject
to the configuration of that application.

Basically, if your class libraries have configuration options that need
to be set, you need to retrieve them separately from a well known location.
Either that, or you should depend on the settings being in the configuration
of the application, defaulting to something else if they are not available.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Florida Coder" <No****@Florida Development.com > wrote in message
news:e1******** *****@TK2MSFTNG P11.phx.gbl...
I have the need to store some application specific configuration data to be
used by a class library and or a windows service. I would like to do this
in a fashion similar to the way we do with applications and web services
without having to use the machine.config file.

I know that I could use the code below to do this but the problem then
becomes that when using a shared assembly both the assembly and the config
file need to be put in the GAC. I do not want operations to have to GAC
after changes to the config.

Any advice, links or samples would be greatly appreciated. Thank you.

using System;

using System.Reflecti on;

using System.Collecti ons;

using System.Xml;

using System.Configur ation;

// AssemblySetting s usage:

//

// If you know the keys you're after, the following is probably

// the most convenient:

//

// AssemblySetting s settings = new AssemblySetting s();

// string someSetting1 = settings["someKey1"];

// string someSetting2 = settings["someKey2"];

//

// If you want to enumerate over the settings (or just as an

// alternative approach), you can do this too:

//

// IDictionary settings = AssemblySetting s.GetConfig();

//

// foreach( DictionaryEntry entry in settings )

// {

// // Use entry.Key or entry.Value as desired...

// }

//

// In either of the above two scenarios, the calling assembly

// (the one that called the constructor or GetConfig) is used

// to determine what file to parse and what the name of the

// settings collection element is. For example, if the calling

// assembly is c:\foo\bar\Test Lib.dll, then the configuration file

// that's parsed is c:\foo\bar\Test Lib.dll.config, and the

// configuration section that's parsed must be named <assemblySettin gs>.

//

// To retrieve the configuration information for an arbitrary assembly,

// use the overloaded constructor or GetConfig method that takes an

// Assembly reference as input.

//

// If your assembly is being automatically downloaded from a web

// site by an "href-exe" (an application that's run directly from a link

// on a web page), then the enclosed web.config shows the mechanism

// for allowing the AssemblySetting s library to download the

// configuration files you're using for your assemblies (while not

// allowing web.config itself to be downloaded).

//

// If the assembly you are trying to use this with is installed in, and
loaded

// from, the GAC then you'll need to place the config file in the GAC
directory where

// the assembly is installed. On the first release of the CLR, this
directory is

// <windir>\assemb ly\gac\libName\ verNum__pubKeyT oken]]>. For example,

// the assembly "SomeLib, Version=1.2.3.4 , Culture=neutral ,
PublicKeyToken= abcd1234"

// would be installed to the
c:\winnt\assemb ly\gac\SomeLib\ 1.2.3.4__abcd12 34
diretory

// (assuming the OS is installed in c:\winnt). For future versions of the
CLR, this

// directory scheme may change, so you'll need to check the
<code>CodeBas e</code> property

// of a GAC-loaded assembly in the debugger to determine the correct
directory location.

//

public class AssemblySetting s

{

private IDictionary settings;

public AssemblySetting s()

: this(Assembly.G etCallingAssemb ly())

{

}

public AssemblySetting s( Assembly asm )

{

settings = GetConfig(asm);

}

public string this[ string key ]

{

get

{

string settingValue = null;

if( settings != null )

{

settingValue = settings[key] as string;

}

return(settingV alue == null ? "" : settingValue);

}

}

public static IDictionary GetConfig()

{

return GetConfig(Assem bly.GetCallingA ssembly());

}

public static IDictionary GetConfig( Assembly asm )

{

// Open and parse configuration file for specified

// assembly, returning collection to caller for future

// use outside of this class.

//

try

{

string cfgFile = asm.CodeBase + ".config";

const string nodeName = "assemblySettin gs";

XmlDocument doc = new XmlDocument();

doc.Load(new XmlTextReader(c fgFile));

XmlNodeList nodes = doc.GetElements ByTagName(nodeN ame);

foreach( XmlNode node in nodes )

{

if( node.LocalName == nodeName )

{

DictionarySecti onHandler handler = new
DictionarySecti onHandler();

return (IDictionary)ha ndler.Create(nu ll, null, node);

}

}

}

catch (Exception e)

{

Console.WriteLi ne ("Error: " + e.Message);

}

return(null);

}

}


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.760 / Virus Database: 509 - Release Date: 10/09/2004

[microsoft.publi c.dotnet.langua ges.csharp]
Nov 16 '05 #3
Saw that and included it in my post. The problem with it is that I would
need to GAC the config file as well and I was hoping to avoid that. Thank
you.

"Richard Blewett [DevelopMentor]" <ri******@devel op.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Mike Woodring wrote someting that does what you're after. Check out:

http://www.bearcanyon.com/dotnet/#AssemblySettings

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog

nntp://news.microsoft. com/microsoft.publi c.dotnet.langua ges.csharp/<uL************ **@TK2MSFTNGP15 .phx.gbl>
Florida,

Quite simply, you can not do what you want. With Services, you can,
because they are the managed entry point for an application. However, for
class libraries, since they are loaded by an application, they are subject to the configuration of that application.

Basically, if your class libraries have configuration options that need
to be set, you need to retrieve them separately from a well known location. Either that, or you should depend on the settings being in the configuration of the application, defaulting to something else if they are not available.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Florida Coder" <No****@Florida Development.com > wrote in message
news:e1******** *****@TK2MSFTNG P11.phx.gbl...
>I have the need to store some application specific configuration data to be > used by a class library and or a windows service. I would like to do this > in a fashion similar to the way we do with applications and web services > without having to use the machine.config file.
>
>
>
> I know that I could use the code below to do this but the problem then
> becomes that when using a shared assembly both the assembly and the config > file need to be put in the GAC. I do not want operations to have to GAC
> after changes to the config.
>
>
>
> Any advice, links or samples would be greatly appreciated. Thank you.
>
>
>
>
>
> using System;
>
> using System.Reflecti on;
>
> using System.Collecti ons;
>
> using System.Xml;
>
> using System.Configur ation;
>
>
>
> // AssemblySetting s usage:
>
> //
>
> // If you know the keys you're after, the following is probably
>
> // the most convenient:
>
> //
>
> // AssemblySetting s settings = new AssemblySetting s();
>
> // string someSetting1 = settings["someKey1"];
>
> // string someSetting2 = settings["someKey2"];
>
> //
>
> // If you want to enumerate over the settings (or just as an
>
> // alternative approach), you can do this too:
>
> //
>
> // IDictionary settings = AssemblySetting s.GetConfig();
>
> //
>
> // foreach( DictionaryEntry entry in settings )
>
> // {
>
> // // Use entry.Key or entry.Value as desired...
>
> // }
>
> //
>
> // In either of the above two scenarios, the calling assembly
>
> // (the one that called the constructor or GetConfig) is used
>
> // to determine what file to parse and what the name of the
>
> // settings collection element is. For example, if the calling
>
> // assembly is c:\foo\bar\Test Lib.dll, then the configuration file
>
> // that's parsed is c:\foo\bar\Test Lib.dll.config, and the
>
> // configuration section that's parsed must be named <assemblySettin gs>. >
> //
>
> // To retrieve the configuration information for an arbitrary assembly,
>
> // use the overloaded constructor or GetConfig method that takes an
>
> // Assembly reference as input.
>
> //
>
> // If your assembly is being automatically downloaded from a web
>
> // site by an "href-exe" (an application that's run directly from a link >
> // on a web page), then the enclosed web.config shows the mechanism
>
> // for allowing the AssemblySetting s library to download the
>
> // configuration files you're using for your assemblies (while not
>
> // allowing web.config itself to be downloaded).
>
> //
>
> // If the assembly you are trying to use this with is installed in, and
> loaded
>
> // from, the GAC then you'll need to place the config file in the GAC
> directory where
>
> // the assembly is installed. On the first release of the CLR, this
> directory is
>
> // <windir>\assemb ly\gac\libName\ verNum__pubKeyT oken]]>. For example,
>
> // the assembly "SomeLib, Version=1.2.3.4 , Culture=neutral ,
> PublicKeyToken= abcd1234"
>
> // would be installed to the
> c:\winnt\assemb ly\gac\SomeLib\ 1.2.3.4__abcd12 34
> diretory
>
> // (assuming the OS is installed in c:\winnt). For future versions of the > CLR, this
>
> // directory scheme may change, so you'll need to check the
> <code>CodeBas e</code> property
>
> // of a GAC-loaded assembly in the debugger to determine the correct
> directory location.
>
> //
>
>
>
> public class AssemblySetting s
>
> {
>
> private IDictionary settings;
>
>
>
> public AssemblySetting s()
>
> : this(Assembly.G etCallingAssemb ly())
>
> {
>
> }
>
>
>
> public AssemblySetting s( Assembly asm )
>
> {
>
> settings = GetConfig(asm);
>
> }
>
>
>
> public string this[ string key ]
>
> {
>
> get
>
> {
>
> string settingValue = null;
>
>
>
> if( settings != null )
>
> {
>
> settingValue = settings[key] as string;
>
> }
>
>
>
> return(settingV alue == null ? "" : settingValue);
>
> }
>
> }
>
>
>
> public static IDictionary GetConfig()
>
> {
>
> return GetConfig(Assem bly.GetCallingA ssembly());
>
> }
>
>
>
> public static IDictionary GetConfig( Assembly asm )
>
> {
>
> // Open and parse configuration file for specified
>
> // assembly, returning collection to caller for future
>
> // use outside of this class.
>
> //
>
> try
>
> {
>
> string cfgFile = asm.CodeBase + ".config";
>
> const string nodeName = "assemblySettin gs";
>
>
>
> XmlDocument doc = new XmlDocument();
>
> doc.Load(new XmlTextReader(c fgFile));
>
>
>
> XmlNodeList nodes = doc.GetElements ByTagName(nodeN ame);
>
>
>
> foreach( XmlNode node in nodes )
>
> {
>
> if( node.LocalName == nodeName )
>
> {
>
> DictionarySecti onHandler handler = new
> DictionarySecti onHandler();
>
> return (IDictionary)ha ndler.Create(nu ll, null, node);
>
> }
>
> }
>
> }
>
> catch (Exception e)
>
> {
>
> Console.WriteLi ne ("Error: " + e.Message);
>
> }
>
>
>
> return(null);
>
> }
>
> }
>
>


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.760 / Virus Database: 509 - Release Date: 10/09/2004

[microsoft.publi c.dotnet.langua ges.csharp]

Nov 16 '05 #4

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

Similar topics

2
3463
by: kathy | last post by:
What Application Configuration File is? And when/where/how to use it? Any documents on that? MSDN has somrthings scatter everywhere - hard to follow. thanks,
12
2603
by: Angelos Karantzalis | last post by:
Is there a way to set Permissions based on user roles by using some configuration file for my application ? I'm coming from a Java background, where that could very easily be accomplished but although I've searched around MSDN I can't find a clear answer to this ... Thanks a lot guys, Angel
3
6062
by: Steverino | last post by:
Hi, I'm currently trying to learn DB2. I have the following version below installed on my server machine on my little LAN. However when I try to connect to it from my client machine, I receive the following error: CLI0621E Unsupported JDBC server configuration. Everything I've read on the net though pertains to a Unix based setup
1
2904
by: TT (Tom Tempelaere) | last post by:
Hey everyone, I'm currently writing software for a project that uses a lot of Xml files for configuration. The project is written in C#/.NET. Each such xml file has a schema defined for it (Xsd file). This schema is not used at run-time. What we do is use XPath expressions to query for required information (nodes). We are currently still in development, but we have a few deployments to test the software. These deployments each have...
26
1904
by: Mr Newbie | last post by:
What do I need to run a web service on my PC ? I know I need the .NET Framework, but do I need IIS Running ?
1
1809
by: herbert | last post by:
In VS.2005 a Windows Service can have an app.config file. A class library can also have an app.config file. Now if my Windows Services uses three class libraries, each of it coming with its own app.config file, in which sequence are the app config files read in? eg What happens if there are trace switches of the same name with different values in those files? Or a the config files local to a VS project/assembly ? If so, they should not...
0
2509
by: metaperl | last post by:
A Comparison of Python Class Objects and Init Files for Program Configuration ============================================================================= Terrence Brannon bauhaus@metaperl.com http://www.livingcosmos.org/Members/sundevil/python/articles/a-comparison-of-python-class-objects-and-init-files-for-program-configuration/view
7
10323
by: Peter Bradley | last post by:
OK. A bit behind the times, I know; but we're just moving over to .NET 2.0. How on earth do you manage configuration settings in a class library in .NET 2.0? In version 1.1, we used a handy class called AssemblySettings that someone (I forget his name) had written. When the class library was finished, you deployed it to the GAC and put the configuration files in the GAC with the class library assembly. This no longer works. In fact...
8
3182
by: Bill McCormick | last post by:
<!-- When deploying the service library project, the content of the config file must be added to the host's app.config file. System.Configuration does not support config files for libraries. --> I assume "libraries" here to mean DLL's. If that's the case, is there any way to supply both ends of a service (client and host) with the code for the class that describes the contact WITHOUT a duplication in source code? Thanks.
0
9378
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
10137
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...
0
9989
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9812
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8814
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6640
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
5268
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...
1
3914
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.