Installing published application fails

J

Josef Brunner

Hi everybody,

[I'm using VS 2005]

I tried to publich my application to a simple file location. (no online
publishing or anything like that.)

Running the setup that VS generates for me works fine on my machine but when
I try to copy the generated setup files to another machine and start it, it
gives me this error:

"System Update Required"
Unable to install or run the application. The application requires that
assembly Microsoft.VisualBasic Version 2.0.0.1 be installed in the Global
Assembly Cache (GAC) first.

Is there any way to have the setup know what kinds of system updates are
required for the current machine and update it automatically? I have no clue
how to install this VB Version without having to install the whole VS, SDK
and what else ... The customer should simply have an executable setup he
double-clicks and that works ...

Help is very much appriciated,
Thanx, Joe
 
C

Carlos J. Quintero [VB MVP]

Hi Joe,

AFAIK, the assembly version of Microsoft.VisualBasic is 8.0.0.0 and the file
version is 8.0.50727.42, so I am not sure why it is requiring 2.0.0.1.

Is the .NET Framework 2.0 (not the SDK or VS, just the .NET Framework
redistributable) installed on the target machine? See:

http://www.microsoft.com/downloads/...cb-4362-4b0d-8edd-aab15c5e04f5&DisplayLang=en


--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
 
J

Josef Brunner

Hi,

thank for the fast reply!

I installed the framework from the given link. I still get the same error
code.

It is an XP Professional 2002 Service Pack 2 machine with automatic updates
enabled...

Any more ideas?
Thank you again,
Josef


Carlos J. Quintero said:
Hi Joe,

AFAIK, the assembly version of Microsoft.VisualBasic is 8.0.0.0 and the
file version is 8.0.50727.42, so I am not sure why it is requiring
2.0.0.1.

Is the .NET Framework 2.0 (not the SDK or VS, just the .NET Framework
redistributable) installed on the target machine? See:

http://www.microsoft.com/downloads/...cb-4362-4b0d-8edd-aab15c5e04f5&DisplayLang=en


--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com



Josef Brunner said:
Hi everybody,

[I'm using VS 2005]

I tried to publich my application to a simple file location. (no online
publishing or anything like that.)

Running the setup that VS generates for me works fine on my machine but
when I try to copy the generated setup files to another machine and start
it, it gives me this error:

"System Update Required"
Unable to install or run the application. The application requires that
assembly Microsoft.VisualBasic Version 2.0.0.1 be installed in the Global
Assembly Cache (GAC) first.

Is there any way to have the setup know what kinds of system updates are
required for the current machine and update it automatically? I have no
clue how to install this VB Version without having to install the whole
VS, SDK and what else ... The customer should simply have an executable
setup he double-clicks and that works ...

Help is very much appriciated,
Thanx, Joe
 
J

Josef Brunner

Hi again,

even after installing VS 2005 on the target machine the setup fails to run
with the same error message. And there it comes: even when starting the
project within the VS 2005 environment it has the same error code.

Maybe I'm doing something wrong with configuration when publishing the
application. Since everything is "new" in VS 2005 and I could not find a
detailed description of how to correctly publish an application (for example
when I add some xml files as resources to the application it won't give me
the choice to include these files into the setup program) maybe it would
work just fine if I'd get all configurations done just wright.

Hopefully someone can "guide" me to the solution,

Kurt

Josef Brunner said:
Hi,

thank for the fast reply!

I installed the framework from the given link. I still get the same error
code.

It is an XP Professional 2002 Service Pack 2 machine with automatic
updates enabled...

Any more ideas?
Thank you again,
Josef


Carlos J. Quintero said:
Hi Joe,

AFAIK, the assembly version of Microsoft.VisualBasic is 8.0.0.0 and the
file version is 8.0.50727.42, so I am not sure why it is requiring
2.0.0.1.

Is the .NET Framework 2.0 (not the SDK or VS, just the .NET Framework
redistributable) installed on the target machine? See:

http://www.microsoft.com/downloads/...cb-4362-4b0d-8edd-aab15c5e04f5&DisplayLang=en


--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com



Josef Brunner said:
Hi everybody,

[I'm using VS 2005]

I tried to publich my application to a simple file location. (no online
publishing or anything like that.)

Running the setup that VS generates for me works fine on my machine but
when I try to copy the generated setup files to another machine and
start it, it gives me this error:

"System Update Required"
Unable to install or run the application. The application requires that
assembly Microsoft.VisualBasic Version 2.0.0.1 be installed in the
Global Assembly Cache (GAC) first.

Is there any way to have the setup know what kinds of system updates are
required for the current machine and update it automatically? I have no
clue how to install this VB Version without having to install the whole
VS, SDK and what else ... The customer should simply have an executable
setup he double-clicks and that works ...

Help is very much appriciated,
Thanx, Joe
 
J

Josef Brunner

I found the solution:

I uninstalled the LINQ Tech Preview software package that I just installed a
couple of days ago, rebuild the project, published it and installed it
successfully...lucky me!

BTW: Why is the generated setup installing the software in such a crazy
directory (c:documents and settings/user/local
.../Apps/v2.0/lkjafdölkjsafd/...

??

Joe

Carlos J. Quintero said:
Hi Joe,

AFAIK, the assembly version of Microsoft.VisualBasic is 8.0.0.0 and the
file version is 8.0.50727.42, so I am not sure why it is requiring
2.0.0.1.

Is the .NET Framework 2.0 (not the SDK or VS, just the .NET Framework
redistributable) installed on the target machine? See:

http://www.microsoft.com/downloads/...cb-4362-4b0d-8edd-aab15c5e04f5&DisplayLang=en


--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com



Josef Brunner said:
Hi everybody,

[I'm using VS 2005]

I tried to publich my application to a simple file location. (no online
publishing or anything like that.)

Running the setup that VS generates for me works fine on my machine but
when I try to copy the generated setup files to another machine and start
it, it gives me this error:

"System Update Required"
Unable to install or run the application. The application requires that
assembly Microsoft.VisualBasic Version 2.0.0.1 be installed in the Global
Assembly Cache (GAC) first.

Is there any way to have the setup know what kinds of system updates are
required for the current machine and update it automatically? I have no
clue how to install this VB Version without having to install the whole
VS, SDK and what else ... The customer should simply have an executable
setup he double-clicks and that works ...

Help is very much appriciated,
Thanx, Joe
 
P

Peter Huang [MSFT]

Hi Josef,

I am glad that you have found the solution.
Also this directory is a user specific ones, so the application will not
confused with another ones.
This is how Smart Client doing. That way another smart client will not have
the confliction.

Commonly we did not need to care where smart client deploy its application.
Because the smart client will check for update when it is lauched.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top