Error installing the Infragistics Wrapper


Author
Message
Edhy Rijo
E
StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
I am using the SF Infragistics Wrapper and I am getting an error when try to install this assembly into the GAC using InstallAware.



When I build my installation package I don't get any error and the other SF assemblies are installed just fine. Of course I had to compiled the "MicroFour StrataFrame Infragistics Wrapper.dll" in order to use my version of Infragistics library.



In my computer works just fine, only when I build the installation setup and test under Vista and XP (32BITS).



I will appreciate if somebody can give me a hint on this one.

Edhy Rijo

Attachments
Replies
Edhy Rijo
E
StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Thanks Trent,



Will try all that. What is extrange is that only happen with this file which I had to re-build, other SF assemblies install just fine. I even try to manually drop this file into the GAC and get an error, even though I am logged as administrator with all the rights using VPC.

Edhy Rijo

Trent Taylor
Trent Taylor
StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
If you just place that DLL in the same location as your EXE does the application run?  We have actually moved away from GAC additions and it has made things far easier.  In the future we will do the same with SF so that it makes it easier to run multiple versions of SF at the same time easier.
Edhy Rijo
E
StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Trent L. Taylor (05/18/2009)
If you just place that DLL in the same location as your EXE does the application run? We have actually moved away from GAC additions and it has made things far easier. In the future we will do the same with SF so that it makes it easier to run multiple versions of SF at the same time easier.




Yeah, moving all SF assemblies to the EXE folder did the trick. Obviously this should be an InstallAware problem since for whatever reason the file was not included in the OFFLINE Web Media Group.



I noticed that by having all assemblies in the same folder as the EXE there is not need to register anything which in a way makes it simple, even though I kind it like the assemblies files being in another folder.



Thanks again for your input, it really helped and now I can demo beta 2 of the application to the customer tomorrow. Tongue

Edhy Rijo

Trent Taylor
Trent Taylor
StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
You can actually put the assemblies in a different folder without the need for the GAC. In your application you can handle the AssemblyResolve event on the AppDomain and pull the assembly from any location. Here is a quick sample, it may need some work, but it should give you a general idea:



Add this to the InitApplication or someplace far up in the AppMain

AddHandler AppDomain.CurrentDomain.AssemblyResolve, AddressOf ResolveAssemblyLocation




Here is the general idea for the ResolveAssemblyLocation method:



Private Shared Function ResolveAssemblyLocation(ByVal sender As Object, ByVal e As System.ResolveEventArgs) As System.Reflection.Assembly

'-- Establish Locals

Dim r As System.Reflection.Assembly

Dim assemblyPath As String = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) & "\Assemblies\"



r = System.Reflection.Assembly.LoadFile(assemblyPath & e.Name)



Return r

End Function




Hope this helps. Smile

Edhy Rijo
E
StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Thanks, definitely worth trying, I like to have my Application's folder organized, and frankly I don't like to see a whole bunch of files in a single folder.

Edhy Rijo

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (2.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Can something like this be done to override an assembly being installed in the GAC and also in local? I.e. if the SF assemblies are in the GAC (like on a dev machine), but I need to run an older version of the app, with older SF assemblies and have those assemblies in the exe folder, can I use this method to use the local ones instead of the one's in the GAC?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Edhy Rijo - 15 Years Ago
Edhy Rijo - 15 Years Ago
Trent L. Taylor - 15 Years Ago
Edhy Rijo - 15 Years Ago
Trent L. Taylor - 15 Years Ago
                         [quote][b]Trent L. Taylor (05/18/2009)[/b][hr]If you just place that...
Edhy Rijo - 15 Years Ago
                             You can actually put the assemblies in a different folder without the...
Trent L. Taylor - 15 Years Ago
                                 Thanks, definitely worth trying, I like to have my Application's...
Edhy Rijo - 15 Years Ago
                                 Can something like this be done to override an assembly being...
Greg McGuffey - 15 Years Ago
Keith Chisarik - 15 Years Ago
Trent L. Taylor - 15 Years Ago
Greg McGuffey - 15 Years Ago
Trent L. Taylor - 15 Years Ago
                         That's good news. I've had issues were I've upgraded SF for...
Greg McGuffey - 15 Years Ago
                             I also support the idea of having the assemblies located per...
Edhy Rijo - 15 Years Ago
                                 [codesnippet]I would like to see SF support for .NET 3.5 since 3.5...
Trent L. Taylor - 15 Years Ago
                                     [quote][b]Trent L. Taylor (05/26/2009)[/b][hr][codesnippet]I would...
Edhy Rijo - 15 Years Ago
                                         [codesnippet]This is a very important need for me since 99% of my...
Trent L. Taylor - 15 Years Ago
                                             [quote][b]Trent L. Taylor (05/26/2009)[/b][hr][codesnippet]This is in...
Edhy Rijo - 15 Years Ago
                                                 LOL....that is not the first time that has come up. We will consider...
Trent L. Taylor - 15 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search