1

Closed

Could not load file or assembly

description

when i launch new SCSF Project VS2012 raise the following error:
Could not load file or assembly 'Microsoft.Practices.ServiceLocation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

file attachments

Closed Jun 2, 2013 at 12:01 PM by HoytPollard
Assembly should now be found. Made a new issue for the pkgdef patch
https://scsf2012.codeplex.com/workitem/3

comments

HoytPollard wrote Feb 26, 2013 at 10:07 AM

It worked on my machine, because i had the Common Service Locator (Microsoft.Practices.ServliceLocation.dll) in GAC. Now i deploy it with the package, released a new version. Can you verify this. Currently i'm facing the problem many people have with SCSF2010 http://smartclient.codeplex.com/discussions/248428 But that's another issue.

HoytPollard wrote Feb 26, 2013 at 10:16 AM

Still not working after i remove the assembly from my GAC. The temproray workaround would be to deploy the attached assembly manually with "gacutil -i Microsoft.Practices.ServiceLocation.dll"

HoytPollard wrote Feb 26, 2013 at 11:10 AM

I think Serviclocation was deployed on GAC by GAX or GAT for 2010. SCSF2010 also doesn't work without ServiceLocation in GAC. But i think i found a solution that ServiceLocation can be found without been deployed to GAC. Changing the pgkdef file like in
http://stackoverflow.com/questions/5090260/deploy-assembly-containing-iwizard-for-project-template-with-vsix
works for me! Try to find a way to integrate it in the build later that day.