Re: Problem using a UNC Path within a COM component in asp.net



On Jun 19, 11:10 pm, "Bill Tinker" <bill.tin...@xxxxxxxxxxx> wrote:
Hi

I would appreciate any help that would shed some light on this problem...

I have a com dll that is an API to another application. The initialize
routine of the object requires the path where the data files are located, to
be passed in as a parameter. This works fine when the data folder in on the
same machine running the aspx page. However, if the path is in the form of a
UNC (eg. \\FS01\ProjectData) the object fails with an Invalid Directory
message.

If the application is run directly from Visual Studio, the UNC path works..
However, the same code running under IIS fails.


I think it works using your user account and fails using the webserver
account.
You can check it by changing the account in the Identity properties of
the COM+


I've tried granting IUSR_MACHINE permissions to the dll, without success.
Any .Net code within the application can access the data using the UNC path
ok - it's just this com object that seems to have a problem.

Thanks
Bill

.



Relevant Pages

  • grabbing UNC path from asp.net multipart form browse
    ... the UNC for that file and eventually save that unc path to the database ... It fails when I deploy to a production server ... System.Runtime.InteropServices.COMException: Exception ... I have tried to impersonate an account ) ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: BITS 2.0 Install Fails - Permission problem
    ... > that it fails and the error code 0x8007F004. ... your local account. ... BTW my standard Google Groups search shows that this symptom ...
    (microsoft.public.windowsupdate)
  • Re: QM without "photons" or Schr?dingers wave equation
    ... correctly - fails to account for some higher order effects; ... conceptual drawback of the Barut's theory (Bialynicki-Birula [Phys. ... that the Barut's article fails to account for higher-order effects. ...
    (sci.physics.research)
  • Mail wont download messages on one account
    ... by Sod's law the account which fails is ... I've tried deleting the offending account and reinstalling it, ... I'm reluctant to delete all preferences, since my spam filter ...
    (uk.comp.sys.mac)
  • Re: Error accessing MS Access database with Linked Tables on files
    ... of using UNC path. ... How can I check that my app is running under the local anonymous account? ... that I have set (unchecking the "Allow IIS to control passwords" checkbox). ... ¤ I have a ASP.Net application that uses a MS Access database. ...
    (microsoft.public.dotnet.framework.adonet)