ChasAA's Q&A profile
Windows Forms Finding all folders with a specific SID
Morning, First a bit of history ... using quota manager on a 2k file & print server. As people have left the company, their files have had the ownership taken by the Admin account, this however only does the ownership of the files not any folders that they have. The accounts are then deleted from the AD leaving only the SID showing inthe 'Quota Management' screen. Now I have many entries of SID's with 1-5k or so but with no files in their quota. Wonder if anyone has any suggestions as to how I could do the following without consuming vast quantities of my time. List out all the folders that are owned by a specific SID. Take ownership of the folders. Greatly appricated. Shaun ...Show All
Visual Studio 2008 (Pre-release) Analyzing SecureConversation for Interoperability with WCF and Cardspace
Hi, I've been working on Cardspace and WCF for almost a year now. I've implemented a full STS in C# but without using any MS WS API (neither WSE 3.0 nor WCF). This STS runs in a very small device which implements an embedded .NET CLR. This STS is now compliant with Cardspace using IE 7 and the selector with authentication like Mutual Certificate and UsernamePassword when Negociate credentials is turned off. In order to achieve this I had to dig into WS-Trust, WS-Security and WS-SecureConversation (as well XmlDsig and XmlEnryption) and certainly other specs I don't have in mind! To materialize this experience I have written an article for CodeProject that should interest people who are working on interoperability issues with WC ...Show All
Software Development for Windows Vista [BUG] Vista doesn't start application called "install" w/o being elevated.
Hi, I just encountered this really strange behaviour, which is definitely a bug in Vista. Consider the following situation. You're logged in as an administrator account. Start a CLI shell of your choice, start it normally, so that it's running non-elevated. Now consider a console application called install.exe. It's neither a GUI application, nor is it an installer application in the Windows sense. It's just called install.exe. In my case it's part of GNU coreutils and it's called install because it's usual task is to install software on the system. However, it's perfectly valid to call install as normal user and use it to install stuff into a subdirectory on which you have permissions. This is what happens when running under Cygwin (proce ...Show All
Visual Studio How to Add a project reference using DTE?
Hi All, How can we add a project (C# class library) reference to a Web Services project using Application Object Model (DTE) Best regards, Imesh Opps, I edited out a vital line of code. Dim MyVSProject As VSLangProj.VSProject = CType(project.Object, VSProject) ...Show All
Smart Device Development LinkId=26320 not found (Windows CE Emulator)
I am trying to use Microsoft's eMbedded Visual C++ 4.0 on WinXP SP2 and it is giving me a driver conflict error. The error I get says: Virtual PC/Windows CE Emulator: "A driver is installed that causes stability problems with your system. This driver will be disabled. Please contact the driver manufacturer for an update that is compatible with this version of Windows." The message also displays a Contact Information link: Web Site: http://go.microsoft.com/fwlink/ LinkId=26320 But the link is no longer available . A phone number is also listed (to Microsoft) but I can not get an answer since I am not an MSDN subscriber. Some research into this problem has infomed me that Microsoft and Sun have settled ...Show All
Game Technologies: DirectX, XNA, XACT, etc. d3d9.h error
I'm trying to compile my 3d engine but I get compiler errors in d3d9.h. What's wrong d3d9.h(369) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d3d9.h(369) : error C2143: syntax error : missing ',' before '*' d3d9.h(805) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d3d9.h(805) : error C2143: syntax error : missing ',' before '*' Errors like these usually indicate that you've failed to close a set of quotes, brackets, parentheses, etc. somewhere in your code. Take a quick look through your source code and make sure things are in order. ...Show All
.NET Development SelectNodes returning no nodes when there is xmlns attribute on the node
I don't know if I'm missing anything here, Here is a sample code snippet that tries to select foo nodes from xml using SelectNodes on xmldocument. In this case nl.Count always returns 0, I remove the xmlns attribute from the xml everything works. I tried passing namespacemanager and the result was the same. Any Ideas xml < TestData xmlns="urn:foo"> < foo > Foo1 </ foo > < foo > Foo2 </ foo > </ TestData > -------- Test Console Application using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.Xml.XPath; namespace ConsoleApplication1 { class Program { static void Main( ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Perspective Shadow Mapping
Hi all, I've read the Stamminger paper over and over again, but I still can't get my head around the concept. I've had no problems implementing simple shadow mapping (in fact the SDK example proved invaluable), but I'm at a loss as to how I'd implement perspective shadow mapping as described by stamminger to help correct some of the aliasing issues I'm getting. Can anyone describe the algorithm in plain english t.i.a Rob Meridy Is this the paper you are referring to I was under the impression that the ShadowVolume sample in the DirectX SDK used a similar technique as the paper, but I must admit I haven't compared them closely. In addition, the link I posted has the algorithm in pretty plain ...Show All
Visual Studio Express Editions MouseDown on a Panel, Steals the MouseUp Event, and Stops ANY Enter\Leave Events of that control.
Just like the title says, On a panel, when I mousedown, and move the mouse outside of the panel's range, and release the mouse on a different panel, the sender for the mousedown, and mouseup are identical, and they shouldn't be. Also, the mousedown event stops the enter & leave events, at least of that control, I need to get this to work right so that I can easily inventory system w/ inventory slots, that when dragged to and from each other, will change its' value in an array, the only alternate way I currently know of, is to use locations instead of senders, hopefully, it will not come to this. P.S. Sorry for the quadruple or greater than threads a page or 2 back, it kept saying that an error occured, so I kept clicking it :) ...Show All
Visual Studio 2008 (Pre-release) TabItems & Binding at runtime
I am attempting to create tabs based on how many records are returned by an ObservableCollection. When I set a break point I can see the ObjectInstances of AssetTabitems with the correct data within myTabData. The problem is I don't know the correct way to access those instances, here is what I am attempting in the red highlighted area. public void PopulateAssetTabs(string TabName) { ObjectDataProvider myTabData = new ObjectDataProvider (); myTabData.ObjectType = Type.GetType("Asset_Manager.AppData.TabListDB" ); myTabData.ConstructorParameters.Add(TabName); Binding bind2obj = new Binding (); bind2obj.Source = myTabData; foreach (AssetTabItems myItems in myTabData.Data) { // Cre ...Show All
Visual Basic Can't Get VB6 Serv Pak 6 to install in Vista RC1
Has anyone gotten VB6 Service pack 6 to install in VISTA RC1 I tried and it errors out with some cryptic error about a missing file and quits. VB shows no sp installed and programs that were created with SP6 installd on XP will not run in the API on Vista RC1 with an error message "Component missing". Has Microsoft a fix for this We have lots and lots of custom written programs that we will have to maintain and support on VISTA (if installed) and there seems no way to do it because the service Pack 6 can't install. Chris, Thank you for the information. Setting VB6 to run as Admin did work for the error I was getting when trying to run the IDE. However, I am still unable to install SP6. It looks like the only ...Show All
Visual C# accessing network drives from a windows service
Hi, I have a windows service currently written in c# v1.1 which I'm trying to port to c# version 2. What I am trying to do is to read all files in all root subdirectories of a network path and store the filenames in a database. My code for doing this looks like // get the list of directories string [] fileEntries = Directory .GetDirectories( ConfigurationSettings .AppSettings[ "FileWatcherPath" ]); foreach ( string fileName in fileEntries) { // do stuff } However it complains that it can't access the P drive, where the files are. At first I thought it might be a permissions problem, but even using the administrator account didn't solve this. Any pointers on how to do this ...Show All
SQL Server API for creating user or group
What's the SOAP API call to create a user or group It seems that when someone successfully logs into Report Server, a new user is created for that user. However, is it possible to create a list of users on demand If you are using Forms auth then somebody has written a custom security extension that manages users and groups for you. (Perhaps you are using the sample ) In that case you can see if the security extension provides an API for adding users. If you are using the sample security extension, it does not provide a mechanism (outside of the logon page), you would have to add directly to the table it uses. You are correct that RS has a table of users and policies, but it does not technically contro ...Show All
Visual Studio 2008 (Pre-release) MessageBox visual appearance in Vista
I noticed that under Vista MessageBoxes fade in, rather than just appearing instantaneously. Nice effect. Questions: Is this behavior theme specific Is it behavior that apps will pick up for free or does it require implementation work by app developers Will I be able to easily do this with other UI/Windows How Got samples It's not specific to message boxes. Any caption window will have an animation when it opens, closes, minimzes, or restores from minimized. The animations only happen when the Windows Vista Aero theme is being used, and there is no specific work for developers to do to get the animations. ...Show All
Windows Forms Setup Project, problem with file name characters
Helow I have some trouble with setup project. Some of my project's file names includes baltic characters like . After installation of my solution these file name's characters are replaced with azs. Does anyone knows how to overcome this problem Thanks I've solved this problem myself i have opened *.vdproj file of my setup project in notepad and changed line from CodePage" = "3:1252" to CodePage" = "3:1257" by default in project properties i couldn' find where to do that ...Show All
