Sondre - MSFT Regional Director's Q&A profile
Visual Studio Team System Source Control Explorer server path browsing and usability
Warning, ranting ahead. When I'm using the Source Control Explorer to browse server paths ("$/..."), I've found lots of frustration in that I can't usually cut and paste the paths. Instead, I have to navigate around the directories. My current example is in selecting directories using the Apply Label dialog. I really just want to paste each line from my workspace mapping to the "Item n ame:" control. But I can't. The worst part is that the navigation hides my hierarchy location in the "Look i n:" drop box, so I get lost easily. I'm going to solve it by creating yet another batch file using tf, but that's just admitting that I'm beaten. Please, better file browser for the server repository. ...Show All
Windows Forms Cannot implicitly convert type 'PocketVision.DataSetTasks' to 'PocketVision.DataAccess.DataSetTasks'
I'm using VS 2005 to compile the c# version of PocketVision. Clean install and compile it works fine. Any change like editing the url in the Web References causes a whole heap of similar errors like: Cannot implicitly convert type 'PocketVision.DataSetTasks' to 'PocketVision.DataAccess.DataSetTasks'. Error 6 The best overloaded method match for 'System.Data.UniqueConstraint.UniqueConstraint(string, string[], bool)' has some invalid arguments Error 13 Argument '2': cannot convert from 'System.Data.DataColumn[]' to 'string[]' I don't understand what has happened to the namespaces it's really wierd. Any help appreciated James I think Ryan Farley's post at the URL below answers your question ...Show All
Visual Studio Express Editions Data Binding to Combobox
I am new to vb and SQL and I have looked in all the documentation provided with express and the help menu seems to be insufficient and vague in a lot of areas. I have several combo boxes bound to one table of data to populate their drop down menus. The selected value for each combo box is set to another table with a unique column name. Like so combobox1 – Data source = table1 column2 select value = table2 column1 combobox2 - Data source = table1 column2 select value = table2 column2 The problem is when I select a value for combobox1 it automatically sets the same value for combobox2 and when I go to change combobox2 it changes combobox1 to its current value. The problem goes away if I d ...Show All
.NET Development proxy error when consuming internal web service
I've pulled out much hair over this, so I hope a guru out there can quickly see the err of my ways. I have created (with the help of some code from articles) a web service that accesses an external web site (outside of our company firewall). I have coded the web proxy and credentials into the web service. In testing via a browser, the web service performs correctly, in that it authenticates thru the firewall and returns data to the browser in XML format. Now I need to consume that web service in an ASP.NET application. However, it fails with the error : The request failed with HTTP status 502: Bad Gateway. The client code is pretty darn simple, so I'm embarrassed that it's not easily working. The sanitized code is below (client and web ...Show All
Visual Studio "only one database is supported" problem in VS.NET 2005 and VSS 2005
When I select a VSS database from Visual Studio.NET 2005 for opening a solution,it says "only one database is supported" and it prompts me to open the solution in disconnected mode and I can never connect the VSS again. This was working till yesterday . Now I see duplicate paths for the same database. Has anybody seen this and have resolved this Please let me know. Thanks in advance, Ashish You may have somehow gotten different databases written into your solution file. I would unbind the solution (File -> Source Control -> Change Source Control), save, and then rebind it. ...Show All
.NET Development Problen Inserting Data into a Ms Database
I can not seem to find the problem in the following snippet of code. I would like the code to insert data into the Ms Database. I get an error message as follows. System.Data.OleDb.OleDbException was unhandled ErrorCode=-2147217904 Message="No value given for one or more required parameters." Below is the code for the application Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' Create containers to contain Text Dim myLastName As String Dim myFirstName As String Dim myTELUSID As String Dim myWork As String Dim myCell As String Dim myEmailAddress As String 'Fill the new c ...Show All
Visual C# Write text over images...
Hi, How can I write a text over a image, defining the position of the text... Like I have a picture of a man holding a whiteboard and inside it I want to write "Enter"... I have the coordinates already... Thanks Depending upon how it's going to be spit out. For example let's suppose you have a .aspx page that spits out an image such as <img src="DisplayImageWithText.aspx text=I+got+pwnt" /> In this case you would [retty much do the same exact code except this time we take advantage of one of the Save overload methods which allows us to save directly to a Stream. protected void Page_Load( object sender, EventArgs e) { Response.Clear(); Bitmap TmpImage = Write ...Show All
Visual Studio 2008 (Pre-release) SVG to XAML converters? EMF to XAML converters?
Hi, Does anyone know of any SVG to Xaml vector graphic converters that work well and work with the release version of WPF I found a project by Don Demsak ( http://www.gotdotnet.com/workspaces/workspace.aspx id=0e769f27-e0d8-4592-b0a9-69fe8bec3b2e ) called SVG2XAML but it hasn't been touched in 3 years. I found references to something from a website called xamlon.com, but that website appears to be dead (it returns a generic redhat apache setup page. Can anyone offer a good suggestion (preferably command line driven but I'll take anything) How about a EMF to XAML converter Again, I'd prefer a command line driven tool, if possible. I did find http://lab.aspitalia.com/15/EmfToXaml-Beta.aspx -- has anyone tried it Any other ...Show All
.NET Development regsvr32 dll problem
i'm trying to register a dll using regsvr32 and i got the following error the module "e:\myAx.dll" was loaded but the entry-point DLLRegisterServer was not found. Make sure that "e:\myAx.dll" is valid DLL or OCX file and then try again Chances are you need to make your Class Library "COM Visible" Right click on the class library project (in visual studion) and choose properties. In the "Application" Tab click the "Assembly Information" right next to the "startup object" dropdown. Checkmark "Make assebmly COM-Visible" (down at the bottom) Hope this helps. ...Show All
Visual Studio Team System changing TFS server name
Hi, I have a single server installation TFS with AD Authentication. The Server was defined as a test server for poc and trial. Now the team wants to change this server to be a production server. according to naming standarts, the team wants to change the server name. has anyone encountered a similar scenario and configured some best practices for that. I myself can think of 2 difirent scenarios: 1. ghost the server, change the server name, start troubleshooting any araising problems (not that good i suppose). 2. ghost the server, uninstall the tfs server, change the server name, install tfs from scratch. any ideas guys I can add one more scenario that I would like to do ...Show All
Windows Forms DataGridView - Automatic DataTable merging/updating
Hi I have a DataSet with two different DataTable s. The tables are: "Groups", groupID (PK), name. "Users", userID (PK), groupID (FK), fullname, age. To display the information for the user (in the DataGridView ), I create another DataTable , T , having the merged information of the two tables above. For instance: "George", 22, "Administrator" (<fullname>, <age>, <Groups.name>) instead of "George", 22, 1 (<fullname>, <age>, <groupID>) Now I set T as the DataSource of the DataGridView . Is there a way to have this done automatically anyhow Let's say, if I update/add a row, I need to save ...Show All
Windows Forms DataGridView Vs ListView
I'm writing a WinForms app which need to display a list of data in columns and rows format. The data are sourced from TCP/IP messages (i.e. not from a SQL database). Could I still use DataGridView for presentation If so, how do I convert data into DataSet, which is used by DataGridView If not, am I forced to use ListView for presentation One thing you try is creating a DataTable and binding it to the DataGridView You can bind a DataTable to the DataGridView like this DataGridView dgv = new DataGridView(); BindingSource bs = new BindingSource(); DataTable dt = GetDataTable() // Gets the DataTable bs.DataSource = dt; dgv.DataSource = bs; The function ...Show All
Visual C++ Creating an Avi file
hello, I found some sample source code showing how to create an Avi file from a series of still images. What components, libraries, SKDs, must I download in order to compile and run functions such as CreateAvi() I'm running 2005 Express or VC 6.0. Thanks. check out msdn http://msdn.microsoft.com/library/en-us/multimed/htm/_win32_video_for_windows.asp Kuphryn ...Show All
Windows Forms Executer une requete SQL qui retourne un seul enregistrement
Bonjour, j'utilise la version 2003 de .net. Je travaille avec une base de donnees Sql qui est charge dans un datagrid. Je voudrais pouvoir lorsque je fais la selection de certaines lignes, pouvoir les afficher dans mon datagrid. J'ai aussi ce code qui me genere une erreure lorsque je veux pouvoir executer une requete sql me permettant de retourner une seul enregistrement : public static Dictionary< string , string > ObtenirEnregistrement( string requete) { return ObtenirEnregistrement(requete, ConfigurationManager.ConnectionStrings["ConnectionString"].ToString()); } Comment modifier cette methode afin qu'elle puisse fonctionnee correctement Merci d'avance... Hi! I am using the ...Show All
.NET Development Issue with culture settings in IIS
Having converted a .NET vs 1.1 website to 2.0, and having deployed it to an XP machine, everything seemed to work fine. So, we deployed the new software to a Windows Server 2003 machine. We noticed that we kept getting dates displayed in US format where the local C# code was not culture specific. The website is fairly large (4,500 files) and is one I inherited so I was a bit put-out that I might have to code culture specific processing of every date in the system. So, I started to look for a global solution. After much testing and experimenting, I discovered that when I used the IIS configuration tool to set the culture and I specified "en-GB", the globalization setting was removed from web.config, otherwise the setting was placed in ...Show All
