UPDATE: I stazzjonati din il-kwistjoni MSDN hawn (http://forums.microsoft.com/Forums/ShowPost.aspx?PostID=2808543&SiteID=1&mode=1) and Michael Washam of Microsoft responded with a concise answer.
I ħolqot servizz web biex jaġixxi bħala Faċċata BDC-friendly to a SharePoint list. When I used this from my development environment, maħduma multa. Meta I emigraw din lil server ġdida, I jiltaqgħu dan l-iżball:
System.IO.FileNotFoundException: L-applikazzjoni Web fil http://localhost/sandbox ma jistax jinstab. Jivverifikaw li inti għandek ittajpjat-URL b'mod korrett. Jekk il-URL għandhom jservu kontenut eżistenti, l-amministratur tas-sistema jista 'jkollhom bżonn li żżid mapping ġdida URL talba għall-applikazzjoni intenzjonata. fil Microsoft.SharePoint.SPSite .. ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken) fil Microsoft.SharePoint.SPSite .. ctor(String requestUrl) fil Conchango.xyzzy.GetExistingDocument(String minId, String maxId, String filtru titolu) fis-C:\Dokumenti u Settings Dokumenti Tiegħi Pawl Visual Studio 2005 Proġetti xyzzy BDC_DocReview BDC_DocReview DocReviewFacade.asmx.cs:linja 69 |
Hawnhekk huwa linja 69:
użu (Sit SPSite = ġdid SPSite("http://localhost/sandbox"))
I ppruvaw varjazzjonijiet differenti fuq l-URL, inkluż l-użu reali isem tal-server, indirizz IP tiegħu, slashes tkaxkir fuq l-URL, eċċ. I always got that error.
I użati Il-Google to research it. Lots of people face this issue, jew varjazzjonijiet ta 'dan, imma ebda wieħed deher li huwa solvuti.
Tricksy MOSS sakemm tali żball dettaljata li dan ma sarx lili biex jiċċekkja l- 12 hive logs. Eventwalment, dwar 24 siegħa wara kollega tiegħi rakkomandat I jagħmlu dan, I ċċekkjati l- 12 log doqqajs u sabet dan:
Eċċezzjoni ġara waqt li jipprova li jiksbu l-irziezet lokali:
System.Security.SecurityException: Aċċess reġistru Mitlub ma jkunx permess.
fil System.ThrowHelper.ThrowSecurityException(ExceptionResource riżorsi) fi
(Isem String, Writable Boolean) fi
(Isem String) fi
() fi
() fi
(SPFarm& farm, Boolean& isJoined)
Il-Żona ta 'l-assemblea li naqas kien: MyComputer
|
Dan fetħet toroq ġodda ta 'riċerka, allura kien lura lill-Google. Li wasslitni sabiex dan forum post: http://forums.codecharge.com / posts.php?post_id = 67,135. 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 Andrew Connell tal 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. Madankollu, kollega tiegħi marru u taw l-app pool identità kont aċċess sħiħ għall SQL.
Hekk kif hi magħmula li l-bidla, everything started working.
Dak li ġara jmiss huwa l-aħjar espressa bħala haiku poeżija:
Problemi jgħollu idejhom.
You swing and miss. Try again.
Success! But how? Għaliex?
Hi ma riditx li jħallu l-affarijiet waħdu bħal dik, pprefera li tagħti l-permess minimu meħtieġ (u probabbilment b'attenzjoni għall-kitba ta 'dħul blog; I taħbit tagħha lill-punch, muhahahahaha!).
Hija ħassret permessi suċċessivi mill-pool kont identità app sakemm … 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.
Allura, biex terġa: we gave the app pool identity full access and then took it away. The web service started working and never stopped working. Bizarre.
Jekk xi ħadd jaf għaliex li għandhom ħadmu, jekk jogħġbok leave kumment.
</aħħar>