Yes, I do. I see the icon spinning in Component Services control center when
I call the method.
the network share.
"Klaus H. Probst" <usenet001@vbbox.com> wrote in message
news:%23lhpcg6xEHA.2788@TK2MSFTNGP15.phx.gbl...
> Well, ultimately the issue here is the COM+ *security* configuration, not
> the public interface of your components.
>
> If you are getting an access denied exception then there's really not much
> you can do except ensure that you *are* running the COM+ application under
> the correct identity (have you verified that you are running in COM+ at
> all?
> If it's a server application, can you see it "spinning" when it activates
> in
> the COM+ admin?) and that it has the necessary permissions to read/write
> that share.
>
>
> --
> Klaus H. Probst, MVP
>
http://www.vbbox.com/ >
>
> "VK" <vk@nowhere.net> wrote in message
> news:osokd.58128$fF6.25364174@news4.srv.hcvlny.cv.net...
>> Like I wrote before, I do have public methods:
>>
>> public class fileMgr {
>>
>> protected FileInfo fl;
>> public fileMgr() {}
>>
>> public static long Copy (string sourceFileName, string targetFileName)
>> {
>> fileMgr mgr = new fileMgr();
>> mgr.fl = new FileInfo(sourceFileName);
>> if (mgr.fl.Exists)
>> {
>> mgr.fl.Copy(targetFileName)
>> }
>> else
>> {
>> throw new ex("Missing file " + sourceFileName);
>> }
>>
>> }
>>
>> }
>>
>> In the web page I call:
>>
>>
> fileMgr.Copy("\\server01\share$\Data01\somefile.pdf","\\server02\normalshare
> \Data02\newname.pdf");
>>
>> Because of security problem I am always getting that file does not
>> exists.
>> That why I am saying that it looks like I am missing something in
>> configuration of the COM+ component.
>> Tried different things - did not find any thing yet.
>> Any hint would be greatly appreciated
>>
>> Vic
>>
>>
>
>