Re: C# Application Problem on Windows 2003 Server
- From: "Robson Siqueira" <robson@xxxxxxxxxxxxxxx>
- Date: Wed, 17 Jan 2007 14:04:18 -0500
noisefree,
Try to change the flags you use. I have something here like this working:
itm.Get(ref tempFile, (int)VSSFlags.VSSFLAG_REPREPLACE +
(int)VSSFlags.VSSFLAG_FORCEDIRNO);
where itm it is a VSSItem object.
--
Regards,
Robson Siqueira
Enterprise Architect
"noisefree" <noisefree@xxxxxxxxx> wrote in message
news:1169046651.608559.65140@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,
I have a problem on an application I am developing:
This C# Windows Application calls a C# Web Service, which it uses the
SourceSafeTypeLib DLL to interact with Visual Source Safe 6.
The problem comes out when I call the VSS method "Get(ref string Local,
int flags)", which should get a VSS file and save it to disk.
I pass "E:\max\tmp\vss\AssemblyInfo.cs" as the Local path string, but
the program exit with the error:
"System.Runtime.InteropServices.COMException (0x8004D84B): Access to
file "d:\windows\system32\inetsrv\AssemblyInfo.cs" denied".
As you can see this is NOT the path I gave to the program (why win2K3
is changing it?)
It used to work just fine on Windows XP, that's why I'm pretty sure
it's not an application problem.
Unfortunately a few days ago I had my laptop re-installed w/Win2003,
and since then it won't work anymore
So after some research I've found out that it should depends on the way
Win2003 handles access security..
If it can help: the VSS DB is on another machine which I map as share
and access it with the proper authenticated domain user (I repeat: on
WinXP it worked just fine...)
Any guess would be appreciated.
thank you
.
- Follow-Ups:
- Re: C# Application Problem on Windows 2003 Server
- From: Robson Siqueira
- Re: C# Application Problem on Windows 2003 Server
- References:
- C# Application Problem on Windows 2003 Server
- From: noisefree
- C# Application Problem on Windows 2003 Server
- Prev by Date: Re: RowFilter in DataView: Missing operand before '|' operator
- Next by Date: Re: C# Application Problem on Windows 2003 Server
- Previous by thread: C# Application Problem on Windows 2003 Server
- Next by thread: Re: C# Application Problem on Windows 2003 Server
- Index(es):