Error while installing assembly into Global Assembly Cache

Got a problem you cannot solve? Try here.
gweihs
Posts: 32
Joined: Sat Jan 21, 2006 10:24 am

Error while installing assembly into Global Assembly Cache

Postby gweihs » Mon Jan 23, 2006 10:40 am

I have a setup that installs 1 .NET assembly into the GAC. It fails with a message saying there was an error reading from the temp file (see attached image).

I have no other files to install, just that one. So there are no file copies happening during the install.

Any ideas?

gweihs
Posts: 32
Joined: Sat Jan 21, 2006 10:24 am

sorry, forgot to add attachment

Postby gweihs » Mon Jan 23, 2006 10:41 am

Heres the image

File Attached:

GACBug1.gif

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Mon Jan 23, 2006 10:41 am

I think your setup output path may be too long, please try something shorter, try for example placing built setups in c:\\builds and see if that helps your situation.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

Gizm0
Posts: 339
Joined: Wed Nov 09, 2005 8:47 pm

Postby Gizm0 » Mon Jan 23, 2006 10:47 am

Also verify that the assembly is strong name signed, otherwise you can't install it on the GAC!
Panagiotis Kefalidis
Software Design Team Lead
\"In order to succeed, your desire for success should be greater than your fear of failure\"
InstallAware Software Corporation

gweihs
Posts: 32
Joined: Sat Jan 21, 2006 10:24 am

Postby gweihs » Mon Jan 23, 2006 11:32 am

I have moved it to a different (shorter) path and it works fine from there. I dont see this being a long term solutions, however. Can you give me some details on this restriction, is it a bug? What is the max length of the filepath? We have a rigid build process that will take a lot of effort to change.

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Mon Jan 23, 2006 11:44 am

You may shorten your source paths. Essentially, the MAX_PATH limit is being exceeded and this is the root cause of the problems we're experiencing here. The only workaround is to use shorter source paths or build output paths.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

gweihs
Posts: 32
Joined: Sat Jan 21, 2006 10:24 am

Postby gweihs » Mon Jan 23, 2006 11:50 am

It appears to be 100 character limit on the path... can you confirm?

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Mon Jan 23, 2006 12:33 pm

The limit is 255. Keep in mind that this limit may be exceeded when setup is running from the temp folder on the end user system. Therefore, best to use short paths.

You don't need to change your existing folder structure either. Just use subst drives to replace a very long source path with a single drive letter!
Candice Jones
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

gweihs
Posts: 32
Joined: Sat Jan 21, 2006 10:24 am

Postby gweihs » Mon Jan 23, 2006 12:52 pm

Does this problem relate to GAC registration only, to everything or something in between.

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Mon Jan 23, 2006 1:23 pm

It effects all files that are built with InstallAware.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 134 guests