DCSIMG
October 2009 - Posts - Avi Pinto

Avi Pinto

על הבלוג

Follow uberPinto on Twitter

View Avi Pinto's profile on LinkedIn

Subscribe in a reader Subscribe by Email

 


Two new sculptures

View my Air Brush Work at Avipinto.com

Helping a friend, great tool for fixing file names

JavaScript Tutorial


Disclaimer All postings/content on this blog are licensed under a Creative Commons Attribution By license and provided "AS IS" with no warranties, and confer no rights.
All entries in this blog are my opinion and don't necessarily reflect the opinion of my employer or sponsors.

October 2009 - Posts

When build fails because it can't register a dll to the GAC

תופעה מרגיזה שיכולה להתרחש אצלכם בזמן העבודה(שרפה לי לא מעט זמן):

מדובר על עבודה עם dll-ים שמועתקים אל ה GAC ("תענוג" שיצא לי להתעסק איתו לא מעט לאחרונה),

במהלך העבודה, לפתע, הפרויקט מפסיק להתקמפל, ומודיע שהפקודה:

d:\...\gacutil -i $(TargetFileName)

נכשלה, מה שאומר שלא הצליח הרישום ב GAC (פקודה זו נקראת ב post build event ).

סגירת ה visual studio או מחיקת קבצים זמניים של asp.net ו iisreset לא יעזרו לכם פה (למרות שלפעמים נראה שזה פותר את הבעיה).

מה שגיליתי(יותר נכון אמיתי גילה לי) זה שה indexing service (ב vista שינו את שמו ל Windows search ) גורם לבעיה (כנראה תופס את הקבצים)

 

הפתרון – פשוט לעצור אותו ולנטרל אחת ולתמיד, הרי אף אחד לא משתמש ב search המובנה של windows:

1. start ->run

2. services.msc

3. select the "indexing service" / "Windows search" service and then stop it and then set the startup type to Disabled.

indexingService

on server 2003

 

(אם זה לא פותר את הבעיה, הנה לינק שמצאתי בעניין, מדבר על פתרונות ב    VISTA או בצורת הרישום:

http://social.msdn.microsoft.com/Forums/en-US/clr/thread/2c1c5363-1c48-40b3-bfa1-41d24c1a885b

 

ממתי שניטרלתי את השירות הארור הזה, כל קימפול גם לוקח פחות זמן, ממש תענוג.