Risolvere i problemi di deployment di assembly in GAC

lunedì, 25 febbraio 2008 12.25 by Marco Bellinaso

Se vi trovate a dover aggiornare spesso una DLL in GAC mantenendo uguale lo strong name (quindi senza cambiare la versione, tra le altre cose), potrebbe capitarvi di ricevere un errore tipo (nel caso di SharePoint) "Cannot add the specified assembly to the global assembly cache: SPHelpers.dll.". Prima di risolvere in modo drastico riavviando il server, provate a fermare l'Indexing Service di Windows; potrebbe infatti essere questo ad avere un lock sulla DLL in questione già presente sul file system per un deplyment precedente.

Il problema non avviene invece se si incrementa la versione, perchè in quel caso si copia in GAC un file effettivamente diverso, sotto un'altra sotto-cartella. A me è capitata questa cosa deployando ogni 5 minuti un aggiornamento ad una solution di SharePoint, ma ovviamente lo stesso discorso vale in generale per assembly di altro tipo che finiscono nella GAC.

Vota questo post per primo

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Segnala:  
Categorie:   Sviluppo software
Azioni:   E-mail | Permalink | Commenti (7) | RSS CommentiRSS comment feed

Post correlati

Commenti

gennaio 16. 2010 09.11

stop snoring solution

Q: Why do blondes have little holes all over their faces?

A: From eating with forks.



Regards
Taylor

stop snoring solution

febbraio 3. 2010 11.29

managed forex

I am quite gripping in this topic plan you leave elaborated much on it in forthcoming posts.





Regards
Westfall


managed forex

marzo 9. 2010 10.52

replica watches

thanks for the share

replica watches

marzo 22. 2010 15.05

ssk sorgulama

This is a really good read for me, Must admit that you are one of the best bloggers I ever saw.Thanks for posting this informative article.

ssk sorgulama

marzo 23. 2010 16.20

ehliyet

Aw, this was a really quality post. In theory I'd like to write like this too - taking time and real effort to make a good article... but what can I say... I procrastinate alot and never seem to get something done.

ehliyet

marzo 24. 2010 15.04

rolex replica

thank you

rolex replica

marzo 25. 2010 14.54

bağkur

I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post

bağkur

Commenti chiusi