Solutio: System.IO.FileNotFoundException in “SPSite = novum SPSite(url)”

UPDATE: Ego missae hoc ad quaestionem hic MSDN (http://forums.microsoft.com/Forums/ShowPost.aspx?PostID=2808543&SiteID=1&mode=1) and Michael Washam of Microsoft responded with a concise answer.

Creavi telam ministerium agere Latitudo autem ante faciem BDC-amica to a SharePoint list. When I used this from my development environment, id operato simila. Cumque proficiscerentur de hoc novum server, Ego hunc errorem inciderunt:

System.IO.FileNotFoundException: Textus applicatio ad http://localhost/sandbox non est inventus. Quin ut vos typus recte URL. Si URL debent existentis contentum seruientibus, ratio administrationis necessaria ad addere novum URL petitionem mapping intento applicationem. at Microsoft.SharePoint.SPSite .. ctor(SPFarm firmam, Uri requestUri, Boolean contextSite, SPUserToken userToken) at Microsoft.SharePoint.SPSite .. ctor(String requestUrl) at Conchango.xyzzy.GetExistingDocument(String minId, String maxId, String titleFilter) in F:\Documenta et luctus Paulus mi documenta Visual Bulla MMV, volutpat xyzzy BDC_DocReview BDC_DocReview DocReviewFacade.asmx.cs:Linea 69

Hic est recta 69:

usura (SPSite = new site SPSite("http://localhost/sandbox"))

Ego conatus diversis varietates in URL, servo usura possidet realis nomen est scriptor, suo loco IP, Rhenus oppugnant in URL, etc. I always got that error.

EGO adsuesco Google to research it. Lots of people face this issue, vel illum variationes, sed non videbatur ita solvi.

Ita dumtaxat ut non MUSCUS Tricksy occurrere feugiat aduersus errorem 12 hive logs. Tandem, de 24 horarum collegam meum, commendatur ut faciam, Ego sedatus ex 12 et invenit hoc log alveare:

Exceptionis probatio, dum occurrit loci conparandi firmam:
System.Security.SecurityException: Rogatur pateat quod non liceat registry.
at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource) at
(String nomine, Boolean writable) at
(String nomine) at
() at
() at
(SPFarm& fundum, Boolean& isJoined)
Contio fuit, qui defecerunt in Zonam:  MyComputer

Hoc novum aditus patefactus investigationis, Lorem fuit ad. Qui eduxit me ad hoc forum stipes: http://forums.codecharge.com / posts.php?post_id = (LXVII)CXXXV. 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 Andreas Connell scriptor 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. Autem, collega ingressus dedit app piscinæ propter identitatem plénum aditum ad SQL.

Vt illa mutatio, everything started working.

Quid deinde factum sit, sicut melius dici haiku poem:

Quaestiones manus tollere.
You swing and miss. Try again.
Successu! But how? Cur?

Ut non solum relinquens, minimum praeferentes dare licentiam postulatam (probabiliter et cum oculo ad scribendi a blog ingressu; Delebo eam ferrum, muhahahahaha!).

Successiva illa removentur ab permissiones app piscinæ propter identitatem donee … 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.

Ita, ut metent: we gave the app pool identity full access and then took it away. The web service started working and never stopped working. Bizarre.

Si quis autem ignorat, quid fecisse, commodo licentia a ineo.

</finem>

Technorati Tags:

11 cogitationes on "Solutio: System.IO.FileNotFoundException in “SPSite = novum SPSite(url)”

  1. Fernando Gómez Flores

    Nice stipes, Gratias. In meam, forsit est solved per webservice mea mutata est scriptor apppool aequare quod de sharepoint collection site.

    Fremitus,
    A Fernando. Gómez F.

  2. Edgarus Wilson

    HI, Ego quoque had idem eadem idem forsit. Dum prosequens in eadem server apparatus sharepoint, Ego usura áspidis ipsum Servo diverso certe non liceret, non currit sub idem identitate sharepoint (super hoc plus hie: http://msdn.microsoft.com/en-us/library/58wxa9w5(VS.80).aspx) ita quod, Mihi sunt partum a novus site in IIS (portu 8080) cum idem identitate sharepoint.. et voila.
    Spero is succurro

  3. Zac Boyles
    Est casus quod bonum est scriptor securityadmin SQL servo partes fixa exitus es quondam erat Cucurrit. Quod bonum foret pro eo explicatio quoque perdurantes operari.
  4. Faery

    Nice writeup. We are having exactly the same issue right now. This kind of problem and unexpected/unexplained behaviour is exactly why a lot of developers cannot stand working with SharePoint!

  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, sed “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” hoc in casu? Any reply would be appreciated…i’m kind stuck getting my console app to create an spsite object!!

Leave a Reply to Benjamin Cancel reply

Tua inscriptio electronica non editis. Velit sunt insignis *