Ben Jackson33513's Q&A profile
Visual Studio Team System BUG - Save query before Running it
Steps to reproduce bug: 1.) Right click "My Queries" in Team Explorer and Click "Add Query" 2.) On the second line of the query tool, click dropdown for "field" and set to Work Item type. 3.) On the second line of the query tool, select dropdown for "value" and set to "Task". 4.) Click save button. (Don't Run query.) 5.) Take the defaults and click the save button on the "Save Query As" window. 6.) Right click on new query and select View Query. 7.) Notice that "value" field on second row is not populated. Thanks Jason. I will make sure it does not repro in a couple more latest builds. If it does, I will open a bug to track the issue. ...Show All
Visual C++ A problem of CComUnkArray::Add() in the atlcom.h
Hi all, The excerpts of the function look like this : DWORD dwCookie = 1; for loop () { if (condition match) { return dwCookie; } aiwdwCookie ++; } Look! What is aiwdwCookie I think this is a bug of atlcom.h. Could you help me to identify this issue Ah! I forgot to add the product version. I am using Visual Studio 2005 Professional. (Visual C++ 8) ...Show All
Visual C# Displaying Numbers
This displays numbers from 0 to 25...i was wondering what i could use to not display numbers 10 through 15...which means i want to display numbers from 0 to 25 except numbers from 10 to 15.....any help static void Main() { for ( int j = 0; j<26; j++) Console.WriteLine("Number {0}", j); Console.WriteLine("Press enter to continue"); Console.ReadLine(); } } Oops that one should be: int [] values = {1,2,3,4,5,6,7,8,9,15,16,17,18,19,20,21,22,23,24,25}; foreach ( int count in values) { Console.WriteLine("Number {0}", count); } Console.WriteLine( ...Show All
SQL Server VS.NET 2005 and CLR stored procedure permission sets.
VS.NET 2005 automatically deploys a CLR stored procedure when you start a project with debugging. However, if the CLR stored procedure attempts to access external resources you will get a message stating: System . Security . SecurityException : Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed . I've isolated this to being because the CLR stored procedure does not have the EXTERNAL_ACCESS permission set. Is there a security attribute that can be used to decorate the CLR stored procedure code so that VS.NET 200 ...Show All
Windows Forms How do I add an item to the caption bar context menu?
Hi, How do I add an item to the context menu displayed when you right-click on the caption/title bar. The current items are: Restore Move Size Minimize Maximize --------- Close What I would like to do is add an item below the "Close" option called "About..." that will display the application's about dialog. I know how to add a context menu to the form but I am having difficulty in getting hold of the above caption bar context menu. Any help in this matter would be highly appreciated Regards Gareth You'll find a similar example on my site in both C# and VB.net. http://www.dotnetrix.co.uk/menus.html ...Show All
.NET Development Problem with PInvoke with .NET2?
Hi I have a program that i wrote with .Net 1.1 and it uses the cards.dll that comes with windows. It has always worked fine. I am porting the program over to .NET2 and now i am getting a stack imbalance problem with a call the the cards.dll. It only happens at runtime though. I can drop a card onto my form at design time and it works fine (I can change the face, suit or back with no problems using the same call). As soon as i change it at runtime i get a stack imbalance error. Is there a bug with Pinvoke or the MDA in .NET2 I fixed my problem. It seems the .net 2 is less forgiving than .net ...Show All
SQL Server SSAS service does not start
Hi I recently installed SQL 2005 . The install proceeded well, but Analysis services service cannot be started on to the machine. When i try to start the service via Configuration manager I recieve and error "An error occured while performing this operation" I have tried to reinstall the product , but that did not help Thanks Sumeet **I'm moving this thread to the AS forum. Take a look at the Event Log for more details on why the service won't start. Cheers, Dan ...Show All
Visual Studio Team System error 32000
Team Foundation Server Dual-Server Deployment ,while install Application Tier get the error: Error 32000.Failed to get CustomActionData. here is log file info: vs70uimgr: DisplayMessage_START:Error 32000.The Commandline '"Z:\Program Files\Microsoft Visual Studio 2005 Enterprise Server\widbloc.exe" -s datasvr -d CurrituckDB' returned non-zero value: 1. [06/16/05,23:57:14] vs70uimgr: DisplayMessage_END:Error 32000.The Commandline '"Z:\Program Files\Microsoft Visual Studio 2005 Enterprise Server\widbloc.exe" -s datasvr -d CurrituckDB' returned non-zero value: 1. [06/16/05,23:57:14] Setup.exe: AddGlobalCustomProperty [06/16/05,23:57:14] ...Show All
SQL Server Moving reports and their histories from SQL2000-RS to SQL2005-RS
I have SQL 2000 Reporting Server with 30+ reports scheduled to be generated periodically and their snapshots are maintained in respective report history. Few weeks ago; we got SQL 2005 Reporting Server and we started using it for all the new work. Now we want to retire the old SQL 2000 RS machine but wants to copy the reports along with their histories on to the new server. Can someone guide or give pointers where I can find information on this topic Preserving report histories is very critical. Report generation schedule may be re-configured. You could (backup and then) directly upgrade your exist ...Show All
Windows Forms Accessing TitleBar of Windows Form
Hi, I would like to display a tooltip for a mouse hover over the title bar of a form esp. when the text is long and is truncated. For this to accomplish, I would need to access the titlebar element of the Form. Please suggest a way to accomplish this task. I was unable to find a conclusive solution for this problem. thank you, Sri There is no "titlebar element". The titlebar is drawn in the non-client area of the form. You will probably have to do some research into windows messages to make this happen. ...Show All
SQL Server Having problem with my server
I just currently installed Microsoft studio express which includes SQL server and i get this error Server Error in '/WebSite1' Application. it also states " Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding" I am wondering do i have to have IIS on to run SQL server 2005 express adition. I am also having problem with SQL Express installation. After installing it, and configuring with SQL surface area for also remote access via tcp or pipe I still get the message: >sqlcmd HResult 0x2, Level 16, State 1 Named Pipes Provider: Could not open a connection to SQL Server ...Show All
Smart Device Development Connection to SQL Server 2000
Hi, I am trying to connect to an SQL Server 2000 database using VB.NET 2005 CF. When I run the application (code below), I get the following error: An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.SqlClient.dll Additional information: SqlException Can anyone help me solve this problem When I use the same code in a windows application from, it works fine, but it doesn't when I run it on my device. Imports System Imports System.Windows.Forms Imports System.Data Imports System.Data.Common Imports System.Data.SqlClient Public Class Form1 Inhe ...Show All
Windows Forms Progress Bar will not update (visual J#)
The progress bar is located in the MDIParent class and I would like to manipulate it in MDIChild classes. The progress bar is active and is publicly defined, but will not update. The values change at run time, but there is no change graphically. The same is true with progressBarBtatusLabel. This seems to be a trivial problem but I am unfamiliar this environment. Any suggestions are helpful. Thanks An easier way to pass an instance of the parent class: where the MDI Parent is Main Main progressBarInit = (Main) this.get_MdiParent(); Then follow with the same code. ...Show All
Software Development for Windows Vista Web Service credentials
Is there a way to set the network credential of an "invokeWebService" activity You can set credentials in Invoking event handler. WebServiceProxy is a property of EventArgs. see following posts: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=197361&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=196269&SiteID=1 ...Show All
.NET Development The incredible .NET mess
If Microsoft really wants this technology (.NET) to be accepted, why: Can Microsoft not provide reasonable scripts/instructions for installing the software Everywhere I look, there are forums loaded with the same few questions: 1) What permissions do I need 2) What accounts do I have to modify 3) Why can I not log onto SQL (alias, "What is wrong with my connection string") 4) Where is (usually relates to a table or file that is stuck in some directory other than the one it needs to be located in) While I realize XP, Server 2000 and Server 2003 are different, and SQL 2000/2005 are different....why can't Micros ...Show All
