none
Can't start designer... System.Security.SecurityException RRS feed

  • Question

  • Just installed visual studio 2015 on windows 10 system. Trying to open designer when I get the following error:

    System.Security.SecurityException
    Designer could not be started because of a permissions issue on the drive to which it is installed. Please check the permissions of the folder before trying to start the designer.
       at Microsoft.VisualStudio.DesignTools.HostUtility.Platform.AppContainerProcessDomainFactory.CreateDesignerProcess(String applicationPath, String clientPort, Uri hostUri, IDictionary environmentVariables, Int32& processId, Object& processData)
       at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain..ctor(ProcessDomainFactory factory, IIsolationBoundary boundary, AppDomainSetup appDomainInfo, IIsolationTarget isolationTarget, String baseDirectory)
       at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.ProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
       at Microsoft.VisualStudio.DesignTools.HostUtility.Platform.AppContainerProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
       at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.Initialize()
       at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.CreateInstance[T](Type type)
       at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedObjectFactory.Initialize()
       at Microsoft.VisualStudio.DesignTools.DesignerHost.Services.VSIsolationService.CreateObjectFactory(IIsolationTarget isolationTarget, IObjectCatalog catalog)
       at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
       at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget, CancellationToken cancelToken, DesignerServiceEntry& entry, IServiceProvider serviceOverrides)
       at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
       at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfo culture, Func`2 func, CancellationToken cancelToken)
       at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.<>c__DisplayClass10_0`1.<StartTask>b__0()
       at System.Threading.Tasks.Task`1.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()

    Please tell me what to do to fix this.

    Tuesday, February 2, 2016 4:47 PM

Answers

  • Hi TwoEyedMan,

    Thank you for posting in MSDN forum.

    According to the error message, it looks like relate to the access permission. And I found a similar issue and there shows a workaround which works fine for multiple users, you can take a look from here: https://social.msdn.microsoft.com/Forums/vstudio/en-US/388dd1c5-ca01-4538-baa8-7555100e4f80/visual-studio-12-designer-could-not-be-started-because-of-a-permissions-issue?forum=vseditor

    maeneak’s solution is as below:

    For Windows 32bit, do the following to the ‘Reference Assemblies’ directory in your ‘Program Files’

    For Windows 64bit, do the following to the 'Reference Assemblies' directory in both 'Program Files' and 'Program Files (x86)'

    This must be done as administrator

    1. Select the folder in Windows Explorer, right-click and select 'Properties'
    2. Click the 'Security' tab then click the 'Advanced...' button
    3. At the top of the new window there should 'Name' and 'Owner'. Next to owner click the 'Change' link.
    4. In the new window make sure you have your local computer selected under 'From this location:'. If not click 'Locations...' and select your local computer, then click 'OK'.
    5. In the textbox under 'Enter the object name to select, type 'Users' and click 'Check Names...'
    6. Click 'OK'
    7. At the top of the page check the option 'Replace owner on subcontainers and objects'. Click 'Apply'. You may be prompted to shut the properties dialog to apply the ownership changes, if so close all dialogs then repeat steps 1 and 2.
    8. On the 'Permissions' tab select 'Users' and click 'Edit'.
    9. Select 'Full Control' then click 'OK'.

    When you start VS 2015 after this and open a designer it will prompt you that it needs to change permissions, do this and this time it will succeed.

    By the way, do you upgrade Win10 from Win7 or Win8?

    If this issue still exists, please use http://aka.ms/vscollect to gather the installation logs. After using it, you will find vslogs.cab under %temp% folder. Please upload the file to https://onedrive.live.com/ and share the link here, thanks a lot and looking forward your reply.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

    Click HERE to participate the survey.

    Wednesday, February 3, 2016 5:36 AM
    Moderator