সমাধান: উপর System.IO.FileNotFoundException “SPSite = নতুন SPSite(url-)”

আপডেট: আমি এখানে দুটিই 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 খামার, URI 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-এর trailing স্ল্যাশ, প্রভৃতি. I always got that error.

আমি ব্যবহার গুগল 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 Andrew Connell’s 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. কিন্তু, my colleague went and gave the app pool identity account full access to SQL.

As soon as she made that change, everything started working.

What happened next is best expressed as a haiku poem:

Problems raise their hands.
You swing and miss. Try again.
Success! But how? কেন?

She didn’t want to leave things alone like that, preferring to give the minimum required permission (and probably with an eye to writing a blog entry; I beat her to the punch, muhahahahaha!).

She removed successive permissions from the app pool identity account until … 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.

সুতরাং, to recap: we gave the app pool identity full access and then took it away. The web service started working and never stopped working. Bizarre.

If anyone knows why that should have worked, একটি মন্তব্য করুন.

</শেষ>

Technorati বিভাগ:

11 চিন্তা "সমাধান: উপর System.IO.FileNotFoundException “SPSite = নতুন SPSite(url-)”

  1. Wilson Edgar

    উচ্চ, I also had the same problem. While developing on the same machine with sharepoint server, I was using Asp Development Server with different permission not certainly not running under the same identity as sharepoint (more about this here: http://msdn.microsoft.com/en-us/library/58wxa9w5(VS.80).aspx) so what, I’ve create a new site in IIS (port 8080) with the same identity as sharepoint.. and voila.
    Hope this helps

  2. 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!!

একটি উত্তর ত্যাগ Benjamin উত্তর বাতিল করুন

আপনার ইমেইল ঠিকানা প্রচার করা হবে না. প্রয়োজনীয় ক্ষেত্রগুলি চিহ্নিত করা আছে *