Hi There,

I want to update wwwroot's config filoe for some assembly redirections. I have 
tried folloing approach to get it done.

The XML should be updated with :


<runtime>



<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

<dependentAssembly>

<assemblyIdentity name="MorganStanley.Infra.UI.IWS.ContextSharing" 
publicKeyToken="bac9c7307a596b58" />

<bindingRedirect oldVersion="1.0.0.0-3.5.5.0" newVersion="3.8.0.0" />

</dependentAssembly>

<dependentAssembly>

<assemblyIdentity name="MorganStanley.Infrastructure.AppFrame.Utility" 
publicKeyToken="bac9c7307a596b58" />

<bindingRedirect oldVersion="1.0.0.0-3.5.5.0" newVersion="3.8.0.0" />

</dependentAssembly>

</assemblyBinding>



<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" 
appliesTo="v2.0.50727">

<dependentAssembly>

<assemblyIdentity name="AFPage" publicKeyToken="13f27875e9d98997"/>

<bindingRedirect oldVersion="2.2.0.0-3.7.1.0" newVersion="3.7.2.0"/>

</dependentAssembly>

<dependentAssembly>

<assemblyIdentity name="MorganStanley.Infra.UI.IWS.ContextSharing" 
publicKeyToken="13f27875e9d98997"/>

<bindingRedirect oldVersion="1.0.0.0-3.5.4.0" newVersion="3.5.5.0"/>

</dependentAssembly>

</assemblyBinding>



</runtime>





WXS:



<!--Runtime-->

<util:XmlFile Id="node_runtime" File="[DESTINATION]web.config"

Action="createElement" ElementPath="/configuration"

Name="runtime" Sequence="1" />

<!--assembly binding for 1.1-->

<util:XmlFile Id="node_assemblyBinding_1.1" File="[DESTINATION]web.config"

Action="createElement" ElementPath="/configuration/runtime"

Name="assemblyBinding" Value="1.1" Sequence="2" />

<util:XmlFile Id="attrib_assemblyBinding_xmlns_1.1" Action="setValue"

File="[DESTINATION]web.config" 
ElementPath="/configuration/runtime/assemblyBinding"

Name="xmlns" Value="urn:schemas-microsoft-com:asm.v1" Sequence="3" />

<util:XmlFile Id="attrib_assemblyBinding_appliesTo_1.1" Action="setValue"

File="[DESTINATION]web.config" 
ElementPath="/configuration/runtime/assemblyBinding"

Name="appliesTo" Value="v1.1.4322" Sequence="4" />

<!--assembly binding for 2.0-->

<util:XmlFile Id="node_assemblyBinding_2.0" File="[DESTINATION]web.config"

Action="createElement" ElementPath="/configuration/runtime"

Name="assemblyBinding" Value="2.0" Sequence="5" />

<util:XmlFile Id="attrib_assemblyBinding_xmlns_2.0" Action="setValue"

File="[DESTINATION]web.config" 
ElementPath="/configuration/runtime/assemblyBinding"

Name="xmlns" Value="urn:schemas-microsoft-com:asm.v1" Sequence="6" />

<util:XmlFile Id="attrib_assemblyBinding_appliesTo_2.0" Action="setValue"

File="[DESTINATION]web.config" 
ElementPath="/configuration/runtime/assemblyBinding"

Name="appliesTo" Value="v2.0.50727" Sequence="7" />

<util:XmlFile Id="node_dependentAssembly" Action="createElement"

File="[DESTINATION]web.config" 
ElementPath="/configuration/runtime/assemblyBinding"

Name="dependentAssembly" Sequence="8" />



OUTPUT :



<runtime>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" 
appliesTo="v2.0.50727">1.1<dependentAssembly xmlns=""/></assemblyBinding>

<assemblyBinding>2.0</assemblyBinding>

</runtime



I am gettng the following error:



1) The first assembly redirection element has the attribute 
appliesTo="v2.0.50727", it should be v1.1.4322 instead.

2) While un-installing its giving the error "could not find the path 
="/configuration/runtime/assemblyBinding"



Please help me out and let me know the better approach to update the 
configuration file.





Thanks

Jass





________________________________
***The information transmitted is intended only for the person or entity to 
which it is addressed and may contain confidential and/or privileged material. 
Any review,retransmission,dissemination or other use of, or taking of any 
action in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, please contact 
the sender and delete the material from any computer.***
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to