Installation and deployment
Version 3.x > Installation and deployment > Permissions error when running 1.9 to 3.0 Migration Kit View modes: 
User avatar
Member
Member
trint.ladd@altn.com - 2/5/2009 2:59:19 PM
   
Permissions error when running 1.9 to 3.0 Migration Kit
I'm testing the migration on a Virtual Machine before we run it on our live servers.

I have renamed the directory of my old site (was altn_www, now altn_www_19) and installed the new site at the old location (altn_www). I granted modify permission to Network Service on the new directory.

I created a new blank site (at altn_www), with a new database. Stopped the wizard before creating a site. Opened the new site manager to confirm the manager worked and no site was created.

Then I ran the migration tool kit. After supplying the source (e:\inetpub\altn_www_19) and target (e:\inetpub\altn_www) directories. Clicking "Next" yields this application error:

************** Exception Text **************
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.Windows.Forms.FolderBrowserDialog.get_SelectedPath()
at MigrationToolkit.StepProjects.btnBrowseSource_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.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)
The action that failed was:
Demand
The type of the first permission that failed was:
System.Security.Permissions.FileIOPermission
The Zone of the assembly that failed was:
Intranet


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
MigrationToolkit
Assembly Version: 3.0.2950.31921
Win32 Version: 3.0.2950.31921
CodeBase: file://san/build/Deploy/Kentico/MigrationToolkit_3_0/MigrationToolkit.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 2/9/2009 4:53:25 AM
   
RE:Permissions error when running 1.9 to 3.0 Migration Kit
Hello,

It really seems as a disk permission issue. Please follow these instructions:
http://www.kentico.com/docs/devguide/disk_permissions_problems.htm

Here you can find more information about installation in medium trust - www.kentico.com/docs/devguide/installation_in_medium_trust_e.htm.

Best regards,
Helena Grulichova