Click here to Skip to main content
15,895,656 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Thread sync Pin
Albert Holguin13-Dec-11 3:21
professionalAlbert Holguin13-Dec-11 3:21 
AnswerRe: Thread sync Pin
Shameel21-Dec-11 2:47
professionalShameel21-Dec-11 2:47 
QuestionVisual Studio 2010 Pin
Gagnon Claude11-Dec-11 7:17
Gagnon Claude11-Dec-11 7:17 
AnswerRe: Visual Studio 2010 Pin
Pete O'Hanlon11-Dec-11 7:51
mvePete O'Hanlon11-Dec-11 7:51 
AnswerRe: Visual Studio 2010 Pin
Abhinav S11-Dec-11 18:30
Abhinav S11-Dec-11 18:30 
GeneralRe: Visual Studio 2010 Pin
Albert Holguin13-Dec-11 5:27
professionalAlbert Holguin13-Dec-11 5:27 
AnswerRe: Visual Studio 2010 Pin
Nolan Sunico15-Dec-11 15:42
Nolan Sunico15-Dec-11 15:42 
QuestionProblem with configuration reading Pin
Łukasz Nowakowski10-Dec-11 13:47
Łukasz Nowakowski10-Dec-11 13:47 
I have a problem with configuration files (Windows Forms application).
I'm developing an application, that is supposed to be using plug-ins. Plug-ins are enclosed into a dll, that is put into 'plugins' subdirectory in the application root. Each plug-in can have it's own setting, so to make it comfortable to use I want to have configuration of each plug-in in separate config file (for example when plugin1.dll needs some settings it is stored in the plugin1.dll.config).
I wanted to access configuration through the config section (I don't like the "settings" section and it doesn't work for some of my scenarios).
I have now class Plugins.Plugin1.Settings that derives from ConfigurationSection and a section in the app.config that points to this type. I point this type with fully qualified name (I mean with assembly name: 'Plugins.Plugin1.Settings, Plugins.Plugin1').
Everything seems fine. I copy Plugins.Plugin1.dll and Plugins.Plugin1.dll.config to 'plugins' directory and run the application. When I try to access settings I get exception saying, that there was an error creating configuration section module, because assembly Plugins.Plugin1 or one of it's dependencies could not be loaded.
Stupid thing about this (for me) is that the code, where exception is thrown from inside the Plugins.Plugin1 code.
I suppose the problem is that Plugins.Plugin1.dll isn't located inside 'bin', but inside subdirectory, but I can't throw it to bin, cause it isn't part of the main code, it's just an extension. How can I load data from this configuration file? Searched the web all day and didn't find anything usable... maybe I was asking Google the wrong questions Wink | ;-)
Don't forget to rate answer, that helped you. It will allow other people find their answers faster.

Questiontest question Pin
infobeena9-Dec-11 17:52
infobeena9-Dec-11 17:52 
AnswerRe: test question Pin
clientSurfer9-Dec-11 18:10
professionalclientSurfer9-Dec-11 18:10 
AnswerRe: test question Pin
Dave Kreskowiak9-Dec-11 19:05
mveDave Kreskowiak9-Dec-11 19:05 
GeneralRe: test question Pin
Rajesh Anuhya11-Dec-11 21:18
professionalRajesh Anuhya11-Dec-11 21:18 
AnswerRe: test question Pin
Luc Pattyn10-Dec-11 0:17
sitebuilderLuc Pattyn10-Dec-11 0:17 
AnswerRe: test question Pin
thatraja11-Dec-11 23:10
professionalthatraja11-Dec-11 23:10 
QuestionConverting ASP.Net to .Net 4.0 throws MSDTC error Pin
Melanie Peterson8-Dec-11 7:26
Melanie Peterson8-Dec-11 7:26 
AnswerRe: Converting ASP.Net to .Net 4.0 throws MSDTC error Pin
Brisingr Aerowing9-Dec-11 10:28
professionalBrisingr Aerowing9-Dec-11 10:28 
GeneralRe: Converting ASP.Net to .Net 4.0 throws MSDTC error Pin
Melanie Peterson13-Dec-11 6:34
Melanie Peterson13-Dec-11 6:34 
GeneralRe: Converting ASP.Net to .Net 4.0 throws MSDTC error Pin
Melanie Peterson14-Dec-11 5:21
Melanie Peterson14-Dec-11 5:21 
GeneralRe: Converting ASP.Net to .Net 4.0 throws MSDTC error Pin
Brisingr Aerowing14-Dec-11 5:41
professionalBrisingr Aerowing14-Dec-11 5:41 
GeneralRe: Converting ASP.Net to .Net 4.0 throws MSDTC error Pin
Melanie Peterson14-Dec-11 6:06
Melanie Peterson14-Dec-11 6:06 
GeneralRe: Converting ASP.Net to .Net 4.0 throws MSDTC error Pin
Melanie Peterson14-Dec-11 8:34
Melanie Peterson14-Dec-11 8:34 
AnswerRe: Converting ASP.Net to .Net 4.0 throws MSDTC error Pin
Melanie Peterson14-Dec-11 8:37
Melanie Peterson14-Dec-11 8:37 
SuggestionRe: Converting ASP.Net to .Net 4.0 throws MSDTC error Pin
Shameel11-Dec-11 18:40
professionalShameel11-Dec-11 18:40 
QuestionIs there any one who know Unibasic? Pin
Balakrishnan Dhinakaran7-Dec-11 2:14
professionalBalakrishnan Dhinakaran7-Dec-11 2:14 
AnswerRe: Is there any one who know Unibasic? Pin
Pete O'Hanlon7-Dec-11 2:52
mvePete O'Hanlon7-Dec-11 2:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.