ClemensT's Q&A profile
SQL Server Programmatically Enabling sa Login in SS2K5?
Hello. Our software applications require the sa login to be enabled. We have a .NET (C#) installation application that installs our software applications. So, is there any way that we can programmatically enable the sa login for SQL Server 2005 Ideally, we'd like to code this into our installation application. Thanks. ...Show All
Visual Studio 2008 (Pre-release) Problem with using infocard
Hi I am trying to build a service that uses infocard mode of authentication. The service uses a WsFederation binding. The problem is that when the client selects a card and sends it across the system throws an error as follows "An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail." Inner Exception "An error occurred when processing the security tokens in the message." Could some one tell me what the problem is.. Regards Ragu Hi Michele I am using july CTP.. but still facing the problem could help me out... Thanks and regards Ragu ...Show All
Visual Studio Automation Events in a Package
I'm trying to capture debugger events through the Automation model from a VS2005 Package like below, and its not working, any suggestions why _dte2 = (EnvDTE80.DTE2)Package.GetGlobalService(typeof(SDTE)); EnvDTE80.Events events = _dte2.Events; DebuggerEvents debuggerEvents = (EnvDTE.DebuggerEvents)events.DebuggerEvents; debuggerEvents.OnEnterRunMode += new _dispDebuggerEvents_OnEnterRunModeEventHandler(this.OnEnterRunMode); Thanks, Grem Hi Grem, This is an oft asked question in this forum, though I haven't seen it recently. The problem is that your debuggerEvents variable is going out of scope, when this code exits the function it is in. You need to declare that debuggerEvents variable as a member of your addin (or ...Show All
Smart Device Development _wfopen(filename, L"w+b"); always creates something, even if path does not exist
// MS Dev. Emulator v2 8.0.60317.00 (from About) //using / for \ // filename is L"storage card/appd/dir1/dir2/file.txt" // where only L"storage card/appd" exists fH = _wfopen(filename, L"w+b"); // binary mode (unicode), create anew // this open succeeds, and (a plain) file "dir1" is created // it should fail // in case someone else hasn't already pointed this out I opened a bug on your behalf for investigation. Will keep on posted with further details on this thread. -Thanks, Mohit ...Show All
Visual Studio Team System Team Build Question
Hello, we have gotten team build up and running and our vb.net solution appears to succesfully build on the build machine. The binaries that get sent to the drop location after a build only include the primary output dll's and exe. The output does not include any of the dependent dll's (third party dlls infragistics, crystal..etc) that are needed to run the application. We would like to use InstallShield to package this output for deployment. Is there any way to get the build machine to drop all required demployment files after a build The other question we have is why does the drop location output include all the debug files when the buildtype is setup for release mode Is there a way to have TFS only drop the release binaries Any Help ...Show All
Visual C# Subtracting Times with Date
I thought this might have been a simple task...I need to subtract 4 hours from the current datetime that is input. The datetime format is mm/dd/yyyy hh:mm and the hours are a 24 hour clock. After it's input, I then take and parse this string into a strDate array and strTime array by doing args[0].split('/') and args[1].split(':'). After this is where I try to subtract the 4 hours, but there's a whole lot to account for as in if the hour is 1, you'd have to go to the previous day and if the day is the first day of the month, going back one day would take you back another month, etc. Is there an easier way to do this The month is really what's throwing me. Thanks in advance for the help! ...Show All
.NET Development Error after deleting C:\Documents and Settings\<username>\Local Settings\Temp directory contents
Hi, I'm not sure if this is the right forum for this question, but couldn't find anything more suitable. We run a windows form application developed in .NET 2.0 (C#) on a Windows 2003 Server. Today, someone deleted the contents of the C:\Documents and Settings\<username>\Local Settings\Temp folder. After that, the application has started throwing weird errors. Excerpts from the logs are: Error occurred during execution of background worker! Could not find a part of the path 'C:\Documents and Settings\<username>\Local Settings\Temp\2\inkug4vk.tmp'. Error occurred during execution of background worker! Could not find a part of the path 'C:\Documents and Settings\<username>\Local Settings\Temp\2\h12ixqfg.tm ...Show All
Smart Device Development GPRS Connect at Startup
Hi again (again), Last question, I promise. I'm looking to start the GPS up wen the device starts. I don't mind changing hte registry for this, or doing it programatically. All the stuff I have found is either for C#, or the registry info doesn't exist in my phone. Once again, any help would be very appreciated. Cheers, Dan. HANDLE *phConnection = NULL; MessageBox(NULL,L "here" ,L "Error" ,MB_OK); HRESULT hr = ConnMgrEstablishConnectionSync(&pConnInfo, phConnection, 15000, (DWORD *)CONNMGR_STATUS_CONNECTED); Should be HANDLE hConnection = NULL; DWORD dwStatus; MessageBox(NULL,L "here" ,L "Error" ,MB_OK); HRESULT h ...Show All
Visual Studio Team System TFS project deletion and Team Explorer
Following the MS Walkthrough on "Creating a New Team Project" I created the AdventureWorks team project. After messing around with it for a while I deleted the project from TFS using the Team Explorer (or so I thought). Today starting their tutorial over I tried to create the Adventureworks team project and got the Error " TF30321: The name you typed is already in use for another team project on the Team Foundation Server..." So I didn't delete it after all! How do I delete this project from TFS TIA, Barkingdog Hi Dani, Have you tried putting the project name in quotes I believe that works: tfsdeleteproject /server:servername "team projec ...Show All
Visual Basic Simple Question about Names
I notice that vb automatically creates a name for a control when it is created via the toolbox. However, if I create the control myself through code and omit the name it still works like normal. I can still refer to the control by it's variable name. Is there any downside of not providing a name for a control Troy L >Is there any downside of not providing a name for a control When you get promoted and the new guy gets to maintain your code, it may save you a severe beating if you have named them appropriately. Assuming you don't get promoted and are still maintaining your own code two years from now, it may help you avoid pulling out what's remaining of your hair if you've named them. ...Show All
Visual C++ mfcs80ud.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj)
I create a project by 'ATL Project' wizard. Then I set 'Dynamic-link library(DLL)', 'Allow merging of proxy/stub code' and 'Support MFC'. I don't add any code in it. I can build it first time. But after close it and reload it, I get a link error: mfcs80ud.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj) My VS is: Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Professional Microsoft Visual Basic 2005 77626-009-0000007-41984 Microsoft Visual Basic 2005 Microsoft Visual C# 2005 77626-009-0000007-41984 Microsoft Visual C# 2005 Microsoft Visual C++ 2005 77626-009-0000007-41984 Microsoft Visual C ...Show All
SQL Server SQL server 2005 workgroup edition in SBS 2003 R2 Max memory question
We have only a small busines and haven't got too much experience with servers and now have a proliant server coming in with SBS 2003 R2 Premium with the 4 GB max memory that SBS 2003 can handle according to the specs. We weren't planning on using the SQL 2005 worlgroup edition up till now, but now we might. According to the specs of SQL server 2005 workgroup edition however, it has a max RAM of 3GB! Is this going to be a problem and should we keep using our previous DB, or can we migrate toward SQL server with the 4 GB of RAM ...Show All
Visual Studio 2008 (Pre-release) No appropriate XAML tags for inline code
According to the documentation (...), in an XAML document one can have inline code which contains, say, C# code for event handlers. Is it possible to insert such code in an XAML created with Visual Studio If yes, what is the correct tag which should contain the CDATA element In the articles that I consulted, either <def:Code> or <x:Code> is used; however, these tags always generate errors when I try to compile the project. This is what I did: - I created a new project (WPF or XAML browser); - in the XAML editor, I added some controls - say, a <Button>; - I added a handler for the button, with ' Click="OnClick" ' - I wanted to have the code of the handler in the XAML file. For this I tried to ...Show All
Visual Studio Macro to Re/Build using MBEE targets to target .NET 1.1
Hi I have a VS2005 solution setup with additional targets debug11/release11 to build targeting .NET 1.1. It has both C# and unmanaged C++ project in it I can build it fine using MSBuild from the cmd line but I would also like to be able to build it in the IDE by hooking the built in solution/project build/rebuild/clean/cancel commands (keyboard/toolbar). I saw a mention of being able to cancel the default behavior so I'm hopeful but not certain what the best approach is. First off this seems like a common thing so has anybody already done this that's willing to share :-) Secondly is there a way to change the csc path to the 1.1 one on the prebuild event and just have the normal building work fine after that Thirdly short of ...Show All
Visual Studio Express Editions operators and hashcodes for delegates, how to overload/override.
I've noticed that C# treats a declaration like this as a type: delegate bool ValChecker ( object value); The language then allows me to do whatever I could do with a type: declare fields, cast, etc... this is actually very usefull and great stuff, but I need to go beyond this... I need to implement some comparisons which have to be smarter than just reference or even code comparisons... to put a clear example, I have a function like that: bool CompareValCheckers(ValChecker a, ValChecker b) { ... } that returns true if, and only if, for any 'value' both a and b would return the same result, without caring how do they actually determine such results. For example: if I have (this is a simplified exa ...Show All
