Felix Liu's Q&A profile
Visual Studio Undocumented error (ESS_SS_HISTOPEN) in VSS 6.0
Hi All, I'm automating VSS through the COM interface and I consistently get the same error when attempting to do a 'get' operation on items in my database. The error being returned is 0x8004D75C, which I mapped to ESS_SS_HISTOPEN (or "A history operation is already in progress"). Aside from an entry in ssauterr.h, I can't find any documentation that gives me any idea what this error actually means. Anybody have a clue Sean ...Show All
Windows Forms How can Implement a string Collection Editor in a property Grid
Hi I have done some reserch how to implement the above,however I get lost in more complex examples I have found in codeproject and so on. What I want to do is when showing my propertyGrid I want to have the ability to have a collection editor of strings. For example sake lets say I want to have a collection of car Models. THe problem i have is that i see the collection editor but when I press Add I get "Constructor on type system.string not f ...Show All
Software Development for Windows Vista ICredentialProvider
Did anybody make a successful user logon using the new ICredentialProvider interface My credentials are displayed, but I can't make them to logon. And what worse - after 20 or 30 seconds, the winlogon crashes completely with no recovery possible excepting hardware reset. I thought I basically did something wrong and decided to wait for more detailed documentation or some sample code. But MS doesn't seem to put too much effor ...Show All
Visual Studio Express Editions Generate a random number
Can someone tell me how to generate a random number that i can put into a variable Also how to declare that number an odd or even. Thank you. This should do it for you. Private Sub Button4_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim _rnd As New Random Dim _int As Integer Dim _low As Integer = 0 Dim _high As Integer = 100 _in ...Show All
SQL Server SSIS Script for Monitoring Windows Service
I would like to use SSIS Script for Monitoring Windows Service... If Windows Service Up / Down. I should be able to Notified by Using SSIS Script(SQL SERVER 2005). Please Help me How about the WMI Event Watcher Task. Not sure what you really want to do but SSIS would not be my first choice to monitor system avilability, there are plenty of better suited products available. ...Show All
Smart Device Development CameraCaptureDialog Issues
I've been having some issues using the CameraCaptureDialog class on an HTC Apache device (rebranded as the UTstarcom 6700): 1. After exiting my application, the device's camera capture screen comes into focus. This happens whether I dispose of the class instance or not, and the Close() method is protected, so I can't call that. Any ideas on getting rid of this lingering capture screen 2. On a seemingly random, intermittent basis, an InvalidOper ...Show All
SQL Server 100 SQL Databases
Hello, Can someone show me the TSQL I need to write in order to create 100 SQL databases in one go. I want them to be called DB1, DB2, DB3, DB4...etc etc I know how to create one database; --------------------------------------------------- USE MASTER GO CREATE DATABASE DB1 ON PRIMARY ( NAME = DB1_dat, FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\DB1.mdf', SIZE=4, MAXSIZE=10, FILEGROWTH=1 ) ------------------------- But I don't ...Show All
.NET Development Connect to Oracle Database programmatically using .NET 2.0
I am a little confused about this. I have worked with SQL Server databases extensively and can make a connection as simple as below: .NET 1.1 SqlConnection cn = new SqlConnection(); cn = new SqlConnection("server=localhost;database=test;uid=xxxx;password=xxxxx;"); cn.Open(); Now, that I am trying to work with Oracle databases, I run into problems. I read in .NET 2.0 that the same SqlConnection class can be used to co ...Show All
Visual Studio Team System Which Team System components?
I'm getting bogged down by all the management-speak on the Team System web pages!! Which components do I need for version control over a distributed area (http accessed ). Is it the 'Foundation server' and the VS 2005 Team Dev version VSS is absolutely *not* an option!! ;) Thanks, John Based on customer feedback (and a lot of discontent in the community), Microsoft has said that they will include Team Foun ...Show All
Visual Studio 2008 (Pre-release) Running self hosted services (WSDualHttpBinding) as windows services (Network Service)
Problem: If you want to run a WCF service (with any kind of http binding, for example: WSDualHttpBinding) as a Windows service then there is security restriction, the windows service should run with administrative rights (for registering arbitrary namespaces), but what if you would like to run the service as "Network Service" There is solution by using Httpcfg.exe (http://www.leastprivilege.com/HttpCfgACLHelper.aspx) but now the questi ...Show All
.NET Development Only one WebServiceBinding attribute may be specified on type
Hi, i am getting this exception - Only one WebServiceBinding attribute may be specified on type 'servicededcexample.MyProxy.codeservice'. Parameter name: type this is the peice of code I have - [ System . Diagnostics . DebuggerStepThroughAttribute ()][ System . ComponentModel . DesignerCategoryAttribute ( "code" )][ System . Web . Services . WebServiceBindingAttribute ( Name = "codeserviceSoap" , Namespace = http://tempuri.org/ ) ...Show All
SQL Server Slow report generation
I have developed several reports with selectable parameters. When the report is first requested three stored procedures are triggered and return the parameters (+2 min), following parameters being returned the default report is returned (+3 min), this time is unacceptable. Is there anything I can do to speed up the report generation Any help here is greatly appreciated. michael I think the first thing you s ...Show All
SQL Server Job Fails
I have a package that runs fine when manually executed, but if a job is created that executes the package the job fails. The job is run as the same account that runs sql server agent. The error message that appears is to see the job history but the job history just says the package failed. When I try to add logging no log is created. Did you check 'reconnect at logon' option (or /persistent:yes in net.exe comman ...Show All
Visual Studio 2008 (Pre-release) Using "Like" in LINQ
Can i use the "Like" operator which we use in standard SQL in LINQ any examples if its possible, or is their some other way of acheiving the same functionality using LINQ In our NPersist version ov linq we simpy made an extension method for system.string where n.Like("%hello%") select n we also added a .Soundex method (there is a working soundex implementation on codeproject.com) ...Show All
Visual Studio Team System Merging from one branch to another
I'm having issues merging from our main development branch to our test branch. Before it worked great, but we're restructuring our code, so we've moved about 100 files around. I tried merging the changes but it totally screwed the branch up. We're going to re-do the branch, but in the future is there any way to do a pure "copy & overwrite" from one branch to another Can you elaborate on "screwed up" Can you r ...Show All
