I'm working on this ComVisible class library that uses a third party component.This component needs some settings to be added to the config file.Since the application that uses my dll is a VB 6 application I don't know where should I put the config file? is there anyway that we can load a config file at runtime?
How I can use an app.config file with a comvisible class library?
1k Views Asked by Beatles1692 At
2
There are 2 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in APP-CONFIG
- What is the correct way to use app.config for my plugin when using MEF?
- c# - Entity Framework ConnectionString won't update after changing App.Config in runtime
- Good practise of storing and using AppConfig class among WPF MVVM application
- Can't reference a variable from App.config
- NUnit GUI is not finding the app.config file
- app.config custom configuration - 'System.TypeInitializationException'
- I would like to know how to load config so it would work both in test project and during application runtime
- Configuration change after nuget packages update
- Saving to mailSettings in App.Config in .net wf application
- Enable directory browsing in WCF
- Understanding App.config and using Configuration Manager: GetSection vs. ConnectionString
- Why are my application settings retrieving different values to the ones I expect?
- What is correct approach to handle parameters read from config file?
- Can you share a web config from an ASP.NET application with a unit testing project
- i have used app.config and the connection are mentioned in connectionclass1.cs but it show the error the string contain null value
Related Questions in CLASS-LIBRARY
- Calling "Form" class method from "A" class without adding a reference to the "Form" class
- class library application not using the app.config file
- Automatically update references visual studio
- Move code to DLL out of Windows Store app if it uses full-framework library?
- .NET Core Class Library with NLog targeting .Net 4.6.1
- Virtual Path Provider with embedded resource Asp.Net MVC as class library
- Cannot use built in Identity classes with database-first development
- FxCop Analysis with .Netcore library failed in VS2015 update 3
- Two libraries referencing the same DLL
- How to access the methods in .lib file in Win 32 console application
- C# Class Library
- Set a custom application Icon for a Class Library deployed using ClickOnce
- End Using SqlConnection Kills my global sqlConnection connection string
- how to Pass C++ Object to C# Class Library
- Azure Function reference in classlibrary
Related Questions in COMVISIBLE
- ObjectForScripting with multiple Interfaces not working
- ClickOnce application deployment and .NET COM visible dll registration
- How to access an excel Add-In String parameter from excel workbook VSTO
- Passing Dictionary to ObjectForScripting with WPF WebBrowser
- How to pass Delphi empty string to com visible .net assembly
- Class not registered error from PHP
- How I can use an app.config file with a comvisible class library?
- RegAsm - When is the /codebase option applicable?
- Passing array of string from Delphi 7 to COM Visible C# .net DLL
- Marshal.ReleaseComObject throws exception
- Debug com visible dll managed code
- .NET: Make an object and all of its subordinate objects COM visible
- Is there any point in specifying a Guid when using ComVisible(false)?
- Making .NET assembly COM-visible and working for VB5
- How to Instantiate a ComVisible Class into Its Own AppDomain in a Single-Threaded Client?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can put the app.config in the same directory as the VB6 app (named (yourapp).exe.config). If you want to load it at runtime, you'll have to write an unmanaged shim that starts the CLR and loads your managed code in a new appdomain- then you can tell it to load whatever config file you want for the new appdomain. This is a pain though (having done it a few times)... There are some options for managed shims as well (see the AppDomainManager class for details).