HLOOV TSHIAB: Muab kuv lo lo lus nug no rau MSDN no (http://forums.microsoft.com/Forums/ShowPost.aspx?PostID=2808543&SiteID=1&mode=1) thiab Michael Washam txog Microsoft lub teb nrog ib cos teb.
Kuv tsim cov qhov Web site los ua ib tug BDC hauv façade rau ib daim ntawv teev SharePoint. Thaum kuv siv no ntawm kuv txoj kev loj hlob nyob, nws ua haujlwm fine. Thaum twg kuv migrated no rau ib tug neeg rau zaub mov tshiab, Ces yuav kuv tsum no yuam kev:
System.IO.FileNotFoundException: Cov ntaub ntawv Web site ntawm http://localhost/sandbox kuj tsis tau pom. Muaj tseeb uas koj tau ntaus qhov URL thwj. Yog hais tias muab rau qhov URL yuav tsum tau neeg cov ntsiab lus uas twb muaj lawm, cov neeg khiav dej num uas yuav tau ntxiv rau ib tug tshiab hais URL kuas cov ntaub ntawv intended. nyob Microsoft.SharePoint.SPSite.ctor(SPFarm ua liaj ua teb, Pas requestUri, Boolean contextSite, SPUserToken userToken) nyob Microsoft.SharePoint.SPSite.ctor(Txoj hlua requestUrl) tom Conchango.xyzzy.GetExistingDocument(Txoj hlua minId, Txoj hlua maxId, Txoj hlua titleFilter) hauv C:\Cov ntaub ntawv thiab SettingsPaulMy DocumentsVisual Studio 2005ProjectsxyzzyBDC_DocReviewBDC_DocReviewDocReviewFacade.asmx.cs:kab 69 |
Nov yog kab 69:
siv (Kawm ntawv SPSite = SPSite tshiab("http://localhost/sandbox"))
Kuv sim txawv variations ntawm qhov URL, xws li siv cov neeg rau zaub mov npe tiag tiag, nws qhov chaw nyob hauv tus IP, trailing slashes nyob rau hauv qhov URL, yam. Kuv yeej tau qhov yuam kev.
Kuv siv Hauv Google los ntsuam xyuas nws. Ntau tus neeg fim no qhov teeb meem, los sis variations ntawm nws, tab sis tsis muaj leej twg muaj solved seemed.
Ntsis NTXHUAB tricksy ntxiv li ib txog kev ua yuam kev uas nws tsis muaj tshwm sim rau kuv mus xyuas cov 12 nas muv cav. Nws thiaj li, hais txog 24 teev tom qab Kuv colleague pom zoo kom ua li ntawd, Kuv ntsuam xyuas kom paub cov 12 hive cav thiab nrhiav tau qhov no:
Kev zam tshwm sim thaum uas ua kom kis tau rau lub zos ua liaj ua teb:
System.Security.SecurityException: Npe thov ntawv tsis muaj cai.
tom System.ThrowHelper.ThrowSecurityException(Kev pab ExceptionResource) tom Microsoft.Win32.RegistryKey.OpenSubKey(Txoj hlua npe, Boolean writable) tom Microsoft.Win32.RegistryKey.OpenSubKey(Txoj hlua npe) tom Microsoft.SharePoint.Administration.SPConfigurationDatabase.get_RegistryConnectionString() tom Microsoft.SharePoint.Administration.SPConfigurationDatabase.get_Local() tom Microsoft.SharePoint.Administration.SPFarm.FindLocal(SPFarm& ua liaj ua teb, Boolean& isJoined)
Nyob zoo noj rau ntawm cov los ua ke uas tsis tau tejyam: MyComputer
|
Qhov no qhib tau hom tshiab ntawm kev tshawb fawb, ces nws txawm rov qab rau hauv Google. Uas coj kuv mus rau qhov no rooj sab laj ncej: http://forums.codecharge.com/Posts.php?post_id = 67135. Uas tsis tshua pab kuv, tiam sis nws puas tau pib ua kuv xav tias yog ib qhov teeb meem database thiab ruaj ntseg. Kuv soldiered thiab Andrew Connell rooj vag triggered thaum kawg lub xav tias kuv yuav tsum tau qhia tias yog leejtwg tus account thov pas tus mob lub database tsim nyog siv cov. Kuv xav tias nws twb tsis. Txawm li cas los, Kuv tus colleague mus thiab muab txoj app pas yog leejtwg tus account daim ntawv qhia txog kev yuav SQL.
Thaum nws ua ntawd hloov, txhua yam kev pib ua hauj lwm.
Yog zoo li cas ntxiv mus uas happened expressed li ib haiku paj huam:
Teeb meem tsa tes.
Koj viav vias thiab nco. rov sim dua.
Zoo! Tab sis yuav ua li cas? Ua li cas?
Nws tsis xav kom tawm tej yam uas nyob ib leeg li ntawd, preferring, muab tus yam tsawg kawg yuav tsum tso cai rau (thiab tej zaum with an eye to sau ib tug nkag teb chaws blog; Kuv tuav nws kom cov punch, muhahahahaha!).
Nws tshem successive permissions ntawm lub app pas yog leejtwg account kom txog … muaj tug tsis tau nws kev tso cai qhia tau meej heev rau app nyiaj pas dej ua ke yog leejtwg txhua. Cov Web site qhov tseem ua hauj lwm xwb fine.
Peb mus ua rebooted lub servers. Txhua yam tseem ua hauj lwm fine.
Li ntawd, mus recap: peb tau muab txoj app pas dej ua ke yog leejtwg tiag cov kev thiab mam li muab nws tseg. Cov Web site qhov pib ua hauj lwm thiab tsis txhob tso tseg tsis ua hauj lwm. Bizarre.
Yog leej twg paub vim li cas uas yuav tsum muaj haujlwm, thov cia ib saib.
</kawg>