James Conley's Q&A profile
SQL Server Cannot DROP SERVICE
I'm having trouble dropping a Service Broker Seriver using the DROP SERVICE command. After about 15 minutes, my SQL Server 2005 Standard edition replies with the following message: Msg 701, Level 17, State 171, Line 1 There is insufficient system memory to run this query. Is there another way to remove a service I've tried restarting SQL, but this does not work. Open a second connection to the server and please run this command: dbcc memorystatus Run it one before the DROP statement is issued, one or twice while is running (e.g after 5 minutes and after 10 minutes) and then once when the error occurs. ...Show All
Windows Forms numericUpDown ValueChanged
The ValueChanged event of the numericUpDown control doesn't fire when a user types in a value (instead of clicking on the up/down buttons). The Value attribute is not updated with the new value they typed in. A workaround I've found is to capture the onKeyUp event and do something as simple as retrieving the Value atrribute. This seems to  ...Show All
SQL Server Snapshot Meta Data Problems
Hi There I realize these question are not specifically for replication by anyway .... I am using snapshot replication from Server 1 to Server 2. I cannot use the drop table option for replication publication. The distribution agent keeps on failing if a colmn order is different or an index defined differently. Is there any script or sp i can run to check that table defintion, column order, idexes etc are identical between servers Also when the distribution agent fails, is there anyway to start from where it left off applying the snapshot instead of starting right from the beginning My main concern for not dropping the tables is loosing al ...Show All
Windows Forms When does the Build go up in VB.NET versioning?
I was just wondering when the version of the compiled/built exe changes In VB6, it had automatic or manual, and when you compiled the project, the version would simply increase. So what's the current criteria So what action makes the version change I've tried making changes, rebuilding, saving, running. Sometimes it changes, and sometimes it doesn't. Thanks, Denvas ...Show All
Visual C++ Problem including <windows.h>
Hi there. I've got two systems - a desktop and a laptop, both running VC2003. I start a new Windows Form project on the laptop ,add a button and include a call to System::Windows::Forms::MessageBox::Show( S"hello" ); and then place #include <windows.h> at the top of the page, I get these errors: i:\temp\test34\Form1.h(86): error C2039: 'MessageBoxA' : is not a member of 'System::Windows::Forms' i:\temp\test34\Form1.h(86): error C2660: 'System::Windows::Forms::Control::Show' : function does not take 1 arguments If I do the exact same thing on the desktop, it compiles OK. If I copy the laptop project to the ...Show All
Windows Forms Receiving Error Using No Touch Deployment
I am receiving the following error on client machines using no touch deployment. "Application has generated an exception that could not be handled." The app is a win forms app that uses a strong named key. I have verified the security policy is set up correctly (I give it full trust). Any suggestions or leads are appreciated. ...Show All
Visual C++ Newbie Question - Using dll functionality (AFX_EXT_CLASS)
Hi I have a C++ program, and want to use some functionality provided by a dll. #include "FaceTrack.h" #include <stdio.h> int main() { printf( "HELLO WORLD" ); return -1; } I attempt to include a header file (FaceTrack.h) which defines a AFX_EXT_CLASS class to get access to the dll. BUT it throws the following error: error C2470: 'CFaceTrack' : looks like a function definition, but there is no parameter list; skipping apparent body ANY ideas Thanks ash... You seem to be missing #include "sfdafx.h" above the first include. Also your project should have stda ...Show All
Software Development for Windows Vista Using rules without WF
Hello, I'm trying to understand if it is possible to use the Policy functionality without running WF. I looked on the method Execute at RuleSet : public void Execute( Activity activity, ActivityExecutionContext executionContext); It's obviously public. Does it mean i can use it How Example: public void MyRuleSetExecution() { DiscountPolicy p = new DiscountPolicy (); p.Quantity = 300; RuleSet rs = p.CreateRuleSet(); rs. Execute ( , ); } Thanks, Haggai. In Beta2 you will be able to execute a ruleset outside of a workflow. ...Show All
Visual Studio Team System I can't create arbitrary AD users - I'm just a cog in the machine!
I'm just an average IT pro in my org and cannot create an AD forest or AD users. What are my options for installing and running team foundation server Should I just create local users You can run the single server deployment of TFS in a Workgroup, which will then have no dependencies on AD. You'll need to create local accounts for users (and add those to TFS application groups that control authorizing user access), and users connecting to the server from the domain will need to supply the local user account credentials. Assuming you already have a domain that you work in, you could find out whethe ...Show All
Visual Studio Express Editions GetDirectories problem/error
I get the following error: The CLR has been unable to transition from COM context 0x1a01d0 to COM context 0x1a0340 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump message ...Show All
.NET Development remoting?..networking? am lost
hi all, after spending some great deal of time on the internet searching...i surrender. i am an ASP.NET developer who has moved recently to work on WinForms application. i have to create this application which is composed of client/server sides. client and server share some datatables between. which need to be synchronized from time to time. and since am illitrate in anything of networking and remoting !! i ask help....where should i start...do i need remoting for this application or only networking how to move records and do synchroniztion between each !! damn i started to miss asp.net already! :) any help is highly highly appreciated ...Show All
.NET Development Soap Extension (Passing Values)
Hi, I done a hack on this already (no satisfied yet), but I was interested to know whether public [fields | properties] can be dynamically set within a Soap Extension. Thx, On the client, your SoapExtension implementation is given a SoapClientMessage instance, which has a property called "Client" which contains the proxy instance used to invoke the WebMethod. You could add whatever properties or fields you want on the generated proxy (or a type derived from the generated proxy) and then get/set them from your SoapExtension. On the server, your SoapExtension implementation is given a SoapServerMes ...Show All
Software Development for Windows Vista PNG Icon format
Hi, Windows Vista's new icon format (where individual device images can be PNG images) doesn't get along very well with some applications, including ones I've written and ones I use. The way the PNG data is stored is causing problems -- it is not backwards compatible with the documented icon resource format. When my program examines the icon data to get the dimensions and color depth, Vista's icons have raw PNG data here, so my program ends up thinking the icon is 169478669 x 109051904 pixels, and 389715300-bit color depth. When Microangelo, an icon editing program that I use, opens a .ico file with a PNG image in ...Show All
Windows Forms Changing ToolstripButton BackgroundImage
Hi, I have a problem whe I try to change the background image of a toolstripbutton. I implemented the MouseEnter and MouseLeave events change the backgroundimage: System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid)); this->toolStripButton1->BackgroundImage = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripButton1.newBackgroundImage"))); (for the MouseEnter.. and similar to MouseLeave) When I run the application and put the mouse over the button, it will change to an "empty" image, i.e., it will display the background colo ...Show All
Visual C# Cursor question!
1. How can I hide/disable cursor globally. I mean not only when the mouse is over the form, but even when the form is minimized. For example I have a timer on the form. When the time has elapsed I want the mouse to be hidden/disabled. 2. Also how can I use protected override void OnMouseMove(MouseEventArgs e) { Cursor.Position = new Point(500, 500); } I wa ...Show All
