aashta's Q&A profile
.NET Development Thread scheduling problem: (apparent) violation of "wait on event" mechanism between /CLR processes
Out of all the available forums, this one seems to be the most appropriate for this issue. This certainly is a .Net-related problem because I have done this successfully in the past with native applications (using VC++ 6.0). I am currently using VC++ 2005 with the latest .Net on an up-to-date Windows 2000 computer with 512MB of RAM. The failure is observed with high-probability under low-memory conditions: after running two instances of the Studio (so I don't have to keep swapping the solutions when I want to consult the code), but only one debugger session (the other process is running as an executable), and the 2005 SQL Express server, I'm left with a commit charge of around 700MB, i.e., some processes are swapped to virtual memory. I h ...Show All
SQL Server event id 208 on sql server 7 HELP
Hi, For some strange reason all of a sudden, my scheduled jobs are not running. I dont remember changing anything that might cause this but i cant say for sure. The other issue i have is that i cannot backup a database to the default location as shown on the second even below. Any ideas Thanks for your help Event Type: Warning Event Source: SQLServerAgent Event Category: Job Engine Event ID: 208 Date: 08/09/2006 Time: 12:00:01 User: N/A Computer: SERVER1 Description: SQL Server Scheduled Job 'DB Backup Job for 'DBMP-EDB'' (0xC50AD7AF9993294A8134D2F7D10C0ADC) - Status: Failed - Invoked on: 08/09/2006 12:00:00 - Message: The job failed. The Job was invoked by Schedule 23 (Schedule 1). The last step to run was step 1 (Step 1). ...Show All
Visual Studio Team System Team Project Creation Failed
Hi I have just installed and configured the VSTS foundation Server 180 Day Trial Edition. When I create a new team project with my user credntials (which have been added to the TFS Admin group and SQL Reporting and Sharepoint) I get the error below. When I create a new team project using the TFSSetup user the project creation is successul, however I am unable to retrieve work items from the Project from Excel or Project. I get the following error "TF80066: You are not authorized to porform this operation. Please contact your Team Foundation administrator." I am not sure if the problems are related. Any help would be greately appreciated. Cheers Jock Error TF30004: The New Team Project Wizard encountered an unexpected erro ...Show All
.NET Development Date.IsDaylightSavingTime
From the docs, I would understand that this should return a boolean indicating if the time is within the daylight savings time interval. But I get a false for: Date.Parse("2006-10-29 01:58:00.000").IsDaylightSavingTime.ToString On that day in Eastern time, in the U.S that could be true . Actualy it is both true and false, that hour runs twice because at 2:00, we roll the clocks back to 1:00. Am I misunderstanding the method Is there any way around this mystery hour problem Any suggestions From docs regarding IsDaylightSavingTime: "Indicates whether this instance of System.DateTime is within the Daylight Saving Time range for the current time zone." Hidden inside the framework, ...Show All
Visual C++ cannot convert parameter 2 from 'System::Drawing::Rectangle' to 'System::Drawing::RectangleF __gc[]'
Hi. I'm new in .Net. this is my code. void GraphicsWindowForm::PaintHandler(System::Object *pSender,System::Windows::Forms::PaintEventArgs *pEvent) { System::Drawing::Bitmap *bmp = new System::Drawing::Bitmap(ClientRectangle.get_Width(), ClientRectangle.get_Height(), pEvent->get_Graphics() ); Graphics *bmGr = Graphics::FromImage(bmp); System::Drawing::Rectangle rect = get_ClientRectangle(); rect.Inflate (-20,-20); bmGr->FillRectangles( new SolidBrush(Color::FromKnownColor( KnownColor::Gold ) ), get_ClientRectangle() ); bmGr->DrawRectangles( new Pen(Color::DarkRed,5), rect ); bmGr->DrawEllipse( new Pe ...Show All
Visual C++ Urgent Super easy question ! I cannot use the protected method of DataGridView
Hi there! I am using VC++ in Visual Studio 2005. I have created a DataGridView, and I am trying to use the "SetSelectedRowCore" method (it is a protected method) of that DataGridView to highlight (select) say row number 3. but the compiler says this protected method, SetSelectedRowCore, cannot be accessed !!!!!! please help! this should be a quick one for you guys ! Thank alot in advance. Cheers Best wishes, gon_no1 If you want to add your custom control to the toolbox, you'll need to create a new class library project (DLL) and add it. Try these steps: 1. Create a new CLR class library (in the same solution if you want) 2. Add reference to System.Windows.Forms 3. Add the following starter co ...Show All
Visual Studio Tools for Office Install of VSTO SE Fails
I'm trying to install VSTO SE on an XP Pro SP2 machine with Visual Studio 2005 Professional SP1 and Office 2007 Professional installed. After running the setup.exe, I'm greeted with a Required Prerequisites error, listing both: Visual Studio 2005 Block Visual Studio 2005 Locale Block Clicking the links in the error dialog, I see that I do indeed meet these prerequisites...any ideas or suggestions Thanks. I get this error message to. I have Windows Server 2003 Standard Edition, Visual Studio 2005 Professional SP1 and Office 2003 Professional. Stuck now. ...Show All
Visual Basic Windows Service Timer won't fire
I've been working on a windows service since last week, and the one problem that I can't seem to solve is getting my timer to fire. The service is supposed to scan a particular folder and deal with the files in it appropriately. The scan works perfectly, but at the end of it, it's supposed to start the timer so that it "sleeps" for five minutes before running the scan again. I say sleep even though it ends the sub and just waits for the timer tick event. I've tried using the timer in a couple of different ways thus far, from using timer.Start() and timer.Stop() in the scan sub, and enabling and disabling it (starting the timer in the OnStart() event). I've run the debugger on the process, so I've watched it run through the entire ...Show All
Visual C# RadioButton and ApplicationSettings
Hi, I have the following problem: A form with one groupbox containing two radiobuttons whose checked-properties are bound to settings-properties: radioButton1.checked is bound to bool Settings.Default.gwmKeep radioButton2.checked is bound to bool Settings.Default.gwmDelete When I run the Application, I have to click twice on these radiobuttons to check/uncheck them. Is this behaviour intended Do I really have to track manually if a radiobutton is clicked Please help, Andy I also faced some weired problems in past when binding properties of controls to Client Settings, I dont know how it behaves in your scenerio but if you have tested and its not working you should handle them manually as suggested by ...Show All
.NET Development Assembly.Load(): Fails once, fails always ?
Scenario: Dynamic assembly loading: If an assembly does not exist, install it from the network. Consider the following code: 1: Assembly oAssembly; 2: try 3: { 4: oAssembly = Assembly .Load( "ClassLibrary1" ); // Will fail since assembly is not available. 5: } 6: catch ( Exception ex) 7: { 8: // Copy ClassLibrary1 to AppPath\ClassLibary1 folder 9: } 10: oAssembly = Assembly .Load( "ClassLibrary1" ); If you run the code above it fails at line 10, although the assembly is available at that time. It seems that when an assembly can't be loaded the 1st time, the application will not try to load it the 2nd time, even when it is available at that time. Is it possible to force the application to try to load it the 2nd ti ...Show All
Visual Basic Delete Directory Puzzle
I am tring to delete a profile directory that is stored in the Documents and Settings. I have tried to use the following methods My.Computer.FileSystem.DeleteDirectory(FilePath, FileIO.DeleteDirectoryOption.DeleteAllContents And System.IO.Directory.Delete(FilePath, True ) Using both methods I get the following error Access to the path '\\winxp31\c$\Documents and Settings\cspence\Application Data\Microsoft\Internet Explorer\Quick Launch' is denied. Facts to point out: I have administrative rights on the computer, remote computer and the network I can delete it manually if ...Show All
.NET Development ! Possible System.NET bug? SocketException when performing Async download in Async thread
(The following is a bit long, but it details what I think might be a bug in System.Net) Our application uses WebRequest to perform asynchronous downloads. Things work just fine on almost everyone's machine, but we are starting to get error reports back from some users in the field. We looked at their call stacks from our logs and saw this: Exception Information Details: ====================================== Exception Type: System.Net.WebException Status: ConnectFailure Response: NULL Message: Unable to connect to the remote server Data: System.Collections.ListDictionaryInternal TargetSite: System.Net.WebResponse EndGetResponse(System.IAsyncResult) HelpLink: NULL Source: System StackTrace Informa ...Show All
Visual Studio Team System TFS Setup 28100 Error Message
Hi everyone, I am trying to install Team Foundation Server on a Windows 2003 server and just before it finishes I get this error: Error 28100. Error loading event webservice. I have tried whatever I found on the web like deleting the registry entry and running install again, Changing permisssionsa,.... When I check System Log I found these 2 logs: The identity of application pool, 'TFS AppPool' is invalid. If it remains invalid when the first request for the application pool is processed, the application pool will be disabled. The data field contains the error number. The identity of application pool 'TFS AppPool' is invalid, so the World Wide Web Publishing Service can not create a worker process to serve the appli ...Show All
SQL Server newbie question: multiple updates in one statement
I need to determine why this statement is not executing: update tablename set column1 = case when column2 is null or column2 = 0 then column3 else ( 5 * column4 ) end , column4 =column5 where column6 = 0 end Delete the END in the end of the statement. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio Interactive Mode pages
I have the interactive page size set to 8.5 X 11, just like the actual page size. Shouldn't the page #s match in this case Or at least be reasonably close It seems like the interactive mode doesn't stop for the page when it should. I have several reports where they are drastically different and there are no toggle regions. One problem I just encountered is a table with a group in it. I have set the group to page break at the end. If the next page 'fits' on the interactive 'page' it doesn't actually break, whereas print layout shows this correctly. This seems like a bug to me since it is an explicit page break. ...Show All
