Hi,
I have an application that consists of multiple strong-named assemblies
like:
App.exe references Utils.dll (for simplicities sake)
All assemblies are strong-named, but not GAC'd (private assemblies).
My goal is that once I have deployed App.exe, I want to deploy a bugfix
in Utils.dll and redeploy this dependent assembly _without_ redeploying
App.exe.
Let's assume the interface of the types in Utils.dll have not changed.
I thought that I could redeploy my new strong-named Utils.dll along
with an codebase directive in App.exe.config redirecting to the new
assembly to use (and ignore the old one). E.g:
<configuratio n>
<runtime>
<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
<dependentAssem bly>
<assemblyIdenti ty name="Utils"
publicKeyToken= "f6a8ba1bc21a01 be"/>
<codeBase version="1.0.20 81.19103" href="file://c:/program
files/myapp/hotfix/20050909/Utils.dll"/.
</dependentAssemb ly>
</assemblyBinding >
</runtime>
<configuratio n>
I don't get this to work. The error message I get is:
"The located assembly's manifest definition with name 'Utils' does not
match the assembly reference."
Quite frankly I'm not sure if redirecting assembly bindings work at all
for strong-named assemblies or only work for weakly-named assemblies.
Can anyone help me out here?
Thanks
-Stefan 4 2328
asp.net does not support codebase directives.
-- bruce (sqlwork.com)
"Stefan" <Cl*********@gm ail.com> wrote in message
news:11******** *************@f 14g2000cwb.goog legroups.com... Hi,
I have an application that consists of multiple strong-named assemblies like:
App.exe references Utils.dll (for simplicities sake)
All assemblies are strong-named, but not GAC'd (private assemblies).
My goal is that once I have deployed App.exe, I want to deploy a bugfix in Utils.dll and redeploy this dependent assembly _without_ redeploying App.exe.
Let's assume the interface of the types in Utils.dll have not changed. I thought that I could redeploy my new strong-named Utils.dll along with an codebase directive in App.exe.config redirecting to the new assembly to use (and ignore the old one). E.g:
<configuratio n> <runtime> <assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1"> <dependentAssem bly> <assemblyIdenti ty name="Utils" publicKeyToken= "f6a8ba1bc21a01 be"/> <codeBase version="1.0.20 81.19103" href="file://c:/program files/myapp/hotfix/20050909/Utils.dll"/. </dependentAssemb ly> </assemblyBinding > </runtime> <configuratio n>
I don't get this to work. The error message I get is:
"The located assembly's manifest definition with name 'Utils' does not match the assembly reference."
Quite frankly I'm not sure if redirecting assembly bindings work at all for strong-named assemblies or only work for weakly-named assemblies.
Can anyone help me out here? Thanks -Stefan
Does it support bindingRedirect ?
i believe so, but there can only be one version of the dll in the bin
folder. the .net model is to just drop the updated dll into the bin folder,
and the site reloads with the new code, while current requests run with the
old dll. asp.net copies the bin folder to a shadow directory (which the code
actually runs from), so that the dll will not be in use.
also unless you are worried about malious updates of your dll, there is no
need for strong names either.
-- bruce (sqlwork.com)
"Stefan" <Cl*********@gm ail.com> wrote in message
news:11******** *************@o 13g2000cwo.goog legroups.com... Does it support bindingRedirect ?
Thanks, Bruce. I got it working with bindingRedirect .
The shadow copying happens after the dependency has been resolved
(which is when the bindingRedirect comes into play)
And yes, without the strongnaming everything would be much simpler by
just copying the assemblies
in the bin folder. But there is no way around for me to not strong-name
the assemblies
(since they are also used in other scenarios other than asp.net apps
which require strong-naming). This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: DrewM |
last post by:
I'm sure this isn't difficult, but it's Friday afternoon (!).
I'm trying to use a regular expression to match html tags in a string
and convert them to lower case. It's the RegExp object that I'm
struggling with rather then expression syntax.
So far I have this ('HELP!' denotes where I'm stuck):
private function recoverHTML(sHtml)
dim oRegExp
|
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 code I never even knew existed. Among these are <em> and
<strong>. What's the difference between these two and <i> and <b>?
--
Torbjørn Pettersen
Editor/Webmaster
|
by: Andrew Poulos |
last post by:
Say I have a page, which has been created by a third party, and the page
may contain some pre-specified text. How can I find and replace that
text dynamically? For example, if the page I have contains this HTML:
<div id=”oDiv” style="margin-bottom:10px;">{when}</div>
<div>
<table style="border:1px solid gray">
<tr>
<td>blah</td>
|
by: Terry |
last post by:
Hi,
Using javascript, I would like to replace the contents of a DIV with
new, arbitrary HTML markup. I want to write a W3C-compliant function
for doing so; it would look something like this:
function changeContents(divElement, htmlMarkup)
{
// divElement: an existing DIV object reference
// htmlMarkup: new HTML markup to replace whatever is there
}
|
by: miroslaw.rusin |
last post by:
Hi mates! :)
The challange is like this: how to replace only one element in the
whole tree to something else?
Example:
Input:
<?xml version="1.0"?>
<html>
| |
by: godrifle |
last post by:
I hope this is the best way to explain what I'm trying to do, using PHP5.
Given the following HTML sample...
<html><head><title>The Page</title></head>
<body>
<h2>A Title</h2>
<img alt="zfMs|SCRIPTURE|1COL1ROW" src="./scripture.gif" style="left: 507px; position: absolute; top: 85px;" />
<p><strong>Some descriptive text</strong></p>
<img src="this.gif" alt="An image" />
|
by: cma6 |
last post by:
I have a page which uses tables for layout http://www.vintagetextile.com/1920s_to_1930s.htm
The checkerboard pattern is achieved with this markup:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>1920s to 1930s high-style Vintage Clothing at Vintage Textile</title>
|
by: Oltmans |
last post by:
Hi,
I'm new to Python (and admittedly not a very good programmer) and I've
come across a scenario where I've to search and replace text in a
file.
For the sake of an example, I'm searching for every occurence of the
text
http://www.hotmail.com -Hotmail]]
|
by: Jens |
last post by:
Hi everyone,
I'm trying to build a simple dropdown menu for a website and i need to
need a way to retrieve
the top and left style attributes of an object. However it seems style
attributes like style.top
a not always available, depeding, i think, on whether the object in
question is positioned relatively or absolutely.
I've been able to use event.pageX and event.pageY with some success,
|
by: TamusJRoyce |
last post by:
I have xsl code which I was hoping could be used to replace one specific tag from an xhtml document and output another xhtml document.
xsl has phenomenal potential in data replacing, but coming from C/C++ background, it looks like a functional language I'm not familiar with.
Here's the link to where I got the code (thanks goes to the author), but I don't have a strong enough background in xsl to tell what is going on.
xslfile.xsl ...
|
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,...
| |
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |