Software Development Network Logo
  • Visual J#
  • .NET Development
  • Game Technologies
  • Smart Device
  • Microsoft ISV
  • SQL Server
  • Visual Basic
  • Visual Studio
  • Windows Forms
  • Windows Live
  • Windows Vista
  • Architecture
  • Visual FoxPro
  • VS Express Editions
  • Visual C#

Software Development Network >> Jimmy Yu MSFT's Q&A profile

Jimmy Yu MSFT

Member List

David
YRaj
Julian Jewel
Dave Arter
kerm007
dugi40
BrianM
Albert_Khor
GLAmb
SaLLuComp
Martin Hueser
Roderick Prince
kbiesbrock
JD3
Vicki Milton
igp04gueniat
AlanJensen
Dennes
arunhegde
rich4542
Only Title

Jimmy Yu MSFT's Q&A profile

  • .NET Development Collections and Configuration files

    Is it possible to save/read a strongly-typed collection into/from an app.config file   With the new Configuration Sections and stuff, I see a lot of new things, but I haven't been able to determine if this is possible. This is more of an accedemic question, I guess since I'm pretty much decided on doing my own XML file (writing the collection into a dataset and saving as xml) and writing a separate app for editing the configuration to have tighter control over what's in it.  Maybe there are other features w/ .Net 2.0 of which I'm not aware that makes more of a compelling argument to stuff it into the app config.  Thoughts ...Show All

  • .NET Development Error : execute reader requires an available open connection

    Hi all, I have an error that occurs randomnly in my web application (it does not occur all the time) - execute reader requires an available open connection , the connections current state is closed. I have the connection string defined in web.config as <add key="ConnectionString" value="Server=Server1;database=db1;uid=sa;pwd=;pooling=false;"/> For Any help ,thanks in advance Why do you have pooling set to false The fact that it is random makes me think you should enable pooling. You can also try to check the connection state of the connection If connectionobject.State = Closed Then connectionobject.O ...Show All

  • Software Development for Windows Vista Concurrency Best Practice

    First, my compliments on a very exciting product!! I wonder if someone can please comment on some best practise to handle concurrency issues when using WWF. I have potentially 100 clients that may work on the same workflow instances and a client may have an instance in a particular state in memory, while another client has already changed the state of that instance. Thank you Heinrich heinrich, There is no built in support for this in Beta1.  However, in Beta2, we've added the concept of an ownership timeout so that a particular runtime cannot lock the ownership of a workflow instance indefinitely.& ...Show All

  • Windows Forms Better ways of Reading a log file

    Hi, I want to open and read a log file after every one minute. the Log file gets updated during the minute and I only read that portion of the file which was added during the last minute. How can I do this Rught now I am doing it like this while(sr.Peek() > 0) { sLogFileLine = sr.ReadLine(); counter++; if (counter++ > LineMarker) //LineMarker is the number of lines that were read last time this loop was run   // parse the string and search for something in each line else   //do nothing }   Is there any other better way of doing this ReadLine() takes too long. Is there anyway I can specify that read a s ...Show All

  • Visual Basic How to: Query the Win32_NTLogEvent Class by User using WMI?

    How to: Query the Win32_NTLogEvent Class by User using WMI Problem: Getting 'Invalid Query' Message when query by User. Help Please!!!!!! Below Code, and 2 good results when run 1 query. Code: Imports System Imports System.Management Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim scope As ManagementScope scope = New ManagementScope( _ "\\s211097\root\cimv2" ) scope.Connect() 'EventType '1 Error '2 Warning() '3 Information() '4 Security audit success '5 Secu ...Show All

  • SQL Server unable to log in [MSDE2000]

    Hi there. I do apologise if this is the wrong place to post this. I usually use SQL Server 2000/2005 EE. But for this particular project or really just as a testing environment I require to use MSDE 2000 I had installed it, making my own setup.ini file and giving it the instance name, password and the securitymode set to SQL Thing is, I am unable to log in using osql. I always get this error: [DBNETLIB]SQL Server does not exist or access denied. [DBNETLIB]ConnectionOpen (Connect()). But no idea why since the password (which is password) has been entered correctly. This is basically what I input for osql: osql -U ...Show All

  • Visual Basic How to get Printer Status in VB?

    Hi, I just type coding for retrieve printer status whether it’s out of paper, jammed, busy etc. But it cannot run properly. Anyone who has idea on how to retrieve status of network printer hopefully can help me find the solution. Thnx Thnx in advance. Namespace System.Drawing.Printing Member of: System.Drawing Summary: The System.Drawing.Printing namespace provides print-related services. ...Show All

  • Windows Forms Viewing a word doc within a Windows Forms Application

    I would like to display a word document within my windows form application. Currently I am using the IE activeX control and passing it the word doc location. There must be a more elegant solution. Yes there is a lot of code I left out of the post...  I only posted the code relevent to obtaing the underlying DSOFramer.FramerControl of an AxDSOFramer.AxFramerControl. You must have dsoframer.ocx registered.  Try the code below... let&n ...Show All

  • Visual Studio 2008 (Pre-release) CombinedEntropy? The issuer must provide a computed key in key entropy mode

    The issuer must provide a computed key in key entropy mode 'CombinedEntropy'. Annother exception that I'm not sure how to resolve. In the clientCredentials of my client application, I have defaultKeyEntropyMode ="ServerEntropy" but I get this error about CombinedEntropy. I assume the "issuer" is my STS, but I don't know how to configure it to match the client app setting or if the client app setting should be changed. The ex gets thrown in the generated proxy : @ return base.InnerProxy.MyOperation1(myValue1); I can't say with any certainty that I have fixed the problem, but ...Show All

  • Visual Studio Express Editions Visual Studio 2005 and Frontpage 2003/Frontpage Server Extensions 2002

    This is so frustrating..please can somebody help I need to learn how to develop a web site which is powered with ASP.NET 2.0. I want to use FP2003 as my HTML/graphical tool and Visual Studio Express 2005 (Visual Web Developer Express), as the programming tool. I am using Windows XP SP2 with the integrated version of IIS5.1. I installed the Frontpage Server Extensions 2002 (Version 5.0.2.4803) to try to pair with the server extensions on the host server. When I attempt to create a Visual Studio project on my local web server ( http://myhost ) I get the message "Unable to create the Web http://mhost/NewWeb Visual Web Developer doe ...Show All

  • Windows Forms Allow Click Once Deployment only for registered Users

    I want to deploy a application by Click Once Deployment. But only users I give a password should be able to install the software. So I thought about protecting the URL with IIS access rights. But how will then work updating the software. I guess the user will have to type in his password every time the application checks for new updates Has anybody already experiences with such a scenario and can explain his experiences I believe I remember reading somewhere that this is only possible if you use Windows Integrated Authentication. In that case, the user may have to re-enter credentials when updating, but W ...Show All

  • Visual Studio Creating a new website wizard - where to put the vsz file?

    I want to create a wizard that is kicked off in Visual Studio by using the create new website dialogue such that the wizard will appear alongside the default web application and web service website types. I've got a vsz file that successfully kicks off my wizard and can happily put this into the new C# and Visual Basic project types folders but can't see where to put the vsz in order to have it appear under the create new website dialogue. Any ideas anyone Hi, You can create a project template for your website. By doing this, your template will appear along side the default web application and other web ...Show All

  • SQL Server Measure expressions and currency conversion

    OK - here is my scenario... I have a fact table containing one measure: Sales. The values of the measure are stored in the same currency (DKK) for all records. In another fact table I have exchange rates for four different currencies per day for a 15 year period (approx. 22000 records). I have built a cube around these fact tables containing two measure groups. Measure Group 1 Measure: Sales Dimensions: Time, Product, Company Measure Group 2 Measure: Exchange rate Dimensions: Time, Currency The only shared dimension between the two measure group is thus Time... The currency dimension contains one attribute hierarchy (CurrencyCode) wit ...Show All

  • Visual Studio Team System Beta 3 Refresh: Using TFSReg.exe breaks team project creation.

    Hi! To make our TFS deployment accessible from the Internet, including Reporting Services and the team portal site, we followed the steps outlined in the following article to re-register with the publicly accessible URLs: http://forums.microsoft.com/msdn/showpost.aspx postid=103796&siteid=1 However, this seems to have broken the project creation process. The New Team Project Wizard now fails with the following message: Error TF30004: The New Team Project Wizard encountered an unexpected error while initializing the Microsoft.ProjectCreationWizard.Reporting plug-in. Explanation TF30171: The Microsoft.ProjectCreationWizard.Report ...Show All

  • Windows Forms A problem with databinding

    As I know, in the .NET Framework 1.1, if I bind a string property of a type to the Text property of a TextBox and when I change the Text of the TextBox in code, the string property doesn't get updated. Only if the Text is changed by UI action, for example, input some text into the TextBox , the string property will get updated. What I would like to know is in the .NET Framework 2.0, if I use BindingSource, Do I have the function of updating source automatically if I change the text of a TextBox in code. Thanks, Chester ...Show All

©2008 Software Development Network