Reid Westburg's Q&A profile
SQL Server Data source problem?
When i work with sql express edition i have one question I have one table in database, and on my form i have two fields where i putting my data. But, when i put my data and store it with next code: this.tableadapter.Insert(oneRow, secondRow); this.tableadapter.Update(this.myDataSet.table); But in my data source i can't see any stored row, and when i compile my project the data will be empty or erase. MY PROBLEM IS: Why I can't see rows in my data source I work with VS 2005 Pro edition. ...Show All
SharePoint Products and Technologies Restart Central Administration Service
Hi, a bad man has stopped "Central Administration Service" on Operations -> Services on Server. How can Central Administration Service be restarted Cannot go to Central Admin, when the service is not running :-) Best regards TST I see it now. You have to select the "Custom" role to see it. When I stop mine, it removes the "Central Administration v3 Site" from IIS. In order to get it back, I had to re-run "SharePoint Products and Technologies Configuration Wizard" (from the start menu). I told it to "Do not disconnect from this server farm" so I wouldn't lose all of my settings. (all of my web applications and settings were retained (por ...Show All
Software Development for Windows Vista transactions and ExternalDataExchangeService
I have a state machine workflow that represents my process. At a pre defined time, a bunch of instances get kicked off. Then individual users interact with specific instances to move them through their states. Finally, at another pre defined time, I need to complete all the instances, followed by running a stored proc. To complete the instances I can just iterate through all the active ones and raise my ThingyCompleted event in my ExternalDataExchangeService. The trick is that I want all the event raising and the execution of a single stored proc to all happen in the same transaction. Since the stored proc is basically a rollup and needs to happen after all my workflow instances complete, it has to be run from the host (as opposed to ...Show All
.NET Development file upload to https server not working
i am sending a file to a https server and i am not getting back the same results as iexplorer is, or the same page. my page has an error that its displays, which is "Error: Cannot find bean: "UploadBean" in any scope" i captured the stream from iexplorer and my app and its the same thing being sent. any ideas here is the file that i am sending using multipart-form content type StringBuilder^ sData = gcnew StringBuilder(); sData->Append("--" + sBoundary); sData->Append("\r\n"); sData->Append("Content-Disposition: form-data; name=\"firstTime\""); sData->Append("\r\n\r\n"); sData->Append("F"); sData->Append("\r\n"); sData->Append("--" + sBoundary); sData->Append("\r\n"); sData->Append("Content-D ...Show All
Windows Forms Using Notification Icons
I want a notification icon to show up in the system tray in the Form1_Load sub. How do I do this (Moderator Post Moved from VB General for better responses) Check out this blog by Abhinaba, Animation and Text in System tray using C# it discusses how to do such an activity. Its in C# but you can translate it VB .Net. ...Show All
.NET Development Soap Extension and returning Nothing
Hello. I am writing a web service and I need to use a Soap Extension to add a custom header that is expected at the destination. I can use the Soap Extension successfully for adding the header in the AfterSerialize section and the destination accepts my request and sends back the appropriate data, but my problem comes when I try to return the data. Depending on what I do I either get an exception that "the root element is missing" or being returned Nothing. The following is where the exception is being generated: Dim results() As Object = Me .Invoke( "ProcessMessage" , New Object () {payload}) payload = CType (results( 0 ), Payload) I have found some references that ChainStream in the soap extens ...Show All
Gadgets endTransition parameters
Hi, I just would like to ask which parameters can I pass to the endTransition function Thanks John Hax wrote: I just wanna know the same thing 1 week before, and got the same result... but no point... I tested morph, expect some motion effect but got nothing, maybe my method is wrong... It morphs between the two Gadget states. If you want to see a working example, look at Network Utilization , where I'm using it to morph between the docked and undocked gadget sizes. ...Show All
SQL Server Connecting and Getting data from 8 tables in one sql statement
Hi everybody, I like to get data from 8 tables to be loaded in a dropdownlist or combobox control. Desired Result is need to be filtered by Region, Company, ProjectOffice, Country, and Location and still get all rows from 3 tables after applying filters. How can this be done in one single sql statement I have 3 separate sql statements which needed to be only one. Select C.CompanyID, C.[Name] As 'Company', P.ProjectOfficeID, P.[Name] As 'Project Office', P.RegionID, R.[Name] As 'Region' From ProjectCompany E Left Join ProjectOffice P On E.ProjectOfficeID = P.ProjectOfficeID Left Join Company C On E.CompanyID = C.CompanyID Left Join Region R On P.RegionID = R.RegionID Order By E.ProjectOfficeID Select P.ProjectOfficeID, P.[Name] ...Show All
Visual C++ Creating GUI in .lib file and invoking it from some other application
Hi all, I want to add gui(MFC based) into a lib code.....so for that i followed the following steps 1) Created a new windows based console application with option static lib file selected n by allowing MFC support to the application 2) from the project add....i selected add resource n then created a CDialog based gui into it Upto then everything is fine.....now here something i dont understand 1) wat r the .h and .cpp files related to gui do i need to include n wat code to write in (MFC generates all the code itself in a MFC based application so i m not sure wat to include or wat not to include) 2)I am able to link to lib in my program (proc) without error.....Now how do i invoke the gui in lib from my proc I am taking ...Show All
Windows Forms Can any once Help me? I am getting the erro like "Exception has been thrown by the target of an invocation."
Hi All, In my UI Layer I am raising the Exception Divisible by Zero. In Catch block of UI Layer I am calling the Business layer function to write this exception into Event Viewer After the Exception writes into the Event viewer the control come back to UI Layer of Catch block. When I am getting the error like “Exception has been thrown by the target of an invocation.” If you know the solution for this problem, please reply to this mail. I am using .Net 2.0, Application Block 2.0 and XP Professional See the Following Code Business Layer public interface ICommonFunctions { void LogErrInToFile( Exception ex); } ...Show All
Windows Forms STA and threadpool problem
Hello, I have a Windows Form project which i tried to merge with a console project that uses Thread pool. After i did that i got a messege saying: "WaitAll for multiple handles on a STA thread is not supported." OMG someone please help me! this is an emergency beucase i must use the ThreadPool. anyone has an idea There would be two reasons the thread that calls WaitHandle.WaitAll() would run in a STA apartment. One is that you're calling it on the GUI thread. That's a no-no, you *have* to pump messages to keep an STA apartment and the GUI alive. Another is that you've initialized a background thread with calling SetApartmentState. The only reason you would have to do that is t ...Show All
SQL Server cumulative totals in chart : Report Builder
Hi, I am trying to display a line chart with cumulative totals over period of 12 months in a fiscal year. I know this can be achieveable in report designer using "Running value function". Any idea how to achieve the same in Report builder thanks in advance. Here is the data : Month Count July 2 Aug 3 Sept 2 Expected output should be Month Count July 2 Aug 5(July count + Aug.Count) Sept 7(July count + Aug count + Sept Count) Regards, bala ...Show All
Visual C# log file time stamp validation
My program is reading large log files that contain lines with times stamps and also line with log data. The data information following a time stamp line is either on one line or many, so I cant anticipate weather it's reading a time stamp line and a data line. So I need an efficient way to tell whether a line is a valid time stamp or data. Anyone have a good idea of how to do this Here is an example of a log file: 07.07.2006 17:32:13 ERROR ******************** Database access failed. New connection to database needed. 07.07.2006 17:32:18 Warning******************** Could not find name Path inaccessible .... ... ... ... Thanks It could have been better if you had marked every entry in the log file with ...Show All
.NET Development retreiving database name
I have a program that can connect to different databases but there is always one running on the system that the program is being executed on I would like to know if there is a way for it to automatically determine what the computer name and database name are. For example one system uses welldaq/dbinfo to connect to the database where as another uses welldaq/database and yet another uses lab/dbinfo I would like to be able to put my program on any one of these systems and have it automatically detect the database. How would I go about doing this ...Show All
Visual Studio Crystal Report Software Requirements
Is it necessary to have MS OFFICE installed, to export report in 'Excel format' using crystal report ...Show All
