Thursday, March 22, 2012

Working with type in configuration section with VS2006

I try to make some code for configurating my app. I use the example on msdn :http://msdn2.microsoft.com/2tw134k3(en-US,VS.80).aspxIt is a simple how-to for using Custom Configuration Sections.My problem is in in this part :In the attribute field 'type' of a section you need to make a reference to the assemblyname. In the new ASP.NET model there are a lot of seperate assembly names. So i dont know what to use at that position. I've been looking too assembly merge in Web project file for 2006 and merge option in deploy. I am wandering if that is the best solution. Can someone clear my sky?Greetings RenéAmsterdamYou can solve it by use the web application project. In properties you can name the assembly.

Are there solution within the new model?
I found a better solution. I added a new class library project on my existing project in visual studio for hamd;ing the config. Then i made a project reference. Because the class library project generates one assembly and can name it, i can refer the name in the web.config section 'type'part.

this works so far ! i gotta test this new approach.Big Smile [:D]

0 comments:

Post a Comment