Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / January 2007

Tip: Looking for answers? Try searching our database.

Application Problem on Windows 2003 Server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
noisefree - 17 Jan 2007 15:11 GMT
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
noisefree - 18 Jan 2007 11:09 GMT
I've got the problem Solved from
http://groups-beta.google.com/group/microsoft.public.dotnet.general/browse_threa
d/thread/2eacded5e158755d/cb6f2761814a5622?hl=it#cb6f2761814a5622
).

I used these flags when calling VSS:
(int)(VSSFlags.VSSFLAG_FORCEDIRYES | VSSFlags.VSSFLAG_RECURSYES)
which I know now they are the problem...

These are the right ones:
(int)VSSFlags.VSSFLAG_REPREPLACE + (int)VSSFlags.VSSFLAG_FORCEDIRNO

Now the application works as usual.

If anybody finds the same problem...
;)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.