Kuv tau ua hauj lwm rau ib tug feature zaum tag los uas yuav ntxiv tej yam kev tshwm sim receivers rau ib daim ntawv teev kev lom. (Kuv blogged txog tias receiver no los sau li no kuj nce mentsis).
Siv cov kev hais kom ua kab, Kuv yuav nruab qhov feature uas tsis muaj kev ua yuam kev (tiam sis saib hauv qab no rau thaum qhov kev ua yuam kev). Thaum kuv sim deploy feature rau ntawm qhov chaw, NTXHUAB complained "FileNotFoundException ib" yuam kev. No nkag teb chaws blog piav li cas kuv solved nws.
Qhov no yog qhov yuam kev ntawm NTXHUAB tsom kuv nyob rau hauv cov qhov web browser:
Feature ' b2cb42e3-4f0a-4380-aaba-1ef9cd526f20’ yuav tsis muab ntsia tau vim hais tias lub chaw thau khoom ntawm cov kev tshwm sim receiver los ua ke "xyzzyFeatureReceiver_0" ua tsis tau tejyam: System.IO.FileNotFoundException: Yuav tsis thauj cov ntaub ntawv los sib dhos ' xyzzyFeatureReceiver_0’ los yog ib qhov dependencies. Lawv nrhiav tsis tau cov ntaub ntawv teev.
Cov ntaub ntawv npe: ' xyzzyFeatureReceiver_0’
tom System.Reflection.Assembly.nLoad(AssemblyName fileName, Txoj hlua codeBase, Pov thawj assemblySecurity, Los ua ke locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
tom System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Pov thawj assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
tom System.Reflection.Assembly.InternalLoad(Txoj hlua assemblyString, Pov thawj assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
tom System.Reflection.Assembly.Load(Txoj hlua assemblyString)
tom Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject()
WRN: Muab sib dhos losis tswvyim dabtsi logging OFF.
Yuav pab kom sib dhos khi tsis logging, muab lub npe nqi [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) mus 1.
Ceeb toom: Yog ib co kev nplua nrog sib dhos khi tsis logging.
Tig no feature, tshem tau cov nqi no npe [HKLMSoftwareMicrosoftFusion!EnableLog].Troubleshoot muaj teeb meem nrog rau cov kev pab cuam SharePoint qhov rais.
Kuv paub tias yuav ua li cas yuav txhob txwm tshaj tawm ua tau qhov yuam kev: tsis txhob nruab ib tus los ua ke hauv lub GAC. Tab sis npog, yog nyob hauv lub GAC. Kuv nquag nruab sibtham hauv lub GAC los cia rau hauv lub c dragging:\windowsassembly sis siv explorer qhov rais. Kuv yeej ib txwm tsis muaj 100% nyiam ua ntawd vim kuv pheej xav tias gacutil existed ib vim li … ces kuv sim uas. Ua tsis muaj qhov sib txawv.
Nrhiav cov Internets thiab pom no ncej: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2243677&SiteID=1
Cov daim ntawv loj loj tshwm sim uas yuav siv tib hauv paus ntsis ntawm txoj (los ntawm phau ntawv hauv WSS los ntawm daim ntawv) li ntawd, uas yog ib qho hopeful. Txawm li cas los, qhov suggestion ntawm decorating lub los ua ke rau ib qho [sib dhos: ] tswj tsis ntxim rau kuv. Kuv sim nws lawm thiab kuv yog txoj kev. Ua tsis muaj qhov sib txawv.
Ces kuv pom tias kuv chav kawm ntawv txhais tau tsis pej xeem. Kuv muab nws pej xeem thiab cov uas ua tsis muaj qhov sib txawv.
Tom ntej, Kuv mus rau qhov teeb meem ntawm enabling tus "sib dhos khi tsis cav" (tom qab tus tswv thiab raws cov lus qhia muab) thiab qhov no yog qhov twg yam pib tau nthuav. Cov cav ntawd qhia rau kuv tias lub runtime yog searching zaws ntawm tus neeg rau zaub mov rau kuv los ua ke. Txawm tias nws pom tau searching rau nws nyob rau hauv kuv txee rau tshuaj. Tab sis npog … nws yuav tsis nrhiav nws nyob hauv lub GAC.
Kuv muab tso rau hauv kuv lub tsho caij ntuj no thiab mus searching lub Internets dua thiab paub tias ib tug neeg nws tau qhov teeb meem no thiab. Kev zoo sab laj nyob ntawd xo peters tawm rau hauv tsis muaj dab tsi thiab kuv yuav tsis nrhiav kev kho.
Kuv tsiv kuv los ua ke rau hauv ib lub chaw leg ntaubntawv tus cav nws yog searching thiab kuv kom ntau me ntsis xwb. Kuv tabtom rewarded nrog tus tshiab yuam kev nyob hauv koj tus browser thaum kuv ua tiag mus qhib lub feature:
Tejyam uas tsim feature receiver kwv los sib dhos "xyzzyFeatureReceiver_0", hom "Conchango.xyzzyFeatureReceiver" rau feature b2cb42e3-4f0a-4380-aaba-1ef9cd526f20: System.ArgumentNullException: Tus nqi tsis tau thov.
Parameter npe: hom
tom System.Activator.CreateInstance(Tej yam, Boolean nonPublic)
tom System.Activator.CreateInstance(Tej yam)
tom Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject()Troubleshoot muaj teeb meem nrog rau cov kev pab cuam SharePoint qhov rais.
Lub sij hawm rau ib lub xeem txawv tebchaws rau lub Internets!
Lub sij hawm no kuv paub, predictably txaus, ntawd NTXHUAB sib yuam kev no vim hais tias cov los ua ke yuav tsis nyob hauv GAC.
Kuv xav tau ib yam dab tsi zoo rau hauv no thiab ua kom muaj ntsis txaus siab rau qhov tias kuv tsim tau lub Tseem nrhiav kev MSIL sibtham, tab sis nws tsis ua hauj lwm. Kuv nyuam qhuav plain annoyed. Kuv nrhiav tau kuv tus kheej muttering "qaib los yog qe" raws li kuv ua tsis taus pa.
Thaum kawg kuv xav punt. Kuv tsim ib qhov project nkaus tshiab thiab daim ntawv/muab tshuaj qhov chaws ntawm incredible-cloaked-from-the-GAC-assembly uas tsis ua hauj lwm peb tes num dua tshiab project no. (Kuv nrhiav ib tug chij hu ua ib yam dab tsi zoo li "nraim ntawm los ua ke losis tswvyim dabtsi yog ntsia tau rau hauv cov GAC muaj" tab sis nrhiav tsis tau ib tug).
Nruab ib lub feature thiab qhib nws thiab … nws ua haujlwm! Li ntawd, tag nrho cov tom qab, Kuv tau ua yeej ' reboot’ ib qhov kuv. Qhov no yog lwm vim li cas kuv ntxub computers.
Kuv kawm tau ib yam dab tsi pab tau los ntawm no. Kuv yuav tsum tau txhim kho nta cov stsadm hais kom ua kab siv ib hnub thiab siv tau cov "-yuam" kev xaiv ntawm tus cwj pwm. Vim, Kuv puas tau txhob siv cov - quab yuam kev xaiv thaum kuv ntsia peb tes num tshiab. Lub sij hawm no, Kuv yeej tsis, hais tiag nco kom luam no ib qhov ntawv tshiab los ua ke rau hauv lub GAC. Yog li ntawd, Kuv tau txais "FielNotFoundException ntawd" yuam kev. Lub sij hawm no, Kuv yog tus txais ntawm stsadm, tsis yog thaum kuv sim mus qhib lub feature ntawm lub web browser. Li ntawd, -sib zog ua tau plays ob tug cwj pwm. Nws tso cai rau koj los rov nruab ib feature uas twb muaj lawm. Nws tseem tso cai rau koj nruab ib lub tsheb nees feature uas tsis ua hauj lwm ntawm runtime ntawm suppressing qhov yuam kev. Nws zaum hais ua ntau ntau nyob hauv kev pab qhov chaw tab sis kuv yeej tsis pom nws.
</kawg>
Kuj, Kuv muaj kuv 2 hysteric nintendoSIXTYFOURRRR-rau-ib-phem-txoj kev uas moments thaum twg kuv renamed tus Namespace hauv lub Feature Receiver sij hawm, pab taug qab qhov twg koj li los sis lwm tus pib.
Lub hauv paus ntawm qhov teeb meem ntawm tus wsp hauv lub sharepoint database deployed nta. Kuv nyeem koj cov ncej thiab txawm nws, yog thiag txhim kho qhov teeb meem peb muaj cov loj loj tov nrog ob peb tej yaam num thiab dozens ntawm cov ntaub ntawv thiaj tsiv txhua yam tsis yog ib qho kev xaiv.
Txawm ntau npaum li cas yog koj hloov koj cov GAC los koj los ua ke, dab tsi yog muab rau koj teeb meem yog cov los ua ke nyob rau tam sim no WSP ntsia tau rau hauv sharepoint.
Koj yuav tau yooj yim pom uas uas ua los nkaum hauv cov kua xwb (Nws yog ib qhov chaw uas qhov yuam kev li lawm). Ib puas tsavyam zoj zis rau "pheej rov huas pas sij hawm" yuav pom tau tias "deployed wsp"-tsis tsuas peb tes num xwb.
Yog kuv workaround:
– Central admin: Ncua tseg kua
– stsadm: deletesolution
– Nrig txog kev pom Studio => Qhov project => Pob
– stsadm: addsolution-thov ProjectbinDebugProject.wsp
– stsadm: deploysolution-lub npe project.wsp-tam - allowgacdeployment-yuam
– Nrig txog kev pom Studio => Deploy
Kuv kuj deleted rau hauv thiab debug folders los ntawm peb tes num ua ntej yuav khiav Deploy dua, tej zaum yuav tsis muaj yam nyhuv, tiam sis muaj nqis commenting.
Qhov no ua haujlwm rau neb ob leeg
"Feature … yuav tsis muab ntsia tau vim hais tias lub chaw thau khoom ntawm cov kev tshwm sim receiver los ua ke"
thiab
"Tejyam uas tsim feature receiver kwv los sib dhos"
Tsaug!
Francisco
Siv ob peb teev rau kev txhim kho no tib cov qhov teeb meem thiab nrhiav tau ib txoj kev hais haum li tsuas recreating peb tes num xwb.
Nws muab tawm uas vim siv qhov muag saib lub Studio tau teev qhov uas muaj hom rau x 86 hloov x 64 los yog MSIL – cov los ua ke yog lub GAC, qhov tug GAC ib yam xwb tsis uas 64 npij SharePoint yog nrhiav tau nyob rau hauv.