473,405 Members | 2,404 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,405 software developers and data experts.

VS2005 and isolated apps.

Hi,

We're building an application consisting of an exe and several dlls
with VS2005 that needs to be xcopy installed.
VS2005 automatically embeds a manifest binding the app and dlls to the
assembly 'Microsoft.VC80.CRT' version 8.0.50608.0. Through a policy in
the GAC this version is redirected to version 8.0.50727.42 which is
deployed with the app.

But when deploying this to a machine not having this policy installed,
the .NET runtime cannot find the correct version of the assembly.
To correct this. I created an application configuration file like the
following to redirect to the new assembly version:

<?xml version ="1.0"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC80.CRT"
processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"/>
<bindingRedirect oldVersion="8.0.41204.256-8.0.50608.0"
newVersion="8.0.50727.42"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

This does not work and results in a 'The system cannot execute the
specified program' error.

The event log states: Syntax error in manifest or policy file "F:
\dv31\Microsoft.VC80.CRT.MANIFEST" on line 4.
This file is just a copy from the redist directory.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Copyright © 1981-2001 Microsoft Corporation -->
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<noInheritable/>
<assemblyIdentity
type="win32"
name="Microsoft.VC80.CRT"
version="8.0.50608.0"
processorArchitecture="x86"
publicKeyToken="1fc8b3b9a1e18e3b"
/>
<file name="msvcr80.dll"/>
<file name="msvcp80.dll"/>
<file name="msvcm80.dll"/>
</assembly>

Anyone any idea how to get this working? The application config file
determines the binding context for all the DLLs it uses, right?
Why didn't MS just update the manifest files when they updated the
runtime DLLs?

TIA,
-- Marcel

Feb 5 '07 #1
2 2276
In article <11*********************@v33g2000cwv.googlegroups. com>,
Marcel <ma*****************@gmail.comwrote:
>We're building an application consisting of an exe and several dlls
with VS2005 that needs to be xcopy installed.
VS2005 automatically embeds a manifest binding the app and dlls to the
assembly 'Microsoft.VC80.CRT' version 8.0.50608.0. Through a policy in
the GAC this version is redirected to version 8.0.50727.42 which is
deployed with the app.
Why not just turn off the manifests? For the exe and DLLs,
right-click on the project, and there's a manifest setting under the
linker settings, as well as at the top level of properties. In both
settings, turn the manifest to off. That's worked far more reliably
for me than fighting XML hell -- the exe and dll are bit larger, but
hey, it works.

If they worked reliably right out of the box, manifests sound like
a nice idea. However, I'd put manifests under the typical Microsoft
paradigm of getting it right by v3.0 (approximately), but we're still
stuck at manifests v0.8beta4, though.

Nathan Mates
--
<*Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein
Feb 5 '07 #2
On Feb 5, 6:28 pm, nat...@visi.com (Nathan Mates) wrote:
In article <1170691949.554281.36...@v33g2000cwv.googlegroups. com>,

Why not just turn off the manifests? For the exe and DLLs,
right-click on the project, and there's a manifest setting under the
linker settings, as well as at the top level of properties. In both
settings, turn the manifest to off. That's worked far more reliably
for me than fighting XML hell -- the exe and dll are bit larger, but
hey, it works.

If they worked reliably right out of the box, manifests sound like
a nice idea. However, I'd put manifests under the typical Microsoft
paradigm of getting it right by v3.0 (approximately), but we're still
stuck at manifests v0.8beta4, though.

Nathan Mates
--
That would be nice if it were an option. But the application uses
several COM controls that need the manifest in order to work without
registration.

There must be a way to make this work. I just don't know how!

-- Marcel

Feb 5 '07 #3

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

Similar topics

3
by: Philippe Trottier | last post by:
Hi! I have a C# program developped with VS2003 and Enterprise Library June 2005. I converted it to VS2005B2, recompiled Enterprise Library to VS2005 and now I'm stuck with a bug when my program...
0
by: Namratha Shah \(Nasha\) | last post by:
Hey Group, After a long week end I am back again. Its nice and refreshing after a short vacation so lets get started with .NET once again. Today we will discuss about Isolated Storage. This is...
4
by: Brad | last post by:
I'm not one to rant or flame....so please excuse me while I do so for this once. I've now spent a bit of time working with VS2005 beta 2 to see how it functions for web development, especially how...
9
by: Jeff Gaines | last post by:
I have just installed VS 2005 (MSDN version) and I am having problems coping files to the Projects folder while VS2005 is running. The projects folder is on a network share and I have used...
7
by: Frank Rizzo | last post by:
Is it me or is the speed of VS2005 actually slower than VS2003? The startup is pretty bad - even though I changed VS to display an empty environment. When I create a new form and want to change...
1
by: Ben Fidge | last post by:
Can anyone shed some light on why compiling and running web-apps is so slow in VS2005. I have a solution with 3 web-apps, 20 or so library projects and several winforms apps. All in all it totals...
9
by: yevvi | last post by:
Hi, We have a product with bunch of dlls which are now built with Visual Studio 2003. We want to switch the build to use VS2005. I have read that in VS2005 runtime libraries come as...
4
by: Jules Winfield | last post by:
I'm using VS2005. I have a solution consisting of twelve projects. All projects are console/service apps except for one which is a WinForms app. There are no web projects. I'd say that I'm at...
5
by: Kardon Coupé | last post by:
Dear All, I'm bemused, I'm moving an application I've written from VB6 into VS2005, and I'm getting all the fundamentals over before I delve into the hard part, like getting the forms layout...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...
0
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...
0
tracyyun
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.