BipinP's Q&A profile
Visual Studio 2008 (Pre-release) CommunicationException was unhandled
When doing multiple client load test using wcf Service with tcp , i get the following error. The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '10:10:49.6250096'. The same code is working fine for single user version. The service has http and tcp end point. Http end point is working fine with multiple client. I also had the same problem with TCP binding but not with WSHTTP binding. After some testing I have found a solution that work with my application, I hope it is working in your case too. My solution was to enable PortSharing in config files (client an ...Show All
Visual Studio Express Editions fatal error RC1015: cannot open include file 'winres.h'
I've read several forum posts that are similar to this question, without help. I'm using VC++ Express My winres.h is located in: C:\Program Files\Microsoft Platform SDK\include\mfc I tried adding the above to my dependencies and also tried this: C:\Program Files\Microsoft Platform SDK\include\mfc\winres.h I have tried adding these Lines to Project->properties->Linker->General Project->properties->Linker->input Project->properties->C/C++->General I tried different combinations of the above, just one or all etc. I even copied winres.h to my solution and put it directly in my include folder. It still can't open the darn file. Any idea why, it can't open this file Second but relat ...Show All
Visual Basic Calling a Menu Option through code
I have an application having a Menu with the following options. File -> a) New b) Open c) Close There is a button on the form. My need is when I click on the button, the close option is to be activated. how exactly do you mean "activated" one way I guess would be to do: mnuItemClose.Visible = true mnuItemClose.Selected = true although not sure if this will work ...Show All
SQL Server Unable to run SSIS package under sql agent job
Hi, I've created a new SSIS package and am trying to run it as a sqlagent job. If I 'Run as' the 'SQLSERVER AGENT' account I get 'Executed as user: domain\administrator. The package execution failed. The step failed' . If I change this to 'Run as' 'sql agent service account' I get the following message 'Executed as user: [[servername]\SYSTEM. The package execution failed' . The step failed. I can successfully run the package in visual studio, management studio and via the command prompt. Presumably it is a permissions problem I've tried setting up the logging but nothing was written to the log when I run the job, there is otherwise(via Visual studio). I've also tried the following http://support.microsoft.com/kb/918760 , but it m ...Show All
Visual C# Parallel Port
Hi, I need to send to all data pins in the parallel port 255 bytes(make all pins enabled), how can I do this Thanks check this out and see if it helps you at all: http://www.codeproject.com/csharp/csppleds.asp most likely you will need some drivers/API's to access parallel port since the SerialPort classes will of course not work I believe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Free Roam Camera Problems
All right. I'm trying to make a free roam camera. A Camera i can use to inspect my 3d world. So far, in my world, i have a very small sky box, and two even smaller meshes inside of it. Everything is fine except the camera class. Currently the camera is positioned at {0,0,-50} and has a target of {0,0,0}. In the beginning of the app im outside of the skybox looking straight at it, when i press left or right, the box will move to the left of the screen, then to the right, and back. What i want to see is the skybox leaving the screen, then eventually coming back on the other side. Here is my function to rotate the camera(Move its target around it.): public void RotateYCamera( float amount) { Matrix tMatri ...Show All
Software Development for Windows Vista Print Schema 0.95 is available for download.
Microsoft has updated the existing Print Schema Specification documentation that is currently available on MSDN at http://www.msdn.com . The updated documentation, Print Schema Specification Version 0.95, is based on feedback from the community and our partners. What’s New The goal of the Print Schema Specification Version 0.95 is to give more clarity surrounding the Print Schema documentation that is currently available on MSDN. Concepts are clearly defined and provide PrintSchema document producers and consumers increased guidance on conformance requirements. Please note that there is no intended change in functionality between the MSDN documentation and the Print Schema Specification Version 0.95. ...Show All
.NET Development Thread was being abort
Hi all, I wrote an application which display a status dialog box while doing a time-consuming task. However, sometimes it raises an error message saying that "Thread was being aborted.". What wrong with my code Please help! Here is the code: The statusdialog is to display a dialog // status dialog public class StatusDialog : System.Windows.Forms.Form { private System.Windows.Forms.Timer timer1; private System.Windows.Forms.Label label1; private System.Windows.Froms.Label label2; public StatusDialog(string title) { label2.Text = title; } // Tick event handler private void tick( object sender, System.EventArgs e) { try { if(this.label1.BackColor == Sy ...Show All
.NET Development How to setup programmatically channels?
Hi, I want to configure a http server channel and a http client channel programmatically instead using configuration files. I'd like to know the correct syntax to translate the following configurations files Client <configuration> <system.runtime.remoting> <application> <channels> <channel ref="http" secure="true" port="0" /> </channels> <client> <wellknown type="General.IBroadcaster, General" url="http://localhost:5555/Broadcaster" /> </client> </application> </system.runtime.remoting> </configuration> Server <configuration> <system.runtime.remoting> <application> ...Show All
Windows Forms Attention NEWBIES... updating records
Help please add new button Me.BindingContext(ds, "info").EndCurrentEdit() Me.BindingContext(ds, "info").AddNew() ..... Save button Me.BindingContext(ds, "info").EndCurrentEdit() adapt.Update(ds, "info") ds.AcceptChanges() but i encounter error, "Update requires a valid InsertCommand when passed DataRow collection with new rows." You need to create the update, insert, and delete commands for your data adapter. The command builder will do this for you. For this example I am assuming you are using a sql data adapter. Dim cmd as new sqlcommandbuilder(adapt) adapt.Update(ds,"info") ...Show All
.NET Development assign object to data from webservice
I have assigned a variable of type object to a method. i.e. object o = getDataFromWebService(int intData); Then hovering over o or looking at the values in Locals Window for o, I can see the data has been returned. Something like: o[0] o[1] o[2] etc... Theh for each index, in the locals window I can see the fields returned also. In code, how can I refer to these values please I tried something like: string x = o[0].ToString(); but I get this errorL: Cannot apply indexing with [] to an expression of type 'object' Thanks If an array is returned from getDataFromWebService, then it's necessary to cast o to the array to be able use the indexer. Something like this: object o = getDataFromWebService( ...Show All
Visual Studio Tools for Office VSTO 2005 SE Beta
"Anyone who has a licensed version of Visual Studio 2005 Tools for Office or Visual Studio Professional and above (either standalone versions or via an MSDN Premium or Professional subscription) is eligible to download a free copy of VSTO 2005 SE Beta." Right... but do I have to have VS 2005 Tools for Office installed to prove that I have it This is going to sound really stupid, but I have a proper license that I've never been able to install because I have Office Standard + Access standalone instead of Office Pro (due to a mistake by our volume license provider). Why is there such a restriction Seriously, shouldn't there be developer version of Office bundled with VSTO T ...Show All
SQL Server Multi-valued Parameter
Hi There, I need to be able to enter values into a single parameter. For example, I would like to be able to input 1234,5678,5678. I tried several ways but I can't get it to work. Can it be done A list is of no use because the values refer to mobiles which we have thousands of. Is there a way to enter a number of values into the one paramater Please help! Thanks, Rhonda i have the same problem like Rhonda but i’m using a cube so i can’t do it with "sql" and "IN". Thx for your help! ...Show All
Windows Forms RichTextbox image
Hey, in Visual C# 2005 is there a way to make the rich textbox have a background iamge Thanks :) As for Netscape, it uses both engines. You have the option to switch between them when viewing any page (there is a little list at the status bar that contains two items: Show using IE, and show using firefox!) As for the Enter Key, I'm not sure what you mean by "dont make the sound that tells you you cant do somthing when I press the Enter key", however, Handling anything that has to do with the keyboard might be a hard task with the WebBrowser control in .NET (as far as i know, it is not even possible, but i can't be sure). As for errors, you can handle errors in documents by attaching an event handler to the ...Show All
Visual Studio Tools for Office Getting Outlook 2003 Contact Items into a DataSet
Hi: I'm using VSTO developing Outlook 2003 add-in. Wonder if there is any efficient way to have all Contact Items (and other such as mail, appointment, and task items) be stored into a dataset Or the only way is to iterate all items in the Contact folder and add into the table row by row. Thanks in advance. Hello Jan, as I kno - there is no other way. However - In Outlook 2007 there is a Tableobject that maybe could be faster - havn't tried yet. Also you could try to use CDO (not recommended) and if You have an Exchangeserver, you could fetch your data directly into an DataSet by using WebDAV. Or - You could use an SQL Server to link the Exchangeserver directly into an SQL -Table. If all ...Show All
