MicroStation Crashes with Attach iTwin Tool


 Product(s):MicroStation
 Version(s):Connect, 2023
 Environment:N\A
 Area:Reference
 Subarea:Attach iTwin

Problem

MicroStation Crashes with Attach iTwin Tool

From User...
After clicking on "Attach iTwin" icon, in Collaborate tab, MicroStation has stopped working and closing.

Call Stack
# RetAddr : Args to Child : Call Site
00 00007ff8`8cc8e1fd : 00000000`e0434352 0000007f`079fd8f8 00000270`e35d4c70 00007ff8`8d4366e0 : KERNELBASE!RaiseException+0x69
01 00007ff8`8cc8f884 : 00000000`00000050 00007ff8`8cc54f50 00000000`00000001 00000270`e3317cd0 : clr!RaiseTheExceptionInternalOnly+0x31f
Unable to load image C:\Windows\assembly\NativeImages_v4.0.30319_64\mscorlib\4bc5e5252873c08797895d5b6fe6ddfd\mscorlib.ni.dll, Win32 error 0n2
02 00007ff8`8c0fbeb4 : 00000270`e35d4ae8 00000270`e35d4c70 00000270`e35d4c70 00007ff8`2d653020 : clr!IL_Throw+0x114
03 00000270`e35d4ae8 : 00000270`e35d4c70 00000270`e35d4c70 00007ff8`2d653020 00000270`00000017 : mscorlib_ni![COLD] System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(System.String)$##6002621+0x90
04 00000270`e35d4c70 : 00000270`e35d4c70 00007ff8`2d653020 00000270`00000017 00000270`e35d4610 : 0x00000270`e35d4ae8

Solution

Retrieved MicroStation Configuration Log by executing the Show Configuration command.

Configuration variable _USTN_WORKSET_IMODELS was pointing to a location with no R/W access.
_USTN_WORKSET_IMODELS = pw://yyy-pw.bentley.com:yyy-pw-01/Documents/EDMS/WorkSpaceName/WorkSetName/Workspaces/WorkSets/iModels/

Resetting the variable value to a local drive fixed the issue.
_USTN_WORKSET_IMODELS = c:\bms\cpk-pw-01\{UserName}\dms67861\iModels\

See Also

Collaborate Tab and Attach iTwin tool

Other Language Sources

 Original Author:Leonard Jones