పరిష్కారము: న System.IO.FileNotFoundException “SPSite = కొత్త SPSite(url)”

UPDATE: నేను ఇక్కడ MSDN ఈ ప్రశ్నను పోస్ట్ (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 వ్యవసాయ, ఉరి 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, అది లేదా వైవిధ్యాలు, కానీ దానిని పరిష్కరించినట్లు కనిపించింది.

చేష్టలతో MOSS తనిఖీ నాకు అది జరగలేదు అలాంటి ఒక వివరణాత్మక లోపం అందించిన 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.

పని వుండాలి అని ఎందుకు ఎవరైనా తెలిస్తే, ఒక వ్యాఖ్యను దయచేసి.

</చివర>

Technorati టాగ్లు:

11 "న ఆలోచనలుపరిష్కారము: న System.IO.FileNotFoundException “SPSite = కొత్త SPSite(url)”

  1. ఫెర్నాండో గోమెజ్ ఫ్లోరెస్

    మంచి పోస్ట్, ధన్యవాదాలు. నా విషయంలో, నా సమస్య SharePoint సైట్ సేకరణ ఆ మ్యాచ్ కు webservice యొక్క apppool మార్చడం ద్వారా పరిష్కరించబడింది.

    చీర్స్,
    ఫెర్నాండో. గోమెజ్ F.

  2. విల్సన్ ఎడ్గార్

    ఎక్కువ, నేను కూడా అదే సమస్య వచ్చింది. SharePoint సర్వర్ తో అదే యంత్రం పై అభివృద్ధి పరుస్తూ, నేను ఖచ్చితంగా SharePoint అదే గుర్తింపు కింద అమలు విభిన్న అనుమతితో Asp అభివృద్ధి సర్వర్ ఉపయోగించి జరిగినది (ఇక్కడ గురించి మరింత: http://msdn.microsoft.com/en-us/library/58wxa9w5(VS.80).aspx) కాబట్టి ఏమి, నేను IIS ఒక కొత్త సైట్ సృష్టించడానికి చేసిన (పోర్ట్ 8080) SharePoint అదే గుర్తింపు తో.. మరియు కప్పబడ్డ.
    ఈ సహాయపడుతుంది ఆశిస్తున్నాము

  3. జాక్ Boyles
    SQL యొక్క securityadmin సర్వర్ పాత్ర నడిచింది తర్వాత మీరు ఎదుర్కొంటున్న సమస్య పరిష్కరించబడింది ఒక మంచి అవకాశం ఉంది. అది పని కొనసాగించేందుకు మంచి వివరణ ఉంటుంది.
  4. 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!!

ఒక Reply వదిలి పాల్ గాల్విన్ ప్రత్యుత్తరం రద్దు

మీ ఇమెయిల్ చిరునామా ప్రచురితమైన కాదు. లు గుర్తించబడతాయి *