[5.23.5] Visual Studio 2017 fail to start in sandbox

Please post your problem description here

Moderator: Barb@Invincea

Post Reply
RadarNyan
Posts: 27
Joined: Thu Aug 21, 2014 2:35 pm

[5.23.5] Visual Studio 2017 fail to start in sandbox

Post by RadarNyan » Thu Feb 08, 2018 9:19 am

---------------------------
Microsoft Visual Studio
---------------------------
Unknown Error.

You can get more information by examining the file:
C:\Users\Misaki.M\AppData\Roaming\Microsoft\VisualStudio\15.0_1cf85c1e\ActivityLog.xml
---------------------------
OK
---------------------------

ActivityLog.xml

Code: Select all

<?xml version="1.0" encoding="utf-16"?>
<?xml-stylesheet type="text/xsl" href="ActivityLog.xsl"?>
<activity>
  <entry>
    <record>1</record>
    <time>2018/02/08 14:08:14.240</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Microsoft Visual Studio 2017 version: 15.0.27130.2027</description>
  </entry>
  <entry>
    <record>2</record>
    <time>2018/02/08 14:08:14.240</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Log ID</description>
    <guid>{332A2C2F-8E4D-4A86-BD68-FC16BA76FEF2}</guid>
  </entry>
  <entry>
    <record>3</record>
    <time>2018/02/08 14:08:14.250</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Running in isolation mode.</description>
  </entry>
  <entry>
    <record>4</record>
    <time>2018/02/08 14:08:14.250</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Looking for master PkgDef file</description>
    <path>C:\Microsoft Visual Studio\2017\Community\Common7\IDE\master.pkgdef</path>
  </entry>
  <entry>
    <record>5</record>
    <time>2018/02/08 14:08:14.260</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Creating PkgDefCacheNonVolatile</description>
  </entry>
  <entry>
    <record>6</record>
    <time>2018/02/08 14:08:14.270</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>Failed to initialize Registry Root Hive</description>
    <hr>80070005 - E_ACCESSDENIED</hr>
  </entry>
  <entry>
    <record>7</record>
    <time>2018/02/08 14:08:14.270</time>
    <type>Warning</type>
    <source>VisualStudio</source>
    <description>Unable to initialize cache</description>
    <hr>80070005 - E_ACCESSDENIED</hr>
  </entry>
  <entry>
    <record>8</record>
    <time>2018/02/08 14:08:14.270</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>Failure calling InitializeAppID.</description>
    <hr>80070005 - E_ACCESSDENIED</hr>
  </entry>
</activity>
Resource Access Monitor:

Code: Select all

(Drive)     \Device\HarddiskVolume2
(Drive)     \Device\HarddiskVolume3
Clsid       -------------------------------
File/Key    -------------------------------
File/Key X  \Device\HarddiskVolume2\ProgramData\NVIDIA Corporation\Drs\nvdrssel.bin
Image       -------------------------------
Image       *:\microsoft visual studio\2017\community\common7\ide\devenv.exe
Image       *:\program files\sandboxie\sandboxiedcomlaunch.exe
Image       *:\program files\sandboxie\sandboxierpcss.exe
Image       *:\program files\sandboxie\start.exe
Image       c:\microsoft visual studio\2017\community\common7\ide\1033\msenvmui.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\api-ms-win-core-file-l1-2-0.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\api-ms-win-core-file-l2-1-0.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\api-ms-win-core-localization-l1-2-0.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\api-ms-win-core-processthreads-l1-1-1.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\api-ms-win-core-synch-l1-2-0.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\api-ms-win-core-timezone-l1-1-0.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\api-ms-win-crt-convert-l1-1-0.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\api-ms-win-crt-environment-l1-1-0.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\api-ms-win-crt-filesystem-l1-1-0.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\api-ms-win-crt-heap-l1-1-0.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\api-ms-win-crt-locale-l1-1-0.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\api-ms-win-crt-math-l1-1-0.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\api-ms-win-crt-multibyte-l1-1-0.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\api-ms-win-crt-runtime-l1-1-0.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\api-ms-win-crt-stdio-l1-1-0.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\api-ms-win-crt-string-l1-1-0.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\api-ms-win-crt-time-l1-1-0.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\api-ms-win-crt-utility-l1-1-0.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\microsoft.visualstudio.codemarkers.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\msvcp140.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\ucrtbase.dll
Image       c:\microsoft visual studio\2017\community\common7\ide\vcruntime140.dll
Image       c:\program files (x86)\common files\microsoft shared\ink\tiptsf.dll
Image       c:\program files\common files\microsoft shared\ink\tiptsf.dll
Image       c:\program files\sandboxie\32\sbiedll.dll
Image       c:\program files\sandboxie\sbiedll.dll
Image       c:\windows\system32\advapi32.dll
Image       c:\windows\system32\api-ms-win-core-synch-l1-2-0.dll
Image       c:\windows\system32\cfgmgr32.dll
Image       c:\windows\system32\clbcatq.dll
Image       c:\windows\system32\comdlg32.dll
Image       c:\windows\system32\credssp.dll
Image       c:\windows\system32\cryptbase.dll
Image       c:\windows\system32\cryptsp.dll
Image       c:\windows\system32\d2d1.dll
Image       c:\windows\system32\devobj.dll
Image       c:\windows\system32\dwmapi.dll
Image       c:\windows\system32\dwrite.dll
Image       c:\windows\system32\gdi32.dll
Image       c:\windows\system32\imm32.dll
Image       c:\windows\system32\kernel32.dll
Image       c:\windows\system32\kernelbase.dll
Image       c:\windows\system32\lpk.dll
Image       c:\windows\system32\msctf.dll
Image       c:\windows\system32\msvcrt.dll
Image       c:\windows\system32\nsi.dll
Image       c:\windows\system32\ntdll.dll
Image       c:\windows\system32\ntmarta.dll
Image       c:\windows\system32\nvinitx.dll
Image       c:\windows\system32\ole32.dll
Image       c:\windows\system32\oleaut32.dll
Image       c:\windows\system32\profapi.dll
Image       c:\windows\system32\propsys.dll
Image       c:\windows\system32\psapi.dll
Image       c:\windows\system32\rpcepmap.dll
Image       c:\windows\system32\rpcrt4.dll
Image       c:\windows\system32\rpcrtremote.dll
Image       c:\windows\system32\rpcss.dll
Image       c:\windows\system32\rsaenh.dll
Image       c:\windows\system32\sechost.dll
Image       c:\windows\system32\secur32.dll
Image       c:\windows\system32\setupapi.dll
Image       c:\windows\system32\shell32.dll
Image       c:\windows\system32\shlwapi.dll
Image       c:\windows\system32\sspicli.dll
Image       c:\windows\system32\sxs.dll
Image       c:\windows\system32\user32.dll
Image       c:\windows\system32\usp10.dll
Image       c:\windows\system32\uxtheme.dll
Image       c:\windows\system32\version.dll
Image       c:\windows\system32\wldap32.dll
Image       c:\windows\system32\ws2_32.dll
Image       c:\windows\syswow64\advapi32.dll
Image       c:\windows\syswow64\clbcatq.dll
Image       c:\windows\syswow64\crypt32.dll
Image       c:\windows\syswow64\cryptbase.dll
Image       c:\windows\syswow64\gdi32.dll
Image       c:\windows\syswow64\kernel32.dll
Image       c:\windows\syswow64\kernelbase.dll
Image       c:\windows\syswow64\lpk.dll
Image       c:\windows\syswow64\msasn1.dll
Image       c:\windows\syswow64\msctf.dll
Image       c:\windows\syswow64\msvcrt.dll
Image       c:\windows\syswow64\ntdll.dll
Image       c:\windows\syswow64\nvinit.dll
Image       c:\windows\syswow64\ole32.dll
Image       c:\windows\syswow64\oleaut32.dll
Image       c:\windows\syswow64\psapi.dll
Image       c:\windows\syswow64\rpcrt4.dll
Image       c:\windows\syswow64\sechost.dll
Image       c:\windows\syswow64\shell32.dll
Image       c:\windows\syswow64\shlwapi.dll
Image       c:\windows\syswow64\sspicli.dll
Image       c:\windows\syswow64\user32.dll
Image       c:\windows\syswow64\usp10.dll
Image       c:\windows\winsxs\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\comctl32.dll
Image       c:\windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\comctl32.dll
Image       c:\windows\winsxs\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.17514_none_72d18a4386696c80\gdiplus.dll
Ipc         -------------------------------
Ipc         \BaseNamedObjects\__ComCatalogCache__
Ipc         \BaseNamedObjects\{A3BD3259-3E4F-428a-84C8-F0463A9D3EB5}
Ipc         \BaseNamedObjects\{A64C7F33-DA35-459b-96CA-63B51FB0CDB9}
Ipc         \BaseNamedObjects\C:*ProgramData*Microsoft*Windows*Caches*{6AF0698E-D558-4F6E-9B3C-3716689AF493}.2.ver0x0000000000000011.db
Ipc         \BaseNamedObjects\C:*ProgramData*Microsoft*Windows*Caches*{DDF571F2-BE98-426D-8288-1A9A39C3FDA2}.2.ver0x0000000000000002.db
Ipc         \BaseNamedObjects\C:*ProgramData*Microsoft*Windows*Caches*cversions.2.ro
Ipc         \BaseNamedObjects\RotHintTable
Ipc         \BaseNamedObjects\windows_shell_global_counters
Ipc         \RPC Control\actkernel
Ipc         \RPC Control\epmapper
Ipc         \RPC Control\plugplay
Ipc         \Sessions\1\BaseNamedObjects\__ComCatalogCache__
Ipc         \Sessions\1\BaseNamedObjects\{A3BD3259-3E4F-428a-84C8-F0463A9D3EB5}
Ipc         \Sessions\1\BaseNamedObjects\{A64C7F33-DA35-459b-96CA-63B51FB0CDB9}
Ipc         \Sessions\1\BaseNamedObjects\1TIPSharedMemory
Ipc         \Sessions\1\BaseNamedObjects\C:*ProgramData*Microsoft*Windows*Caches*{6AF0698E-D558-4F6E-9B3C-3716689AF493}.2.ver0x0000000000000011.db
Ipc         \Sessions\1\BaseNamedObjects\C:*ProgramData*Microsoft*Windows*Caches*{DDF571F2-BE98-426D-8288-1A9A39C3FDA2}.2.ver0x0000000000000002.db
Ipc         \Sessions\1\BaseNamedObjects\C:*ProgramData*Microsoft*Windows*Caches*cversions.2.ro
Ipc         \Sessions\1\BaseNamedObjects\C:*Users**********AppData*Local*Microsoft*Windows*Caches*{AFBF9F1A-8EE8-4C77-AF34-C647E37CA0D9}.1.ver0x0000000000000002.db
Ipc         \Sessions\1\BaseNamedObjects\C:*Users**********AppData*Local*Microsoft*Windows*Caches*cversions.1.ro
Ipc         \Sessions\1\BaseNamedObjects\ComPlusCOMRegTable
Ipc         \Sessions\1\BaseNamedObjects\RegRootHive_99c
Ipc         \Sessions\1\BaseNamedObjects\RotHintTable
Ipc         \Sessions\1\BaseNamedObjects\SBIE_BOXED_DummyEvent_1500
Ipc         \Sessions\1\BaseNamedObjects\SBIE_BOXED_DummyEvent_2328
Ipc         \Sessions\1\BaseNamedObjects\SBIE_BOXED_DummyEvent_2460
Ipc         \Sessions\1\BaseNamedObjects\SBIE_BOXED_DummyEvent_5708
Ipc         \Sessions\1\BaseNamedObjects\SBIE_BOXED_RPCSS_SXS_READY
Ipc         \Sessions\1\BaseNamedObjects\SBIE_BOXED_ServiceInitComplete_DcomLaunch
Ipc         \Sessions\1\BaseNamedObjects\SBIE_BOXED_ServiceInitComplete_Mutex1
Ipc         \Sessions\1\BaseNamedObjects\SBIE_BOXED_ServiceInitComplete_RpcEptMapper
Ipc         \Sessions\1\BaseNamedObjects\SBIE_BOXED_ServiceInitComplete_RpcSs
Ipc         \Sessions\1\BaseNamedObjects\SboxSession
Ipc         \Sessions\1\BaseNamedObjects\ScmCreatedEvent
Ipc         \Sessions\1\BaseNamedObjects\TipAlpcServer
Ipc         \Sessions\1\BaseNamedObjects\windows_shell_global_counters
Ipc      O  \BaseNamedObjects\msctf.serverDefault1
Ipc      O  \KernelObjects\MaximumCommitCondition
Ipc      O  \KnownDlls\advapi32.dll
Ipc      O  \KnownDlls\CFGMGR32.dll
Ipc      O  \KnownDlls\clbcatq.dll
Ipc      O  \KnownDlls\COMDLG32.dll
Ipc      O  \KnownDlls\DEVOBJ.dll
Ipc      O  \KnownDlls\gdi32.dll
Ipc      O  \KnownDlls\kernel32.dll
Ipc      O  \KnownDlls\kernelbase.dll
Ipc      O  \KnownDlls\LPK.dll
Ipc      O  \KnownDlls\MSCTF.dll
Ipc      O  \KnownDlls\MSVCRT.dll
Ipc      O  \KnownDlls\NSI.dll
Ipc      O  \KnownDlls\ole32.dll
Ipc      O  \KnownDlls\OLEAUT32.dll
Ipc      O  \KnownDlls\profapi.dll
Ipc      O  \KnownDlls\PSAPI.DLL
Ipc      O  \KnownDlls\rpcrt4.dll
Ipc      O  \KnownDlls\Setupapi.dll
Ipc      O  \KnownDlls\SHELL32.dll
Ipc      O  \KnownDlls\SHLWAPI.dll
Ipc      O  \KnownDlls\user32.dll
Ipc      O  \KnownDlls\USP10.dll
Ipc      O  \KnownDlls\WLDAP32.dll
Ipc      O  \KnownDlls\WS2_32.dll
Ipc      O  \KnownDlls32\advapi32.dll
Ipc      O  \KnownDlls32\clbcatq.dll
Ipc      O  \KnownDlls32\CRYPT32.dll
Ipc      O  \KnownDlls32\CRYPTBASE.dll
Ipc      O  \KnownDlls32\gdi32.dll
Ipc      O  \KnownDlls32\kernel32.dll
Ipc      O  \KnownDlls32\kernelbase.dll
Ipc      O  \KnownDlls32\LPK.dll
Ipc      O  \KnownDlls32\MSASN1.dll
Ipc      O  \KnownDlls32\MSCTF.dll
Ipc      O  \KnownDlls32\MSVCRT.dll
Ipc      O  \KnownDlls32\ole32.dll
Ipc      O  \KnownDlls32\OLEAUT32.dll
Ipc      O  \KnownDlls32\PSAPI.DLL
Ipc      O  \KnownDlls32\rpcrt4.dll
Ipc      O  \KnownDlls32\SHELL32.dll
Ipc      O  \KnownDlls32\SHLWAPI.dll
Ipc      O  \KnownDlls32\SspiCli.dll
Ipc      O  \KnownDlls32\user32.dll
Ipc      O  \KnownDlls32\USP10.dll
Ipc      O  \RPC Control\lsapolicylookup
Ipc      O  \RPC Control\lsasspirpc
Ipc      O  \RPC Control\SbieSvcPort
Ipc      O  \Security\LSA_AUTHENTICATION_INITIALIZED
Ipc      O  \Sessions\1\BaseNamedObjects\CTF.AsmListCache.FMPDefault1
Ipc      O  \Sessions\1\BaseNamedObjects\MSCTF.Asm.MutexDefault1
Ipc      O  \Sessions\1\BaseNamedObjects\MSCTF.AsmCacheReady.Default1
Ipc      O  \Sessions\1\BaseNamedObjects\MSCTF.CtfActivated.Default1
Ipc      O  \Sessions\1\Windows\ApiPort
Ipc      O  \Sessions\1\Windows\SharedSection
Ipc      O  \ThemeApiPort
Pipe        -------------------------------
Pipe        \Device\HarddiskVolume1
Pipe        \Device\HarddiskVolume2
Pipe        \Device\HarddiskVolume3
Pipe        \Device\KsecDD
Pipe        \Device\MountPointManager
Pipe        \Device\Ndis
Pipe        \Device\NDMP13
Pipe        \Device\NvAdminDevice
WinCls      -------------------------------
WinCls   O  Shell_TrayWnd
Sandboxie 5.23.5, Windows 7 SP1 x64, VS2017 15.5.6 Community (fresh installation)
Sandboxie 5.23.5 | Windows 7 SP1 x64 w/ security updates only

Barb@Invincea
Sandboxie Support
Sandboxie Support
Posts: 2676
Joined: Mon Nov 07, 2016 3:10 pm

Re: [5.23.5] Visual Studio 2017 fail to start in sandbox

Post by Barb@Invincea » Thu Feb 08, 2018 4:17 pm

Hello RadarNyan,

I installed Visual Studio Pro 2017 v15, I did not select any specific components, just the basic installation and I was able to repro the issue.

I have searched the forums and it seems that there hasn't been much success running Visual Studio inside Sandboxie. The devs mentioned that they don't think this app can run sandboxed, mostly because it requires a lot of interaction with the OS and Sandboxie is isolating it.
Is there any reason why you need to run this app in SBIE?

Perhaps a VM will help you running VS2017 isolated from your host.


Regards,
Barb.-

RadarNyan
Posts: 27
Joined: Thu Aug 21, 2014 2:35 pm

Re: [5.23.5] Visual Studio 2017 fail to start in sandbox

Post by RadarNyan » Thu Feb 08, 2018 4:53 pm

The reason I want to do this is because VS2017 has so many components and a lot of them runs in the background even if I'm not using it. Surely I can run it in a VM but that would create too much overhead (addition hard drive space for another Windows installation, addition RAM for Windows running inside VM, not to mention that I'll need another Windows license).

I've read in the forum that older version of VS could be installed & run sandboxed. Maybe some debugging features (like IntelliTrace, which could be turned off) would have problem but it should be fine to run the editor and compile stuff - that's all I need.

When new versions of Chrome releases, it could stop working in sandbox and there would be a new version of Sandboxie to support it. Why give up on VS? Just because the devs "don't think this app can run sandboxed"? Can the devs at least try to make it work? I can understand some application like VMware can't run sandboxed, but VS isn't like that by all means.
Sandboxie 5.23.5 | Windows 7 SP1 x64 w/ security updates only

Barb@Invincea
Sandboxie Support
Sandboxie Support
Posts: 2676
Joined: Mon Nov 07, 2016 3:10 pm

Re: [5.23.5] Visual Studio 2017 fail to start in sandbox

Post by Barb@Invincea » Thu Feb 08, 2018 5:27 pm

Hello RadarNyan,

These are the current priorities:
viewtopic.php?f=2&t=24980

If you want to review all the tests/user reports about VS, please see:
search.php?keywords=visual+studio
Some users were able to run certain versions of it (typically older ones), some others were not able to run them at all. It's always been a tricky topic, plus as stated before, this application does require a lot of communication with Windows and using a Sandbox may just not work at all for it.

However, if any new information is found in the future, it will be posted in the forums.

Regards,
Barb.-

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 8 guests