IBM Support

Opening a VS.NET/XDE project located on a shared-drive or ClearCase View causes VS.NET to report a Security Waring message at load time.

Troubleshooting


Problem

Opening a VS.NET/XDE project located on a shared-drive or ClearCase View causes VS.NET to report a Security Waring message at load time.

Resolving The Problem

SSYMPTOM:

Opening a Rational XDE .NET project located on a shared-drive or ClearCase View causes VS.NET to report a Security Warning message at load time.

CAUSE:

Attempting to open a VS.NET project (possibly containing XDE contents) that resides on a [network] shared-drive or in a ClearCase [dynamic] View, VS.NET reports a warning message stating:

"The project location is not fully trusted by the .NET runtime. This is usually
because it is either a network share or mapped to a network share not on
the local machine. If the output path is under the project location, your
code will not execute as fully trusted and you may receive unexpected
security exceptions. Click OK to ignore and continue. Click CANCEL to
choose a different project location."

[Attached is a snap-shot of the Warning message.]

Under VS.NET, by default, a UNC path (which is how VS.NET refers to shared-drive-based files/folders) is not a "trusted" location for a project.


VS.NET's reason is that a project may not run correctly when attempting to debug or run from this location. This Warning message will pop up every time, unless Security settings are modified.

RESOLUTION:

Adjusting Security levels of trust granted to a [network] shared-drive location should inhibit the above warning message from displaying. Please follow the steps below to adjust security level. Caution must be taken prior to modifying these settings, with all the ramifications and security risks it might propose to a machine. Understanding and reviewing VS.NET's Security policies and concepts mentioned in VS.NET's Help and that of the organization's is highly advised prior to taking these steps:

Administrative right on the computer are needed to make changes, and VS.NET should not be running.
Bring up the Windows Control Panel (Start / Settings / Control Panel)
Double-click on "Administrative Tools"
Double-click on the "Microsoft .NET Framework Configuration" (a.k.a 'Mscorcfg.msc')
When the .NET Framework Configuration applet window comes up, select the "Runtime Security Policy" from the left pane.
Then, click on the "Adjust Zone Security" link on the right pane, which should bring up the "Security Adjustment Wizard".
Choose the 'type' of change you will be making: just for current users or the entire machine, and click NEXT.
On the next screen, select the "Local Intranet" icon.
At this point, the trust Level bar setting should appear - Full Trust to No Trust with four level of setting - for the "Local Intranet".
Moving the bar to maximum level, upward towards 'Full Trust' should grant the correct trust level for the above warning message to not come anymore for projects opened from a [network] shared-drive or ClearCase View mapped drive location.
Click NEXT, and then click FINISH


At this point, please bring up VS.NET and opening one of those projects that caused the warning message to report, and see if adjusting the security settings for "Local Intranet" (as above steps) resolved the issue.



Related Information

[{"Product":{"code":"SSAVLQ","label":"Rational XDE Professional .NET Edition"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Component":"--","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2002.05.20.516.009","Edition":"","Line of Business":{"code":"","label":""}}]

Historical Number

136135011

Document Information

Modified date:
16 June 2018

UID

swg21130230