473,378 Members | 1,280 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Deploying Strong-named Configuration Block project causing errors

I was able to compile (Debug) and reference an Configuration Block project
for my primary application "AppPrimary.exe". When I add a strong name file
to the Configuration Block project and recompile the projects my
"AppPrimary.exe" no longer works correctly.

I've noticed that when AppPrimary.exe runs with the Non-Strong-Named version
of the Config Block the following has the proper values (i.e.
Current.builder=
"{Microsoft.Practices.EnterpriseLibrary.Configurat ion.ConfigurationBuilder}" )

public static object GetConfiguration(string sectionName)
{
return Current.builder.ReadConfiguration(sectionName);
}

BUT
when AppPrimary.exe runs with the Strong-Named version of the Config Block
the Current.builder value is empty.

This causes errors to be thrown further down the line of the Config Block
library code.

Any help is greatly appreciated.
Thanks.
Nov 17 '05 #1
1 1335
Hi Robert,

My guess is when your configuration handler gets serialized, it includes
information on the assembly in which the handler is implemented. For
strong-named assemblies, the assembly name must include the public key
token.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"Robert N" <Ro*****@discussions.microsoft.com> wrote in message
news:AF**********************************@microsof t.com...
I was able to compile (Debug) and reference an Configuration Block project
for my primary application "AppPrimary.exe". When I add a strong name
file
to the Configuration Block project and recompile the projects my
"AppPrimary.exe" no longer works correctly.

I've noticed that when AppPrimary.exe runs with the Non-Strong-Named
version
of the Config Block the following has the proper values (i.e.
Current.builder=
"{Microsoft.Practices.EnterpriseLibrary.Configurat ion.ConfigurationBuilder}"
)

public static object GetConfiguration(string sectionName)
{
return Current.builder.ReadConfiguration(sectionName);
}

BUT
when AppPrimary.exe runs with the Strong-Named version of the Config Block
the Current.builder value is empty.

This causes errors to be thrown further down the line of the Config Block
library code.

Any help is greatly appreciated.
Thanks.


Nov 17 '05 #2

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

Similar topics

129
by: Torbjørn Pettersen | last post by:
I've started cleaning up my HTML and implementing CSS. So far I've used FrontPage, but am switching over to DreamWeaver. Reading a bit on W3Schools.com and W3.org I see there are a lot of HTML...
0
by: Sean Campbell | last post by:
Hi, My group have a ASP.NET based application ( currently running on 1.0.3705 ). Ideally, we would like to deploy new components(asp files/assemblies/db updates) into a live environment without...
2
by: Flip | last post by:
I am deploying webapps using XP (IIS5) and deploying them to a Windows 2003 Server box (IIS6). So far so good. However, when I try to manage my w2k3 server from XP, I get an error message saying...
4
by: john | last post by:
I think some of the changes to Asp.net are rediculous. Take the ability to deploy source code to production that is compiled on the fly. If this is such a great model, why not distribute your...
3
by: Mark Ingram | last post by:
Hi, what steps do i need to undertake before / when i deploy a c# application? Generate strong name key? Add the file to the GAC? What else?
8
by: per9000 | last post by:
Dear readers, I have some problems with strong keys. What I want to do is basically this. A - create an application (f.x. strongHello.dll) with a strong key. B - import the functions of this...
1
by: dfererer | last post by:
Dear all, I want to install and run ClickOnce Deploying application under a Windows Service,I have make the service starting the application successfully(user API...
0
by: Amit | last post by:
Hi,I am new to .net 2.0 and have just built one web application and deployed the application on web server. The problem which i am facing is that if i make any changes in the .cs files or aspx...
0
by: jimmarq | last post by:
I need reporting functionality in my app, but for several reasons, I don't want to have to package any DLL files in a setup. I want to deploy my application straight to a shared network drive with...
6
by: raylopez99 | last post by:
Anybody use Strong Name Signing? I think this is used by default for Resource files, which is one reason perhaps I can't get my resource files to work (somehow the public key is messed up, perhaps...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.