Yonglun Li's Q&A profile
SQL Server The product level is insufficient for component when executing package using C# code.
Hi, I have created a Integration Services package that takes a table in a database, and transfers it to a flat file. This package has successfully run through visual studio 2005 as a .dtsx package, and given the output that I expected. However, now, I am trying to excecute the package (as xml) using C#, and I am receving this error: Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/DTS.Pipeline : The product level is insufficient for component "Flat File Destination" (31). I do not understand how a working package would have this kind of error. Considering that it runs when I do not use C# code to execute the package means that I have SSIS properly installed, and I have the proper versions (or it should not execute ...Show All
Visual Studio 2008 (Pre-release) Animation Exception thrown seems wrong -
mStoryboard.Seek( this , TimeSpan .FromMilliseconds(0), TimeSeekOrigin .Duration ); (SkipToFill doesn't work either) I Created a project in Blend, added a 10 second, 10 frame vid - each frame has 1 digit 0-9. If I pull the storyboard from the resources and do a Begin/Stop sequence and then run the above line of code I get the exception: "The ClockController.Seek method was called using TimeSeekOrigin.Duration as the seekOrigin parameter for a Clock that has a duration of Forever. Clocks that have duration of Forever must use TimeSeekOrigin.BeginTime." The storyboard and MediaTimeline are not DurationForever or RepeatForever. Also - to use TimeSeekOrigin .BeginTime I need to know the duration and I have no easy ...Show All
Visual C# Multithreading in C#
Dear Friend I want to implement thread in C# for mean,median and mode functions. in which the calculation will be in the following sequance 1. Mean [x' = (x/n)] 2. Median [M = ((n+1)/2)] 3. Mode [z = (2M+3x')] can you help me. Thanks in advance See the Thread.Join() function, it'll do work for you. Better explore MSDN to see what does it do. I hope this will help you but in case of any problem you can come back! Best Regards, Rizwan Ahmed ...Show All
Visual Studio Express Editions More control over balloon tips?
Hi all. I'm using notifyIcon->ShowBalloonTip to have a balloon tip appear near the systray, pointing at my notify icon. But the notifyIcon object has just icon, title and text properties for the balloon tip. What if I want to add a little button in the tip Also, the balloons have a timing which is mainly governed by the system (min/max values imposed, time stops if the user is idle): what if I want to control the exact time at which the balloon will close I suppose the whole thing could be coded from scratch, but is there a simpler way Or maybe some free code availaible Thank you, Frank. The balloon tip implementation of the NotifyIcon control doesn't let you do these things. You'd have to ...Show All
Windows Forms Serious problem with Tooltip in ListView in VS2005
There seems to be a problem in VS2005 (which was not present in VS2003) when a tooltip is assigned to a listview. If the mouse hovers over a blank area of the listview it works fine, but if it hovers over a populated row the tooltip shows very briefly - not long enough to read - and then disappears. To make matters worse, for some reason a tooltip generates a MouseMove event when it disappears (even in VS2003), which causes real havoc in a program that uses the MouseMove event to set the tooltip text, because setting the text causes the tooltip to be redisplayed. When the cursor is over the blank area there is no problem, the tooltip disappears after the AutoPopDelay time (usually 5 secs) and is immediately redisplayed (VS2003 also behaves ...Show All
Software Development for Windows Vista IShellExecuteHook interface support in VISTA
Does anybody know that VISTA still support COM interface IShellExecuteHook or not Thanks for your reply. ...Show All
Internet Explorer Development IE7 issue with Integrated Windows Authentication in IIS
Hi, I've a web application developed in ASP.NET which is hosted in a Windows 2000 server with only Integrated Windows Authentication enabled. This is to make use of Active Directory Services. Now, everything works fine with IE6. But in IE7, I get the Page Not found message. When I checked the headers, I saw the status as 401.1 which, if I am correct, basically is because of some Permission issues. Why do I get this if I use IE7 This above issue is with my Production server. Now, having said that, I've a test server which is also Windows 2000 on which everything works well. I just dont have a clue as to where the problem is with my Production server. Please help me on this ASAP as I am getting a lot of calls from my clients regar ...Show All
Visual Studio Express Editions Numeric TextBox
How can I format a TextBox in order to accept only digits and the decimal separator "," or "." When I write TextBox1. I can't find in the pop-up window a field where I can specify this property... Could you please help me Thanks I wrote, inside TextBox_KeyPress event, If e.KeyChar = "." Then e.KeyChar = CChar ( "," ) End If End If If ( Char .IsNumber(e.KeyChar) Or (e.KeyChar = "," And Not TextBox1.Text.Contains( "," )) Or e.KeyChar = Chr(8)) = False Then e.Handled = True End If in order to be able to accept digits and comma. Now I'd like that, when Enter is pressed, ...Show All
Visual Studio September CTP?
Anyone have any idea as to when the Sept CTP will be released Thanks John I've been trying not to ask but I find that I have too. Can someone tell me what RTW stands for. I know what RTM is for, but have never heard of RTW. Thanks John ...Show All
SQL Server SqlExpress Bootstrapping
Hello I'm building an app for retail commercial distribution, and I'm agonizing over which database to use. I'd like to use SqlExpress, as it's supported by the code generation tool I use, but I'm wary of the download size. SqlExpr32.exe is 35 megabytes, yet Microsoft maintains that it's a " fast download ", a claim whose logic escapes me. If I try to force something like that on my buyers, I won't have any buyers (Framework 2.0 is going to be hard enough for them to swallow). I recently made the difficult decision to forfeit the use of my preferred code generator ( DeKlarit ) in favor of the VistaDB embedded database , but this article has got me thinking about SqlExpress again. Is there a lightweight distributi ...Show All
Visual Studio 2008 (Pre-release) Problem using ObjectContext with MapConnection
Hi, I am trying the code samples in the The ADO.NET Entity Framework Overview document (August 2006) that came with the CTP. I ran this code succesfully. using ( MapConnection con = new MapConnection ( Settings .Default.AdventureWorks)) { con.Open(); MapCommand cmd = con.CreateCommand(); cmd.CommandText = "SELECT VALUE sp " + "FROM AdventureWorks.AdventureWorksDB.SalesPeople AS sp " + "WHERE sp.HireDate > @date" ; cmd.Parameters.AddWithValue( "@date" , hireDate); DbDataReader r = cmd.ExecuteReader(); while (r.Read()) { Console .WriteLine( "{0}\t{1}" , r[ "FirstName" ...Show All
Visual C# how to set the system time using WIN32 API Dll calls?
hi all, i have written a code for setting the system time. the server will send the time to the client and that time is collected at the client side and the new time is set in the client side... server side code: using System; using System.Collections.Generic; using System.Text; using System.Net.Sockets; using System.Collections; using System.Net; using System.Timers; using System.Threading; namespace Server { class Program { static ASCIIEncoding ASCII = new ASCIIEncoding (); static Byte [] outstream = new Byte [256]; static TcpListener tcpl = null ; public Program() { } public static void Main( string [] args) { tcpl = ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Preparing for XNA Framework
Hey guys, I'm very excited about XNA. Creating a centeral framework using one simple language so everyone can work together is a great idea. I have applied for the beta, but I will be on vacation when it releases. Will I still be able to access it, if I get access(assuming its limited amount of people) Also, how can I start preparing to use the framework Thanks. CirdanCelebrindal wrote: I have applied for the beta, but I will be on vacation when it releases. Will I still be able to access it, if I get access(assuming its limited amount of people) It will be available for everybody. The signups just get you on the "early notification" list for when the download (and successive update ...Show All
SQL Server sql2005 Query Editor and sql logins
Under sql 2000 I could connect to a server as a speciifc sql user. How can I emulate that under sql 2005 Query Editor. (It doesn't appear to let me define the user to log in as.) TIA, Barkingdog When you click the connect button you should get a dialog asking for connection credentials. Also, in SQL 2005 if you are an admin you can change the execution context in-line by issuing EXECUTE AS login='name of login' and use REVERT to go back to your original context. ...Show All
Software Development for Windows Vista LAN Driver problem
Hi all. Finally yesterday finished downloaded Vista x64 Ultimate for my pc, it is build 5600 rc1. Upon getting into vista and being very impressed with what ive seen i started to install the drivers and such, now i couldnt install the drivers using vista so i set the compatibility for Windows XP SP2 and the drivers installed fine Unfortunately under the network area in vista it says unidentified network and the onboard lan cannot connect to my router. whenever i try to renew my ip address nothing happens and the private 169 address is given to the adaptor. Im using an Asrock 939Dual-SATA2 - This has a ULi M1695 chipset. Does anyone have an idea where a vista compatible driver is for this chipset Any help appreciated! ...Show All
