Today I started developing SharePoint application in Win 7 and faced some peculiar issue - I was not able to drag and drop my applications assembly into the gac. So, here comes the main points that you need to keep in mind to deploy one assembly in Win 7 GAC:
1. You must be a member of the Administrator Group.
2. Navigate to "C:\Windows\assembly" in the explorer and right click on it and select "Open in new window".
3. Type 'cmd' in run and as it appears in the top, right click on it and select "Run as administrator".
4. In the command prompt navigate to "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64"
5. Now use the following command: gacutil -i "full path of the file system\XYZ.dll"
6. You will get a message "Assembly successfully added to the cache"
7. Refresh the assembly folder that you have opened in step 2 and you will find your applications assembly there.
Once done my Add references dialog fails to show the registered dll.
ReplyDeleteAre you getting "Assembly successfully added to the cache" message? If yes, then it has been definitey added to the GAC.
ReplyDeleteHi, i have found a web post where is detailed the precedure to add a made on framework 4 dll to the gac, and here i give you the link
ReplyDeletehttp://community.dotnetwork.it/Excentric/archive/2010/06/18/this-assembly-is-built-by-a-runtime-newer-than-the.aspx
However, you can add the dll file to GAC by following the below process
ReplyDeletehttp://www.dotnetspider.com/forum/157374-how-put-assembly-GAC.aspx
Useful Post... Thank You!!!
ReplyDeleteGreat Post, THNX a lot
ReplyDeleteIt is working Thanks.......
ReplyDeleteinstall assembly
ReplyDeletegacutil -i AssemblyName
uninstall
gacutil /u AssemblyName (Fully Qualified Name of Assembly)
more details...
http://net-informations.com/faq/framework/add-remove-assembly.htm
maaki