nhaas's Q&A profile
Software Development for Windows Vista Workflow not Persisted
Dear all, I have a StateMachine like this: State1 ----- Event Driven ----------HandleExternalEvent ----------SetState (to state2) State 2 ----- Event Driven ----------HandleExternalEvent ----------SetState (to state3) State 3 ----- Event Driven ----------HandleExternalEvent ----------SetState (to state4) State 4 (Final State) And my host application do this: 1) Implemented the SQLPersistenceService (no tracking yet), set unloadonidled to 5 seconds. Added Handler for both workflow idle and persisted events. 2) The use click a button to raise an event to start a new workflow instance (State 1). By default, State1 will prompt an alert then goto State2 (become idle). The host actually unlo ...Show All
Smart Device Development deploy with the .exe file
I have finished an application with c# .net cf 2.0 And I build it with the setting is "release" "any cpu", then I send the application's .exe to my user, and the exe file be in the application\bin\release . the user's handset is windows mobile 5 handset. Can the .exe run at the user's handset Is it right of my deploy way Please tell me, Thank you This is because I believe it is against the rules to re-distribute or host the files on your server. The link I have given is for the redistributable package, which you then I think customize to deploy the .NET CF 2.0 with your application. I am pretty sure that it is not allowed for a user to host Micros ...Show All
Visual Basic When to use New?
Not having any formal programming background I have always been confused as to when to use the New keyword. Dim x as Integer is simple enough. Dim x as New Integer is syntactically allowed but never done as far as I can see. The following code works nicely but why a New for the TableAdapter and not for the DataRow. Just curious. Thanks to anyone with an idle moment to help explain this. GS Dim tableAdapter2 As New VBNMDataProvidersTableAdapters.ProvidersTableAdapter Dim myRow2 As DataRow = tableAdapter2.GetData.FindByProviderID( Me .ComboBoxProviderID.SelectedValue) The datarow doesn't need new because you're not creating a new one, one is being created for you by the method th ...Show All
Smart Device Development Application start fails on NETCF 1.0 SP3
Hi, I have a big application for NETCF 1.0 SP3. Sometimes the app. fails when starting - without errors or Exceptions - simply the form disappears and this can occurs on different step of start (initialization) logic !!! Any ideas for the possible reason Regards Tihomir Ignatov Are you capable of stepping through the code until the crash occurs Can you comment out parts that use P/Invoke and see if it still happens Sounds like your condition is also memory-related, i.e. it won't occur unless memory is tight and something gets overwritten becase of heap reallocations. Check that you properly pin memory passed down to the native code ...Show All
Windows Search Technologies WDS 2.6.5 Stops searching
I have WDS version 02.06.5000.5378 installed on my Windows2000 computer. Generally, it seems to be working fine. I use it frequently with no problems. However, about every two days or so, apparently randomly, the search part stops working completely. Whether I try to open a search window or I type text in the DeskBar, there is no response, no error message, it just sits there quietly. The indexing appears to be still running successfully. So far, the only way I could get the search to work again is to restart the computer. Exiting and restarting WDS makes no difference. Stopping and starting indexing also makes no difference. I already uninstalled and reinstalled and that made no difference. I have now come to depend on MSN WDS and ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do i do rigid,soft physics and particle stuff in XNA?
I'm new to XNA, got the basics. Can you help There are no existing ways of doing rigid body or soft body physics, or particle systems in XNA. You'd have to develop your own engine(s) for these, or find an existing one written in .net that doesn't use unmanaged code. ...Show All
Visual C# Reading Database Table Names
I'm looking for a way to read the table names from the tables in a sql server 2005 database into an array in C#. Anybody know if this is possible without using a stored procedure and if so how to go about doing it. Thanks, Eric The other way to do this is to issue a command against the database to which you are connected. Assuming you're familiar with creating a SqlCommand object, the SQL statement would be Select INFORMATION_SCHEMA.TABLE_NAME From INFORMATION_SCHEMA.TABLES Where TABLE_TYPE = 'BASE TABLE' The result from the Select command would be either a data reader or data table as you chose to run the command over which you could then add the results into an array Have a look at the ...Show All
Visual Studio Team System Has this been resolved?
I am seeing the same behavior for some of my webtests when opening a loadtest. The last thread was back in November. Has anyone found a fix for this Thanks ! Sorry for the confusion, I tried to add a thread to an open issue regarding an error from VS Team testers edition and obviously failed. The problem was that I could not use a UNC path for webtests not stored on my local box. After a little more research I tracked down the fix to .NET Framework security and resolved it via mscorcfg.msc. Thanks for the followup. John ...Show All
SQL Server Arrrggh - Linked Server issue
Help! I can't seem to get the permissions right on my linked server. I keep getting this error: Msg 7399, Level 16, State 1, Line 1 The OLE DB provider "MSOLAP.3" for linked server "DW" reported an error. Access denied. Msg 7350, Level 16, State 2, Line 1 Cannot get the column information from OLE DB provider "MSOLAP.3" for linked server "DW". Thank you. That helped. Now when i query using a SQL Server user (non-windows) I get this response: OLE DB provider "MSOLAP" for linked server "DW" returned message "An error was encountered in the transport layer.". OLE DB provider "MSOLAP" for linked server "DW" ...Show All
Windows Forms Threading, Invoke, Control Creation and other horrors...
Ok, where to start... I basically have the main thread handling the forms (user interface), then I have a System.Threading.Thread running in the background doing some calculations. I have a main form, then a secondary form that is displayed after the calculations are done (showing the results). The secondary form is shown from the calculation thread rather than the main thread, thus the need for an invoke as shown below (aren't there any proper code tags here ). Should work fine, however when called I get the invalidoperation-exception telling me cross-thread operations are made. It seems like the actual form is properly created in the main thread (as it should) however some (all ) of its controls are created in the calculations thre ...Show All
Windows Forms How to add duplicate datacolumn to datatable
Hi All, How can we add a duplicate column to datatable. I already had a column named "Action" in my datatable, and i want a duplicate column to "Action". Note: Actually the datatable is being filled from dataset. I cannot change the Sql Query because those are predefined by analysts. Thanks in advance. You can not have 2 columns named action in your data table. You can add a datacolumn that uses an expression to copy the data to the new column. DataColumn dc = new DataColumn ( "Action2" ); dc.Expression = "Action" ; dt.Columns.Add(dc); ...Show All
SQL Server SSAS crashes - mining predictions for large data sets
Hi all, I am using SSAS 2005. The mining model works fine. But it crashes when I run the 'Mining Model Predictions' against large data sets. I ran it against 5,000,000 records and it went fine. But exactly same model failed for 5,100,000 records and beyound. The message is 'Query Execution Failed' and then Visual Studio crashes. Pl. let me know if anybody has the same experience or knows the solution. Thanks, Vikas You are trying to run the query inside visual studio for > 5M records It shouldn't crash (this would be a bug), but that environment is not particularly designed for vary large query results. The prediction tab is generally for designing queries and previewing results. If you want to put the ...Show All
SQL Server Unble to define composite PK for return table definition of Table valued function
Hi, I am unable to define a composite PK for return table definition. It does not let me add table level composite primary key. How can do that . I can not see any return table example with composite PK ALTER FUNCTION [dbo] . [SalesProjection] ( @HistoryStartDate datetime = null, @HistoryEndDate datetime =null ) RETURNS @SaleProjTable TABLE ( CompanyId int , DeptId int , Product int , ProjectionQty numeric ( 19 , 6 ) , Constraint PK_Salesprojection Primary Key(CompanyId,DeptId,Product) ) as begin -- do work here return end The reason why you can't name constraints is that it will no longer be unique in the server/database. So if multiple users execute the TVF at t ...Show All
SQL Server SQL Server Express error: 5 Access Denied
After installing SQL Server express to my WinXP machine, when I attempt to restore a database from a 2000 backup, I get the following error: System.Data.SqlClient.SqlError: The operating system returned the error '5(Access is denied.)' while attempting 'RestoreContainer::ValidateTargetForCreation' on 'c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\TEST.MDF'. (Microsoft.SqlServer.Express.Smo) Any ideas Hi, the original file location is stored in the backup, if you do not want to deploy the files on the same relative location on the traget server, you will either have to make sure that the path exists OR you use the WITH MOVE option to place the MDF/LDF files on a different location. HTH, ...Show All
SQL Server Execute Package Task says Login failed for 'sa'
Please help me with this error, I am desperate. SSIS package "Clear.dtsx" starting. Error: 0xC0202009 at Clear, Connection manager "10.11.60.30.msdb.sa": An OLE DB error has occurred. Error code: 0x80040E4D. An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E4D Description: "Login failed for user 'sa'.". Error: 0xC00220E4 at Execute Package Task: Error 0xC0202009 while preparing to load the package. An OLE DB error has occurred. Error code: 0x%1!8.8X!. . Task failed: Execute Package Task Warning: 0x80019002 at Clear: The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the n ...Show All
