This project is read-only.

suddenly error

Topics: Developer Forum, User Forum
Feb 4, 2011 at 5:45 AM
Edited Feb 4, 2011 at 6:03 AM

Suddenly out of the blue I get a

Could not find file 'C:\domainname\foldername\App_Data\Pages\.config'

can anyone advise ?  (all the folders are there - havn't done anything..)

It looks like it has lost the home page - how do I set this - as I can't login ?

Feb 4, 2011 at 7:47 AM

You will need to work out the GUID of the homepage and then go into your App_Data/site.config file and add it to the corresponding node!

Feb 4, 2011 at 8:40 AM

Thanks - it worked..!

but why does this accour out of the blue ?

Feb 4, 2011 at 8:53 AM

The WebSite has a check to see if MWPSK is ready and if its not it resets! Beats me to why it can run after the WebSite is setup. Changed this in my version.

Check it out here and do what ya like with it :-)

in WebSite.cs GetInstance()

if (_instance.CheckEnvironmentSetup())

Feb 4, 2011 at 9:01 AM

Hi SpiderMaster

where's that located ? (haven't any website.cs file on my web hoster... )

Feb 4, 2011 at 9:03 AM

Its in the App_Code of the source code!

Feb 4, 2011 at 9:05 AM

ahh... thanks ...found it.. ;0)

Feb 4, 2011 at 9:17 AM

I have this in 1.3.1 (that's OK is it?)

       public static WebSite GetInstance()
            if (_instance == null)
                _instance = new WebSite();
                string dataFilePath = HttpContext.Current.Server.MapPath(_instance.GetDataFilename());

                if (File.Exists(dataFilePath))
                else // new website, first use
					if (_instance.CheckEnvironmentSetup())
            return _instance;

Feb 5, 2011 at 12:00 AM

Its up to you, Im trying to say I have removed everywhere in my code the ResetWebSite() method as it causes many problems. Deletes all it can!

There is another couple of reasons that the files get messed up but i cannot remember what they were!