roger101's Q&A profile
Visual Basic Handling a DBConcurrencyException
In my DBConcurrencyException I get the changes from the original dataset, reload the dataset then merge in the changes. However, when I call update I still get the DBConcurrencyException. I'm using a command builder, could this be the problem The code is below: Dim cn As SqlConnection = New SqlConnection( "Data Source=DESKTOP\SQLExpress;Initial Catalog=NorthWind;Integrated Security=True" ) Dim adapter As SqlDataAdapter = New SqlDataAdapter Dim dsOriginal As DataSet Dim dsChanges As DataSet Dim cb As SqlCommandBuilder Try adapter = New SqlDataAdapter( "SELECT CustomerID, CompanyNa ...Show All
Visual Studio Express Editions A first chance exception of type 'System.NotSupportedException' occurred in mscorlib?
Hi, I'm using this code to do encryption. However in VS Express 2005, it generates below exceptions. In 2003, I never noticed that this generated exception. Any1 knows why and how to fix it weird thing is: although it generates exception, seems it encrypted/decrypted data correctly. ======================================== A first chance exception of type 'System.ObjectDisposedException' occurred in mscorlib.dll System.ObjectDisposedException: Cannot access a closed Stream. at System.IO.__Error.StreamIsClosed() at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count) at System.Security.Cryptography.CryptoStream.FlushFinalBl ...Show All
.NET Development Webservice deployment
Hi, I am facing some issues trying to create a Setup project for my webservice. I have done this thousand of times on 1.1 but things are a little different on 2.0 I have a simple webservice, with all these new folders that have mess my file organization (app_code, app_data, app_globalResources, etc). The webservice works fine and now I need to create a setup project so I can distribute the webservice in a single installation file. The problem is the following one: When I create the web setup project and I try to add the "Primary output" the form appears with only one entry , "content"... mmm... does not look righ ...Show All
Windows Forms How can I make my forms move faster ?
Dear .NET I have a C# solution on .NET v2 that has a GUI project in it, The Forms are defined as "global" static objects on the Main() so that I will B able 2 use them from anywhere through MainApp.MyForm.Is_Flag_On; I start the application from the Main() like this: Form_Main = new GUI. Main_Form (); Application .Run(Form_Main); The problem is that the Forms became TOO SLOW !!! 1. You can see it when you Show / Close any Form (the controls in it are being painted on the form - first the control area is black and then it paints - like if something was overriding the OnPaint event) 2. When any of th ...Show All
Windows Forms Bug in C# only in Windows 2003 .NET framework 2.0
Hello, I am encountering a bug, and I can't figure out what it is causing. I am catching all what I can, but still it exists. The funny is that it is only available on Windows 2003. Here is the output. Can someone help me finding/killing this bug Thanks. ESTAN See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.ArgumentOutOfRangeException: InvalidArgument=Value of '-1' is not valid for 'index'. Parameter name: index at System.Windows.Forms.ListView.GetItemState(Int32 index, Int32 mask) at System.Windows.Forms.ListV ...Show All
Software Development for Windows Vista Problem with Ati Radeon 9800 pro on Vista 5308 (error Code 10)
Hi, my name is Gabriele,I have the ATI RADEON 9800 Pro card but windows give me the error "Code 10" (the hardware wasn't start). I'v install the last relase of driver (Build 5308) and i've update my bios to the last ROM. Someone get the same error If yes how u resolved it Thank you. Gabriel. This form is for discussing Windows Vista user interface programming. If you have installation or driver problems, you can try the microsoft.public.longhornhelp newsgroup . ...Show All
Visual Studio Team System Backup job does not truncate the SQL log files
I've implemented a standard Maintenance Plan to backup up the Team Foundation databases. (Full recovery model.) For some reason the log files doesn't truncate and shrink, as I believe they should do automatically after a backup is done, and a CheckPoint should have been set. I believe the latter doesn't happen (hence no truncate), but could anyone help me figure out why not Espen The log files will not automatically shrink once the backup has started, but they will stop growing. The checkpoint defines the active portion of the log. When the checkpoint is performed, the inactive portion of the log is availa ...Show All
Smart Device Development Will more processor types be supported in the VS 05 release
Hi - A question to somenoe 'on the inside': On the 'Platforms' panel we get: Instruction sets: ARMV4 When the 'real deal' gets here, will there be some other goodies like Mips and SH3... Thanks - John Yes, it's true for 2002, 2003, 2003SE and WM 05. This it NOT true for PPC 2000 (and older), but it's long gone. Custom CE can run on various processors as well. WM 05 is ARMV4I flavor, others are ARMV4. ARMV4I can run ARMV4 code directly. It is a common knowledge (though I work for Microsoft and know that first hand). See this for example: http://msdn.microsoft.com/library/ ...Show All
.NET Development Unable to use FTPWebRequest over SSL
Hi I have been trying to connect to a FTP server using SSL. I have followed the example on MSDN - ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref10/html/P_System_Net_FtpWebRequest_EnableSsl.htm However I keep getting an exceptions when then “ request.GetResponse ” method is called. The exceptions is “WebException” and message is “The underlying connection was closed: The server committed a protocol violation” Does anybody have any working example to connect to a FTP server over SSL Thanks for your help. Sorry about posting a question in this thread. The question I had is related to is how to s ...Show All
Software Development for Windows Vista Beta 2.2 hosted State Machine Workflow - runtime keeps disappearing
I have a state machine workflow hosted in ASP.NET 2.0. I start the runtime in global.asax, as follows: string trackingConnectionString = ConfigurationManager .ConnectionStrings[ "TrackingConnectionString" ].ConnectionString; System.Workflow.Runtime. WorkflowRuntime workflowRuntime = new System.Workflow.Runtime. WorkflowRuntime (); workflowRuntime.AddService( new System.Workflow.Runtime.Tracking. SqlTrackingService (trackingConnectionString)); workflowRuntime.AddService( new System.Workflow.Runtime.Hosting. SqlWorkflowPersistenceService (trackingConnectionString, true , new TimeSpan (0, 0, 0, 10, 0), new ...Show All
Visual Studio Team System Associating an editor of choice with HTML files in the Team Explorer and on Sharepoint
I'm finding it very frustrating attempting to empower a whole team to edit and work with HTML files using the VSTS. We have two interfaces to the same document library: 1) Internet Explorer (using the Project Portal driven by WIndows Sharepoint Services) 2) The Team Explorer (in Visual Studio 2005) I have three staff all of whom want to edit HTML files in our project and are not developers (but managers and sales people). I face the following befuddling observations: A) In Internet Explorer the only option provided for editing HTML files in the document library appears to be the "Edit in Microsoft Office FrontPage" command on the ...Show All
SQL Server Indexes on temp tables in stored procs
I've learned that, to help prevent/minimize proc recompiles, it is best to create all needed temp tables first, before doing anything else in the sproc. What about indexes on those temp tables Is it better to create the index immediately after each temp table is created, or is it better to create all the temp tables first, then create all the indexes Since you don't have data in your temp tables at either point, it really doesn't matter that much. You'll have some metadata operations to do if you convert from a heap to a clustered index later on, but the cost will be miniscule, and virtually undetectable. Thanks, Ryan S ...Show All
Visual Studio Team System The node specified is not found in the classificaiton hierarchy
Using Beta 3. Used CMMI template to create new team project. Opened up "Areas and Iterations" windows for new project. Deleted Iteration 1 and 2 nodes. Renamed Iteration 0 node to 3.0.0. Tried to run "All Work Items" query and recieved this error: TF51011: The node specified is not found in the classification hierarchy. Is this a known bug Jason, I am not able to repro this on the lastest build we are working on. Did you try to close the query, refresh, reopen the query after making the changes I will investigate this more. Thanks, Avanti ...Show All
Visual Studio Team System Exclude From Source Control
Greetings, I am using Beta 3 Refresh, and need to exclude a file from source control. I have read that there is a regression bug which has been fixed in the final product, but I need to be able to exclude a file now. Is there a way to exlcude a file via the command prompt or some other way Thanks in advance, -Brad One workaround is to allow the IDE to pend an Add for the file when the file is added to the project and then immediately Undo the pending Add. After that the file will be treated as noncontrollable. I'm out on leave right now and am unable to check ...Show All
Visual Studio Tools for Office Visual Basic 2005 and MSWord Rule Bar
I am trying to create a word document that integrates the MSWord Rule Bar. I have looked everywhere and I do not see where this can be added to the rulebar or the form itself. I am using the basic version that was given away at the .net meeting. Could that have something to do with it Please email me. Hi I am not sure whether you are meaning the Ruler Bar There is no programming layer for this accept for adding tabs. Can you elaborate a little more on your question. Regards ...Show All
