a strange Exception whenever i click on comments or Permalink.....Help

Topics: ASP.NET 2.0, Business Logic Layer
May 5, 2008 at 11:53 AM
Edited May 5, 2008 at 11:55 AM
when i click on Permalink i get this citical Exception

System.IO.FileNotFoundException: Could not find file 'D:\vishal project\my\HeroesIndia\HeroesIndia.Web\App_Data\stopwords.txt'.

Source Error:


Line 258: private static StringCollection GetStopWords()
Line 259: {
Line 260: using (StreamReader reader = new StreamReader(System.Web.HttpContext.Current.Server.MapPath(BlogSettings.Instance.StorageLocation) + "stopwords.txt"))
Line 261: {
Line 262: string file = reader.ReadToEnd();

*or *

when i click on
Comments

Could not find file 'D:\vishal project\my\HeroesIndia\HeroesIndia.Web\App_Data\stopwords.txt'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not find file 'D:\vishal project\my\HeroesIndia\HeroesIndia.Web\App_Data\stopwords.txt'.

Source Error:


Line 258: private static StringCollection GetStopWords()
Line 259: {
Line 260: using (StreamReader reader = new StreamReader(System.Web.HttpContext.Current.Server.MapPath(BlogSettings.Instance.StorageLocation) + "stopwords.txt"))
Line 261: {
Line 262: string file = reader.ReadToEnd();


Source File: D:\vishal project\my\HeroesIndia\HeroesIndia.Core\Search.cs Line: 260

Please help me i am new Towards Development..
and integrate the blog project in my existing site.


May 5, 2008 at 4:32 PM
The error says that it can't find or it can't open ~/App_Data/stopwords.txt, which is included in BlogEngine.

It sounds that either you have an incomplete installation or a permissions or settings issue. Make sure you've given write permissions in App_Data and check your storagelocation (if you changed it from the default).