PC Review


Reply
Thread Tools Rate Thread

C# Application Problem on Windows 2003 Server (but not on XP)

 
 
noisefree
Guest
Posts: n/a
 
      17th Jan 2007
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

 
Reply With Quote
 
 
 
 
noisefree
Guest
Posts: n/a
 
      18th Jan 2007
I've got the problem Solved from
http://groups-beta.google.com/group/...6f2761814a5622).

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...


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C# Application Problem on Windows 2003 Server noisefree Microsoft Dot NET 3 18th Jan 2007 10:55 AM
Problem running a .NET application on Windows 2003 Server Björn Hallin Microsoft C# .NET 2 18th Jan 2005 04:12 PM
ASP.Net Application - SQL Server 2000 Access Problem on Windows 2003 server from XP Vaap Microsoft ASP .NET 3 1st Jan 2005 06:41 AM
Fill() problem in VS .NET 2003 in Windows application C# with SQL Server Auto Microsoft C# .NET 7 13th Jan 2004 02:29 PM
Fill() problem in VS .NET 2003 in Windows application C# with SQL Server Auto Microsoft Dot NET 6 13th Jan 2004 12:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:23 AM.