Deeps Makhija's Q&A profile
Visual Studio 2008 (Pre-release) SvcUtil exclude datacontracts
I'd like to exclude datacontracts from being generated with SvcUtil. There seems to be a /dataContractOnly switch, but there is nothing like a /proxyOnly switch. I already took a look at the /excludeType switch, but that doesn't seem to work. Hope somebody can help me out, Thanks, Gerben. Unfortunately there is no equivalent of /dconly to do proxy alone. You can prevent svcutil from generating datacontracts by using the /r option, if you already have an assembly that contains the datacontract types. In that case svcutil will use the type definitions from the assembly. I hope this clarifies. ...Show All
Visual Studio Administrator priviliges required
I just tried to create a new Language project on a computer where I don't use an Administrator account, and it doesn't work since I obviously don't have write permission to the Program Files folder. I think it is super important to fix this and allow development of DSL projects with limited rights accounts. Cheers, David Done. Now, please everyone vote for this as important :) http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=750b1553-ab8a-4442-8589-497e794de965 Cheers, David ...Show All
Windows Forms change the font on a ContextMenu
Hi All, Does anyone know how I can change the font on a ContextMenu By default the font seems to be set to SystemInformation.MenuFont which is a readonly property. I can't find a Font property in the ContextMenu class to reset the font. (using C#) Thanks in advance for answers or suggestions. John Am I right in assuming that there ...Show All
Windows Forms Images do not appear on TabControl when using VisualStyles
Hello, I'm having a problem with a TabControl and VisualStyles. My tabcontrol contains images on each tab, which appear at design time, but when I run the application the images are missing and only the text appears on the tabs. Does tabcontrol support images when using VisualStyles My alignment is set to "Top" if that makes a difference. Thanks Simon I seem to have fixed the problem I was having. I am also using VS2005, but with top alignment. What I suggest you do is call Application.EnableVisualStyles() before you run your application, check out the code below: static void Mai ...Show All
Windows Forms Keeping forms in sync
Hello all, Form1 is bound to DataView1 and displays information for an account in text boxes. Form 1 also has a Datagrid1 that is bound to array1 that holds detail info for the current account. When the current account is changed Form1 has methods to update array1 and DataGrid1. Form 2 is opened from a button on Form1. Form2 allows the user to search f ...Show All
SQL Server A question on Conversation timer persistence
I'd like to add code to a trigger to calculate the time to fire a message into a queue based on a field changing, and conversation timers seem like the way to go. My first question refers to this line from the BOL: "Calling BEGIN CONVERSATION TIMER on a conversation before the timer has expired sets the timeout to the new value." I think that in this trigger, I can simply begin a new conversation if the given field has changed to reset the timer. But intuition tells me that in order to change the timer to a new value, I need to retrieve the existing conversation, correct Also, I've read that conversation timers are persis ...Show All
Visual C# timer problem
I've a timer (interval = 1000) in my app. When the timer is working parallelly a big loop is also working. but I found out untile this loop not finished the timer won't work. How can I force the timer to alwasy work every second Would you please explain what's the running message loop ...Show All
.NET Development MSXML 6 Merge Module
Does any one know if microsoft are going to release a merge module version of msxml 6 I ask as i need it for an installation Thanks MSXML6 will only be released as MSI there will be no more MSI releases from Microsoft. - Umut Alev [MSFT] ...Show All
Windows Forms Binding CompboBox after form has loaded
I have a situation whereby my form loads and populates comboBox1 which works fine. However, when the user selects a value from comboBox1 I want to populate comboBox2 with values based on the selection but can't seem to get it to work: Here is my event handler for the first comboBox. private void comboBoxTargetProduct_SelectedIndexChanged(object sender, System.EventArgs e) { string ...Show All
Visual Studio Team System Exception on import: It was String, but now is HTML.
Exception Type: Microsoft.TeamFoundation.WorkItemTracking.Client.Provision.ProvisionValidationException Exception Message: TF26038: Field type for Microsoft.VSTS.CMMI.ImpactOnArchitecture does not match the existing type. It was String, but now is HTML. I mistakenly imported a beta2 WI type. Now the proper template will not import. How can I correct this Hi Alan, Unfortunately you cannot change the type of an existing variable. If you rename it, it will work. Cheers, Randy MSF ...Show All
Visual Studio Team System TestRun Deployment Issue - local assembly is not trusted
Hi there, I have a Unit Test for a web page (based upon the details at http://blogs.msdn.com/vstsqualitytools/archive/2005/08/02/446322.aspx . When I try to run the test I get the message: Test Run deployment issue: The location of the file or directory 'c:\...\ICSharpCode.SharpZipLib.dll' is not trusted. I have found other references to this message but they were all for assemblies on UNC shares or other remote locations. This asembly is on my local machine (and My Computer is set to Full Trust in the Framework Configuration). Do you know how I can get the test to run Thanks, Brendan Bren ...Show All
Windows Forms Global Application error event
Is there any event that raises anytime some error occures in the application I can manage the errors separate in every event with try... catch, but is there any global event that raises when there's an error in the Application In ASP.NET there is that event in glogal.asax (Application_Error), but in Windows Application I don't know is there any event like Application_Error Sorry for delay, but Application.ThreadException is that what Iam looking for. I make a test exception with throw new Exception, and with AppDomain.Current.UnhandledException (for vs.net 03) it gets standard messagebox (with Break and Cont ...Show All
.NET Development Error with serialPort class
I'm having problems with configuring my serial port object. I'm trying to communicate with a PIC18F458 and I have declared my serial port in the program as: serialPort = new System.IO.Ports.SerialPort("COM1", 19230); But when I run the code, I keep getting the error: A first chance exception of type 'System.IO.IOException' occurred in System.dll And when I display the error message, I get this: Error: The parameter is incorrect. Even if I set it to 19200 or other values, I still receive the same error. But if I print out the baud rate, it prints out what value I set. However, it's the only pi ...Show All
SQL Server Integration Services
Hi all, Can someone explain to me why I am getting this kind of error though I am able to integrate all the data succeesfully to the next destination. Ronald SSIS package "Prescription.dtsx" starting. Information: 0x4004300A at Data Flow Task, DTS.Pipeline: Validation phase is beginning. Information: 0x4004300A at Data Flow Task, DTS.Pipeline: Validation phase is beginning. Information: 0x40043006 at Data Flow Task, DTS.Pipeline: Prepare for Execute phase is beginning. Information: 0x40043007 at Data Flow Task, DTS.Pipeline: Pre-Execute phase is beginning. Information: 0x4004300C at Data F ...Show All
.NET Development connection string + webservice
Hello, I am trying to make a connection to my SQL2005 database through webservice. For some reason it doesn’t work. Here is the code. I would appreciate it if somebody could help me with this. [ WebMethod ] public bool TestConnection() { OleDbConnection conn = new OleDbConnection (); conn.ConnectionString = @"Provider=SQLOLEDB;Data Source=.\SQLEXPRESS;AttachDbFilename=C:\SQL Server 2000 Sample Databases\NORTHWND.MDF;Integrated Security=True;Connect Timeout=30;User Instance=True" ; try { conn.Open(); conn.Close(); return true ; ...Show All
