StrataFrame Forum

Auto Check Out Localization Files

http://forum.strataframe.net/Topic27821.aspx

By Edhy Rijo - 8/4/2010

It would be very nice and helpful if the Localization and Messaging Editor could automatically check out localization files when generating the XML files.



Currently if the localization files are "Checked In" and "Read Only", the generation process will just fail.
By Ivan George Borges - 8/4/2010

Hey Edhy!

Just curious, what source control are you using? I have Visual Subversion over here right now and it works just fine when I Generate the XMLs.

By Edhy Rijo - 8/4/2010

Hi Ivan,

I am using TFS with VS2010, and if I don't check out the localization files ahead I will get the following error:

UnauthorizedAccessException

Access to the path 'E:\Visual Studio 2008 Projects\StrataFrame\Card Tracking System Projects\CardTrackingSystem.NET\Test\TestBuild\Card Tracking System\Localization Files\Messages_1033.XML' is denied.




Source : mscorlib



Stack Trace:

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)

at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)

at System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding)

at System.Data.DataTable.WriteXml(String fileName, XmlWriteMode mode, Boolean writeHierarchy)

at System.Data.DataTable.WriteXml(String fileName, XmlWriteMode mode)

at SFMessaging.MessageEditorBasics.GenerateXMLDocuments(Int32 ProjectPK, String CurrentLanguageText, Int32 CurrentCodePage, Boolean Silent)

at SFMessaging.MessageEditor.cmdPackage_Click(Object sender, EventArgs e)

at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)

at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

at System.Windows.Forms.ToolStrip.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)

at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

By Ivan George Borges - 8/4/2010

Got it. Ermm