Posted on: 9/29/2014 2:56:44 PM | Views : 483

Hi,
I have to create a shortcut on one of our network file servers within a project folder from our inhouse ASP.net web application.  The shortcut will go to another network file server where photos will be stored.
Using the following code, I'm getting Access is Denied error.  Running this from the test environment.
Dim mediaDirectory As String = "\\serverA\Photos\12345" Dim shortCut As IWshRuntimeLibrary.IWshShortcut shortCut = CType((New IWshRuntimeLibrary.WshShell).CreateShortcut("\\serverB\projects\projectNum\photo.lnk"), IWshRuntimeLibrary.IWshShortcut) 'set target Path ...

Go to the complete details ...