When a translator (or anyone for that matter) clicks the upload button without first choosing a file a yellow-screen error is thrown.
Error importing translation file
'D:\dev\etblaw\App_Data\translationFile_df89274b-b196-4986-b837-bee833af8396.xml':
System.Xml.XmlException: Root element is missing.
Stack trace:
[Exception: Error importing translation file 'D:\dev\etblaw\App_Data\translationFile_df89274b-b196-4986-b837-bee833af8396.xml': System.Xml.XmlException: Root element is missing. at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.Load(String filename) at umbraco.presentation.translation._default.importTranslatationFile(String tempFileName)] umbraco.presentation.translation._default.importTranslatationFile(String tempFileName) +1134 umbraco.presentation.translation._default.uploadFile_Click(Object sender, EventArgs e) +1844 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3691
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Upload button without file selected throws error
Umbraco 4.7, asp.net 4.0, IIS7
When a translator (or anyone for that matter) clicks the upload button without first choosing a file a yellow-screen error is thrown.
Error importing translation file 'D:\dev\etblaw\App_Data\translationFile_df89274b-b196-4986-b837-bee833af8396.xml': System.Xml.XmlException: Root element is missing.
Stack trace:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Hi Craig
I think you should consider creating this bug on codeplex since that's where the core team handles bugs reported.
If you create this on codeplex I recommend you make a reference to it in here so people coming across this issue can vote it up.
/Jan
Thanks for the tip, Jan. I've added the bug to CodePlex: http://umbraco.codeplex.com/workitem/30172
- Craig
is working on a reply...