Shane Lile [MSFT]'s Q&A profile
.NET Development Web Service Flow Control Between Calls
Hi, I'm running into a problem using web service tech. I have 2 methods published as AddCustomer and AddSales on the web (web service). Those 2 methods will add a record on table Customer and table Sales respectively. Table Sales has reference to the table Customer (CustomerId). Now if I called the 2 method with this order: 1. AddCustomer 2. AddSales It works because the customer is already added to the table Customer and no referential error when the method AddSales invoked. But when calling these methods, with the above order, simultaneously it generates referential error. For example, I call these methods from 2 different computer continuously. Can anyone help me with this Regards You have 2 choice ...Show All
Visual Studio Team System Description query fails when trying to run.
I have a search query setup. It's pretty simple, it runs against the current project and looks at the Description field for specific text. If I run the same query against the title field everything works with no problems. When I run the query, an error comes up stating 'stating there is a problem on the server. Contact your team foundation administrator.' Well I recently fell into that position, so I'm trying to address the problem. Any ideas on how to troubleshoot the problem. Any help would be welcome. aaron Can you look at the event log on the application tier machine and see if there are any hints of what went wrong I think you may need to enable full text indexing for the long text fields. The column ...Show All
Visual Studio Team System Merge doesn't work after top level directory rename?
I did a simple branch from: $/Top/Dir2 TO $/Top/Versions/Dir2 I had added some code to the tree. I renamed $/Top/Versions/Dir2 to $/Top/VersionsV0.0/Dir2 I then tried to merge from /Top/VersionsV0.0/Dir2 to the top of tree $/Top/Dir2 and it gave me all sorts or errors about it not being able to merge. I rolled back the rename and then tried the merge and it worked fine. Is merge not supposed to work after a simple rename Thanks When it was renamed, were you trying to merge through the UI or also with "tf merge" There's a chance that it's just a bug in the UI wizard and the command line will handle it fine. ...Show All
Visual Studio Express Editions Simple DataGridView question
How can I loop through all the rows of a DGV using a For...Each loop I tried this code: For Each row As DataGridViewRow In DataGridView1 Next but it gives me an error. Can anyone help me out with this Thanks... If you know the name of the column, you can access that cell's value by the column name: Dim cellValue As String = row.Cells(columnName).Value.ToString() Otherwise yes, you could iterate through all columns: For Each cell As DataGridViewCell In row.Cells Dim cellValue As String = cell.Value.ToString() Next Andrej ...Show All
.NET Development Web services / Hosted Controls catch 22
We have created a Hosted .Net Control that uses web services to talk to an IIS server. Works great; except behind an Microsoft ISA proxy server that expects authentication. The user gets a 407 Proxy Authentication failed. Through exhaustive searches of the internet we have concluded that the answer should be something like: WebProxy proxy = ( WebProxy ) WebRequest .DefaultWebProxy; proxy.Credentials = CredentialCache.DefaultCredentials; webserviceProxy.Proxy = proxy; However, this approach fails because of a CAS security exception System.Net.WebPermission. This seems to be caused by violation of the Intranet_Same_Site_Access or Internet_Same_Site_Access in the internet and “local intranet” sandbox that we are t ...Show All
Windows Live Developer Forums Question "Disambiguate a location"
I couldn't find much on this in SDK documentation... I'm trying to code a function that if there is a match to a searched location the map zooms to that location and a marker with appropriate text is created (this part is easy thanks to the post by CelebT) but I'm struggling to find a work around for cases where more than one match is found. Find(); returns a list of possible matches but the marker is put only on the first location on that list. Is there a way to: 1. stop drawing a marker until the user makes the selection and the map zooms to that location 2. "recycle" the information returned (ie text plus info which location from the list was selected by the user) Thanks Rusty ...Show All
Visual C++ When "It just works!" doesn't. :(
Hi, To test out "C++ Interop", I created a static library in VC++ 6.0: Here is the contents of the header file (staticLibrary.h): #ifndef STATICLIBTEST_H #define STATICLIBTEST_H #include <string> using std::string; int add352(int value); string sayHello(string name); #endif Here is the implementation (staticLibrary.cpp): #include "staticLibrary.h" int add352(int value) { return value + 352; } string sayHello(string name) { string s1("Hello, you are the greatest, "); return (s1 + name + "!\n"); } This code compiles fine in VC++ 6.0 and it produces an object called "staticLibrary.lib ...Show All
SQL Server GetDataDrivenSubscriptionProperties vs GetSubscriptionProperties
Is there a similar method for Data Driven Subscriptions like there is for plain subscriptions ListSubscriptions. I would like to get SubscriptionID for use with the GetDataDrivenSubscriptionProperties just as I do for GetSubscriptionProperties. When I execute GetSubscriptionProperties for Data Driven Subscriptions there is no array of Subscriptions. Here is an examole of the code which I execute using rs.exe: Sub Main() 'Dim rs As New ReportingService() 'rs.Credentials = System.Net.CredentialCache.DefaultCredentials Dim DRPlan As DataRetrievalPlan Dim extSettings As ExtensionSettings Dim desc As String Dim active As ActiveState Dim status As String Dim eventType As String Dim matchData As Str ...Show All
Visual Studio Permission for VB developer in Windows XP
What is the least permission for a VB developer to compile their software on Windows XP Professional Permission in which way User level or file access level If it's file access then you need write permission. If it's user level then I guess (but do not quote me) the guest account will do HOWEVER it must already have installed VS on that account so you can create your applications etc.... Try it out and see what happens ...Show All
.NET Development Trace Helper Tool
The BCL page specifies a Trace Helper Tool but the information seems quite outdated (it refers to Beta 2 of the 2.0 Framework), is this tool available Or is there any word on when it will be available From http://msdn2.microsoft.com/en-us/netframework/aa569603.aspx : Trace Helper Tool (Coming Soon!) We've added a lot of new features to Tracing in V2.0. A group of testers in the CLR team got together and developed a tool (TraceHelper.exe) that uses these tracing features. Below are the details of this tool and a zipped file of the tool which can be downloaded. This has been built on Beta2 of V2.0 of the framework. TraceHelper is a convenient tool that can be used with applications that use .NET tracing. This too ...Show All
Internet Explorer Development Swaping rows of a table using javascript
Hi Developers and coders!!! I am facing a complex situation. I have to swap rows of a table client side using javascript. I thought i could do it using HTML Dom but i am not able to do it, can any one help me for this. suppose i want to move Item 2 one level up on click of move up button using javascript, how is it possible using java script. I will be very thankful if could get some code snippet. Item 1 Item 2 Bye............ Hi, The article at http://msdn.microsoft.com/library/default.asp url=/library/en-us/dhtmltechcol/cols/dndude/dude07232001.asp frame=true may help give some idea on how to manipulate tables from script. Thanks -Dave ...Show All
Software Development for Windows Vista Was solved
I created .crd for X509 certificate (using hex thumbprint) but failed to use it to authenticate getting error message box "The certificate associated with this card could not be found" and nothing in event log. The certificate seems properly trusted, has corresponding private key, located in CurrentUser/Personal (in LocalMachine/Personal too) keystore and can be found by >findprivatekey.exe My CurrentUser -t "d47de657fa4902555902cb7f0edd2ba9b05debb8" that was shipped with some of Cardspace sample STSs' So the questions are: 1. Am I doing something wrong 2. Is there some possibility (in present version of .Net3) to do it without SmartCard hardware (maybe some option or tool/emu for testing) 3. What the requirements to SmartCard hardware ...Show All
Visual Basic Problem returning from dialog box subroutine
I must be missing something very basic here. I have a text box in a dialog box and want to warn the user when he clicks OK and the text box is still empty. The code below takes the path that I want when there is no text in the text box, but for some reason, the dialog box exits anyway even though the Me.Close() function is not executed. There must be some way to validate the entries on the dialog box after OK is clicked but before the subroutine exits. What am I doing wrong Private Sub OK_Button_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click If NameTextBox.Text = "" Then MsgBox( "You must enter a name" , MsgBoxStyle.Critical, "Status" ) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Error loading XNA visual studio package
Hi, When I try to use any of the XNA commands in Visual Studio .NET 2005 Professional Edition (e.g. Globals Window) I get the following error message: "Package 'Microsoft.Xna.UI.XnaStudioPackage.XnaStudioPackage, Microsoft.Xna.UI.XnaStudioPackage, Version=1.0.2243.4602, Culture=neutral, PublicKeyToken=f48fa5f25d27e8ff' has failed to load properly ( GUID = {CE7DE4D4-4A42-4DCA-B389-0CC2CCDF555F} ). Please contact package vendor for assistance. Application restart is recommended, due to possible environment corruption. Would you like to disable loading this package in the future You may use 'devenv /resetskippkgs' to re-enable package loading." and, needless to say, the XNA windows don't appear. I ran VS with the /log option, and it ...Show All
Windows Forms Adding Components to Windows Forms
anyone have any links on how i would add a component control to my windows form I created a component and now i want it to be inside my panel on my windows form but I cant find much info on the net to help me out though.... where are you placing the code Also don't do the Container.Add (this maybe a problem I don't know but do not quote me) do this: this.pnlOrderContainer.Controls.Add(ordercomponent); and yes you have to create an instance of the control in question. ...Show All
