ઉકેલ: પર System.IO.FileNotFoundException “SPSite = નવી SPSite(URL)”

અપડેટ: હું અહીં એમએસડીએન માટે આ પ્રશ્ન પોસ્ટ (http://forums.microsoft.com/Forums/ShowPost.aspx?PostID=2808543&SiteID=1&mode=1) and Michael Washam of Microsoft responded with a concise answer.

હું એક તરીકે કામ કરવા માટે વેબ સેવાનો બનાવનાર BDC મૈત્રીપૂર્ણ રવેશ to a SharePoint list. When I used this from my development environment, તે દંડ કામ કર્યું. હું એક નવા સર્વર માટે આ સ્થળાંતર ત્યારે, હું આ ભૂલ આવી:

System.IO.FileNotFoundException: વેબ એપ્લિકેશન પર http://localhost/sandbox મળી શક્યું નથી. તમે યોગ્ય URL ને ટાઇપ છે કે ચકાસો. URL ને હાલની સામગ્રી સેવા આપતા જોઈએ તો, સિસ્ટમ સંચાલકને હેતુ એપ્લિકેશન માટે એક નવી વિનંતી URL ને મેપિંગ ઉમેરવા માટે જરૂર પડી શકે છે. Microsoft.SharePoint.SPSite અંતે .. ctor(SPFarm ફાર્મ, URI requestUri, બુલિયન contextSite, UserToken SPUserToken) Microsoft.SharePoint.SPSite અંતે .. ctor(શબ્દમાળા requestUrl) Conchango.xyzzy.GetExistingDocument ખાતે(શબ્દમાળા minId, શબ્દમાળા maxId, શબ્દમાળા શીર્ષક ફિલ્ટર) સી:\દસ્તાવેજો અને સેટિંગ્સ પોલ મારા દસ્તાવેજો વિઝ્યુઅલ સ્ટુડિયો 2005 પ્રોજેક્ટ્સ xyzzy BDC_DocReview BDC_DocReview DocReviewFacade.asmx.cs:રેખા 69

અહીં વાક્ય છે 69:

નો ઉપયોગ (SPSite સાઇટ = નવી SPSite("http://localhost/sandbox"))

હું URL પર વિવિધ પ્રકારોનો પ્રયાસ કર્યો, સર્વરનું પ્રત્યક્ષ નામનો ઉપયોગ સહિત, તેના IP સરનામું, આ URL પર પાછળનો સ્લેશ, વગેરે. I always got that error.

હું ઉપયોગ તે Google to research it. Lots of people face this issue, તે અથવા ભિન્નતા, પરંતુ કોઈ એક તે હલ છે લાગતું.

Tricksy શેવાળ ચકાસવા માટે મને તે થઇ ન હતી કે આવા વિગતવાર ભૂલ પૂરી પાડવામાં 12 hive logs. છેવટે, લગભગ 24 કલાક પછી મારા સાથીદાર હું આવું ભલામણ, હું બહાર ચકાસેલ 12 મધપૂડો લોગ અને આ મળી:

સ્થાનિક ફાર્મ હસ્તગત કરવાનો પ્રયાસ કરતી વખતે એક અપવાદ આવી:
System.Security.SecurityException: વિનંતી કરી રજિસ્ટ્રી ઍક્સેસ અનુમતિ નથી.
System.ThrowHelper.ThrowSecurityException ખાતે(ExceptionResource સંસાધન) અંતે
(શબ્દમાળા નામ, બુલિયન લખી શકાય તેવી) અંતે
(શબ્દમાળા નામ) અંતે
() અંતે
() અંતે
(SPFarm& ફાર્મ, બુલિયન& isJoined)
નિષ્ફળ કે વિધાનસભા ની ઝોન હતી:  MyComputer

આ સંશોધનના નવી એવન્યુ અપ ખોલી, તેથી તે Google પર પાછા આવી ગયા હતાં. કે આ મને દોરી ફોરમ પોસ્ટ: HTTP://forums.codecharge.com / posts.php?= 67135 POST_ID. That didn’t really help me but it did start making me think there was a database and/or security issue. I soldiered on and એન્ડ્રુ કોનેલ માતાનો post finally triggered the thought that I should make sure that the application pool’s identity account had appropriate access to the database. I thought it already did. તેમ છતાં, મારા સાથીદાર ગયા અને SQL પર એપ્લિકેશન પૂલ ઓળખ એકાઉન્ટ સંપૂર્ણ ઍક્સેસ આપ્યો.

તે પરિવર્તન કરવામાં જલદી, everything started working.

પછી શું થયું તે શ્રેષ્ઠ તરીકે દર્શાવવામાં આવે છે હૈકુ કવિતા:

સમસ્યાઓ તેમના હાથ ઊંચા.
You swing and miss. Try again.
સફળતા! But how? શા માટે?

તે જેમ એકલા વસ્તુઓ છોડી નહિં માંગો હતી, ન્યૂનતમ જરૂરી પરવાનગી આપવા માટે પસંદ કરી (અને કદાચ પ્રવેશ બ્લોગ લખવાનું માટે એક આંખ સાથે; હું પંચને તેના હરાવ્યું, muhahahahaha!).

તેમણે ત્યાં સુધી એપ્લિકેશન પૂલ ઓળખ એકાઉન્ટ માંથી ક્રમિક પરવાનગીઓ દૂર … there was no longer any explicit permission for the app pool identity account at all. The web service continued to work just fine.

We went and rebooted the servers. Everything continued to work fine.

તેથી, રીકેપ માટે: we gave the app pool identity full access and then took it away. The web service started working and never stopped working. Bizarre.

કામ કર્યું છે કરીશું કે શા માટે કોઈની પણ જાણે છે તો, એક ટિપ્પણી છોડી કૃપા કરીને.

</અંત>

11 પર "વિચારોઉકેલ: પર System.IO.FileNotFoundException “SPSite = નવી SPSite(URL)”

  1. બેન્જામિન

    વરણાગિયું માણસ , હું યુ પ્રેમ , યુ મારા દિવસ સામગ્રી , હું લગભગ એક દિવસ માટે તેની પર કામ કર્યું હતું , અને યુ માત્ર મારા સમય સાચવવામાં

  2. ફર્નાન્ડો ફ્લોરેસ ગોમેઝ

    સરસ પોસ્ટ, આભારદર્શક શબ્દો. મારા કિસ્સામાં, મારી સમસ્યા શેરપોઈન્ટ સાઇટ સંગ્રહ કે મેચ કરવા માટે webservice માતાનો apppool બદલીને હલ કરવામાં આવી હતી.

    Cheers,
    ફર્નાન્ડોનો. ગોમેઝ વધુ.

  3. વિલ્સન એડગર

    મહત્તમ, હું પણ એ જ સમસ્યા હતી. શેરપોઈન્ટ સર્વર સાથે જ મશીન પર બનાવતી વખતે, હું ચોક્કસપણે શેરપોઈન્ટ તરીકે જ ઓળખ હેઠળ ચાલી રહી નથી અલગ પરવાનગી સાથે અસ્પ વિકાસ સર્વર વાપરી હતી (આ અહીં વિશે વધુ: http://msdn.microsoft.com/en-us/library/58wxa9w5(VS.80).aspx) તેથી શું, હું IIS માં નવી સાઇટ બનાવો કર્યું (બંદર 8080) શેરપોઈન્ટ તરીકે જ ઓળખ સાથે.. અને અસ્પષ્ટ.
    આ મદદ કરે છે આશા

  4. ઝેક Boyles
    એસક્યુએલ માતાનો securityadmin સર્વર ભૂમિકા એ ચાલી હતી એક વાર તમે કર્યા હતા મુદ્દો ઉકેલાઈ કે સારી તક છે. તે કામ ચાલુ રાખવા માટે આ બોલ પર કોઈ સમજૂતી થશે.
  5. Markus

    This part of the article….”gave the app pool identity account full access to SQL”, can you elaborate? “app pool identity” i presume means the app pool of the sharepoint site, પરંતુ “full access to SQL”, how do you give that? Creating a login on the db server for the app pool identity i think isn’t quite enough…so is it on the sharepoint content db where the new login gets dbo (?) access? Or other sharepoint db’s as well, like the config db? For me that’s tough, because my sp content db apparently isn’t handled by sql server instance, apparently it’s under “/Microsoft Office Servers/14.0/Data”, anyway i don’t see it in sql server mgr….any ideas how i give “full access to SQL” તો આ કેસ માં? Any reply would be appreciated…i’m kind stuck getting my console app to create an spsite object!!

એક જવાબ છોડો બેન્જામિન જવાબ રદ કરો

તમારું ઇમેઇલ સરનામું પ્રકાશિત કરવામાં આવશે નહીં. જરૂરી ક્ષેત્રો ચિહ્નિત થયેલ છે *