Click here to Skip to main content
15,900,616 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I work on a website project, and add some reference to it. But when put it to the server, it came out error said 'Could not load file or assembly'. I check on Proprety Pages, and I notice it is in GAC, not BIN. So how can I change it?
I search on web and all the solution state I need to set Copy Local=true, but I cannot find where is the Copy Local option. I using Visual Studio 2012.
Posted

1 solution

in your project, look at the References section. Find the resource and open up it's properties. It's right there under -Misc

I would advice you don't copy local, but instead install the resource on your server. You may find that the resource requires many related resources which can get very messy.

Most items in the GAC are installed with some software or framework. You can usually google to find the source.

Of course, this doesn't apply to everything and sometimes it is just easier to copy local.


Hope that helps ^_^
Andy
 
Share this answer
 
Comments
Member 12115140 16-Dec-15 7:29am    
the reference I want to add is Crystal Report, is it have to copy local or i can get resource?
Member 12115140 16-Dec-15 7:30am    
I use web site project, it is no Reference section, what should i do?
Andy Lanng 16-Dec-15 7:36am    
gah - change to web app :P
Install CR on the server. See my link above
Member 12115140 16-Dec-15 7:59am    
how to install to server?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900