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>
tug yawg , kuv hlub koj , u ua ib hnub , Kuv twb ua rau nws mus yuav luag ib hnub , thiab koj xwb rua kuv lub sij hawm
Ncej zoo, tsaug. Hauv kuv tsev neeg, kuv qhov teeb meem ntawd solved los hloov tus webservice apppool mus phim uas ntawm lub sharepoint site collection.
Cheers,
Fernando A. Gómez F.
Kuv xav hais tias sim rau 4 teev. Thaum kawg nws pab kuv.. Thanks heev Jeffrey Knight
nyob zoo, Kuv kuj muaj qhov teeb meem qub. Thaum uas tsim tau nyob rau tib lub cav uas sharepoint neeg rau zaub mov, Kuv twb siv neeg rau zaub mov kev Asp uas tso cai txawv tsis yeej tsis khiav ntawm tus tib neeg li sharepoint (ntxiv txog qhov no: http://msdn.microsoft.com/en-us/library/58wxa9w5(VS.80).aspx) ces dab tsi, Kuv twb ua ib qhov chaw tshiab hauv IIS (chaw nres nkoj 8080) nrog tus tib neeg ua sharepoint.. thiab voila.
Vam tias qhov no yuav pab
Tsaug rau tus ncej. No fix puas tau ua rau kuv:
http://www.rootsilver.com/2008/10/the-web-application-at-httploc
Zoo writeup. Peb nrog rau qhov teeb meem qub raws nraim tamsim. Yam teeb meem thiab npaj txhij txog/qhia behaviour no xyov vim li developers ntau tsis tau sawv nrug SharePoint!
Qhov hauv tsab xov xwm no….”muab txoj app pas dej ua ke yog leejtwg tus account daim ntawv qhia txog kev yuav SQL”, ua koj piav ntau zog ntxiv? “yog leejtwg pas APP” Kuv sav ua ntej tias tus pas app ntawm lub sharepoint site, tab sis npog “daim ntawv qhia txog siv SQL”, koj yuav muab ua uas li cas? Tsim tus ID nkag mus rau hauv tus neeg rau zaub mov db rau lub app pas kheej kuv xav tias tsis txaus heev…li ntawd, yog nws nyob hauv sharepoint cov db twg tus ID nkag mus tshiab tau dbo (?) ntaub? Los yog lwm yam sharepoint db tus zoo li, ib yam li cov config db? Rau kuv uas yog tawv, vim kuv sp qha db thaj tsis yog leej twg sql neeg rau zaub mov lom, thaj tseem nyob rau hauv “/Microsoft Office Servers/14.0/Data”, xijpeem kuv tsis pom nyob rau hauv sql neeg rau zaub mov mgr….muaj tswv yim li cas kuv muab “daim ntawv qhia txog siv SQL” qhov no? Teb yuav tau menyuam…Kuv tsis yog zoo tua tau kuv console app los tsim tau ib yam twj paj nruas spsite!!
Tu siab rau cov ib txwm tsis tiv thaiv. Kuv xav tias koj yuav tau nws cov hauj lwm. 🙂