I am having a problem publishing and Orchard site via Visual Studio 2010. If I publish the site setting 'only files needed to run this application' to a local directory I can run the site without any problems when set up as a site in IIS 7. However, when
I ftp the published files to my staging server running IIS 6 I get the following error.
Root element is missing.
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.Xml.XmlException: Root element is missing.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[XmlException: Root element is missing.]
System.Xml.XmlTextReaderImpl.Throw(Exception e) +73
System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options) +44
Orchard.Environment.Extensions.Compilers.DefaultProjectFileParser.Parse(TextReader reader) +28
Orchard.Environment.Extensions.Compilers.<>c__DisplayClass1.b__0(AcquireContext`1 ctx) +117
The only way I can get the site to work on the staging server is to ftp all the development files to the staging server i.e. without going through the VS publisher, this does however mean that I have to FTP 4000+ files instead of 2000+ files.
Has anyone had a similar problem / know what could be causing this?