wencey's Q&A profile
Visual Studio Team System Best Practice for Exception Management in Custom Tasks
I was wondering if Microsoft could provide some guidance on the best way to handle exceptions in custom tasks, should we: Just let exceptions bubble up the stack to be handled by the MSBuild engine Have a "global" exception handler in the Execute override that logs the exception as an error and return False Thanks, William Bartholomew In general, either method will result in the Task failing and stopping the build (unless ContinueOnError is set to true), and either method can be OK. The choice between the two methods will just depend on what you want to do with the exception, and what information you want written to your log file: * Letting the exception bubble up to be handled ...Show All
Visual Studio Team System Batch file to start a web test
I’ve attempted to create a batch file that, with Windows Scheduler, would automatically kick off a test. In the MSDN library is an article How to: Schedule Tests Runs. The directions on creating the batch file will not work for me. The use of the MSTest commands results in an invalid command comment. Here’s the file content. Any suggestions :: VSTS.bat @ECHO OFF ::opening the application c: CD\"Program FIles\Microsoft Visual Studio 8\Common 7\IDE" start devenv.exe ::This 20 second delay is due to the app frequently reloading upon opening. ping -n 21 127.0.0.1 ::Trying to get the path right CD\"Visual Studio 2005\Projects\XNet Production ::Supposedly opening the meta ...Show All
.NET Development Unable to load an asembly or one of its dependencies
I have a asp.net web service. It requires a C++ dll which in turn calls some third party dlls. I reference the C++ dll in my web service. The application builds fine. But when I run the web service, it displays an error " File or assembly name <my C++ dll> or one of its dependencies, was not found. The C++ dll and all the third party dlls exists in the bin folder of my web service. What am I doing wrong The C++ dll works fine if I use it in a windows or console application. Any suggestion is greatly appreciated. Hi friend, Today I have also got the same Exception. Here comes the soln: Go to project tab and then to properties(ie u r supposed to goto property pages). The ...Show All
Visual Studio 2008 (Pre-release) DataTemplate vs. ControlTemplate
Hello, I'm not so sure that I understand the difference between a DataTemplate and ControlTemplate. I realize that the DataTemplate renders a 'type' of data. But then why is ColumnHeaderTemplate defined using a DataTemplate resource Thanks Houman They're mostly the same, getting most of their behavior from the base FrameworkTemplate class. The primary difference is that ControlTemplate has a TargetType property and DataTemplate has a DataType property. Another difference is that the DataTemplateSelector can be used to choose a DataTemplate at runtime. So, for example, the ColumnHeaderTemplate that you mentioned has a companion ColumnHeaderTemplateSelector property. ...Show All
Visual C# WinForms Problem
I am working on a winforms app that utilizes ODBC to acces paradox tables and a WinMobile database(.sdf) in order to sync table records. My problenm is that as soon as I add a grid with one of the Mobile database tables I get this error Unable to load DLL 'sqlceme30.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) From this code [System.Diagnostics. DebuggerNonUserCodeAttribute ()] private System.Data.SqlServerCe. SqlCeDataAdapter Adapter { get { if (( this ._adapter == null )) { this .InitAdapter(); Error on this line.... } return this ._adapter; I thought that was contained in this reference System.Data.SqlServerCE which is a reference in my project. ANy one kno ...Show All
Visual Studio Tools for Office Rapping button bar items...
I'm looking to rap several default Word buttons with some of my own via a managed object. I know I can do this with the menu buttons. With the command tool (Ctrl,Alt,+) I can tell that the action called from the menu Table>Insert>Table is indeed "TableInsertTable". What I can't figure out is how to intercept the "Insert Table" button. If I use the command tool and clicking on the "Insert Table" button it returns "TableInsertTable". But the managed object's code never gets called. Is there another event or hook I need to add to deal with this button Hi, You can't do this directly in managed code or even from COM Addins. The main reason is that Office object ...Show All
Visual Studio Express Editions Question about strings and certain chars
Hi I'm building sort of an encryption/decryption algorithm and I've got a small problem with reading 2 characters out of a string. The 2 characters are " and the ENTER character. I need to know what I need to compare to, to read out a new line that was created by pressing enter in a textbox and how I compare the " char because if I enter it VB always makes it "" and makes it compare to an empty string. 1) ENTER char 2) " Char These are the 2 codes I mean. Example of what I need: If var.startswith(" " ") then ==> vb makes it this: if var.startswith(" "" ") then do something elseif var.startswith( enterchar ) then do something I'm sorry if i'm not clear enough in what I mean, just ask ...Show All
Visual Studio Express Editions What does this code mean?
The following code clears all the text fields in my user control, however I am not quite sure exactly what the line in red does. Can someone explain what the value of the txtBox variable is at this point Private Sub btnReset_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnReset.Click Dim ctrl As Control For Each ctrl In Me .Controls If TypeOf (ctrl) Is TextBox Then Dim txtBox As TextBox = ctrl txtBox.Text = vbNullString End If Next End Sub In actuality, that line creates a pointer from control to a textbox. It is a way of casting the pointer. txtBox after assignment is addressed as any textb ...Show All
Visual Studio Express Editions Downloading & Installing 'Microsoft Platform SDK (R2) Installation'
After downloading this and getting some way into the installation process, the following error is displayed "Error 1606. Could not access network location. http://download.microsoft.com/download/F/A/D/FAD9EFDE-8627-4E7A-8812-C351 BA099151/PSDK-AMD64_common.0.cab and this is despite the fact that I selected the x86 version. I tried the 'retry' button but the error comes back. I have gone right through the proces from the start several times but always get the same error. Phew! 17 CDs worth of download sound like a lot of fuss & work. Couldn't somebody at MSDN have a quick look at the download directory to check permissions and that all the files exist After all, I can't ...Show All
SQL Server Displaying inividual fact details in report body
I have a dimension for account and measures for time taken for editing etc. which provide a sum of minutes taken to edit all documents in each account. The requirement is on clicking on the account link to be able to get details regarding each document in every account. for each document, I would need to display editor name, time taken, document type etc. How do I display details that are not an aggregation along the rows but individual details of each document I would suggest using the drillthrough mdx command - more details @ BOL: http://msdn2.microsoft.com/en-us/library/ms145964.aspx ...Show All
.NET Development date in the sql query
I have an access db with two short date fields and in my vb.net application I need to display in a dgw the data between two chosed values. Every time I try the "Data type mismatch in criteria expression" appears. I use two Datatimepicker formated as Short. In the database the field are also formated as Short Date. What could be the reason for that Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim con As OleDb.OleDbConnection = New OleDb.OleDbConnection("Provider = Microsoft.Jet.OleDb.4.0;Data Source=C:\Maint.mdb") Dim cmd As New OleDb.OleDbCommand Dim cmda As OleDb.OleDbDataAdapter Dim dset As New DataSet 'Dim cb As OleDbCom ...Show All
Software Development for Windows Vista Vista desktop search preview?
In the preview pane for desktop search I see metadata about the item selected but not a preview of the content itself. For emails/docs I should see the actual item contents. Without this functionality I'm forced to install some other desktop search tool; X1, Copernic, Google, etc. These show content not just metadata. Am I missing something You can open a "preview pane" that lets you see the contents of the selected item. Click the Organize button, then Layout, then Preview Pane. ...Show All
Visual Studio Team System Why can we not delete objects from schema view?
Hi, What is the rationale for only allowing us to delete objects from Solution Explorer and not from schema view Thanks Jamie So by having that source control plug in enabled you are not able to delete objects from Schema View mairead ...Show All
Microsoft ISV Community Center Forums Newbie in VBA Drag and Drop..
Hi, Do not know if this is possible drag and drop effect of items in dropdown control inside a word application The task is to import and export data from and to database, but user can select from a list columns what they want to add, there will be a dialog will appear and allow user to select data to be included in a word document, how can this be done Thanks in advanced. den2005 Hi, After a bit of searching I found this code that demonstrates drag and drop between two list boxes on a user form. You saw your new so I'm give a brief overview of whats going on here. ListBox1 is populated with some values when it initialises. When the user click ListBox1 (the source) and moves the mous ...Show All
Visual J# class delivery
I am a newbie to J#. I have developed a J# package, which has two classes. Now how do i deliver this package in a .jar format. If i cannot convert it into .jar what format should i deliver these classes in I would need maximum interoperability but i can limit it to .NET framework. What do i do J# is not Java and cannot be distributed in a jar file. J# is .NET and those libraries are distributed in DLL files. So you have to compile a DLL library of your J# packages. In Visual Studio 2005 menu: "Project" + "...Properties" "Output type" Select "Class library" And do a recompile. You will now get a DLL file you can reference from any .NET languages provided that you have the ...Show All
