jcmag's Q&A profile
Visual Studio 2008 (Pre-release) .NET WebService Studio and WCF
Has anybody managed to get the .NET WebService Studio to generate a proxy assembly so that a WCF service could be tested All I get when I connect to an SVC endpoint (our WCF is hosted in IIS) is that the WSDL is successfully consumed, but the Proxy node looks like: //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:2.0.50727.42 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ // // Assembly WebServiceStudio Version = 2.0.50727.42 // As a result, the I ...Show All
Visual Basic Streamwriter in VB 2005
This SHOULD be easy. I must be missing something. I'm assembling a long string and trying to write it out to a file. If I display it in a message box or textbox, it looks fine. But when I write it out to a file, it gets chopped off. I thought it might be my data, because it is supposed to be HTML, but it seems to be related to the amount of data, because it chops off at about the same number of lines no matter what the data. I tried breaking it into smaller strings and doing two writelines, but it still does the same thing. lname = names(1) outFile = "D:\Class of 57\updatehtm\" & lname & ".htm" output = New FileStream(outFile, FileMode.OpenOrCreate, FileAccess.Write) fileWriter = New StreamWriter(outp ...Show All
Software Development for Windows Vista CallExternalMethod Activity, Workflow Idle Issue - URGENT
HI, I created a custom composite activity embedding CallExternalMethod Activity and HandleExternalEvent activity to interact with the Workflow host (ASP.NET appln). I have a simple workflow like this, 1)CustomActivity1 2)Parallel Activity i) CustomActivity 2 ii) CustomActivity 3 3)CustomActivity 4 When the workflow gets executed, the steps 1 and 2 works fine. But when i complete both the items in the parallel activity, my workflow idles (fires the workflow idle event) without evaluating the next CustomActivity4. I have this Workflow Idle issue only when i place my customactivity within a parallel activity. Any help on this. thanks. Does the parallel activity rea ...Show All
System Center SCCP 2006 availability on MSDN
Previously, we incorrectly communicated that SCCP 2006 would be available for download by all MSDN subscribers. The download option is available only for Premium-level subscriptions. We apologize for this miscommunication, and for any inconvenience caused. ...Show All
Windows Forms Add an Installer withinh my installer
Hi, I am working with VS2005 (VB) and my application requiers another installation (I am working with ArcGis, and need to install the ArcGis Engine), How can I make my setup project to Install that software Please help!! Yael Hi Philwilson, my installer is not msi based. and i am adding 3 setup.exe in custom action. but i want that 2nd exe should start after only first one is finish. beacause there are some dependancies.first exe making some entry which checked 2nd exe.like that. and before completion of custom action setup my msi set up showing set succesfully completed. so i want 2nd setup.exe should after first one finish execution. how could i do that thanks vivek. ...Show All
Visual C# Constructor Logic???
In dealing with Forms in .Net and they have a form load function that does some things when the form is loaded, I was trying to figure out would i be able to do the same thing if i added the logic in the forms constructor... Like say if i wanted to show some data values when the form loaded, would i be able to add this logic to the forms constructor instead of adding it to the form.load() Ahmedilyas is very right on this one. java.net recently published an article about the five habits of highly profitable software developers which very much applies to everyone. They talk about this issue specifically: " Habit 1: Constructor Performs Minimal Work - The first habit is for an object's constructor to do as little work as pos ...Show All
Visual Studio solution!
Hi, Using Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Professional Microsoft Visual C# 2005 77626-009-0000007-41642 Microsoft Visual C# 2005 Microsoft Visual Studio 2005 Tools for Applications 77626-009-0000007-41642 Microsoft Visual Studio 2005 Tools for Applications Microsoft Visual Web Developer 2005 77626-009-0000007-41642 Microsoft Visual Web Developer 2005 Toolbox does not display most of the controls This is even after "Rest Toolbox", "Reset all settings", and "Import selected environment settings". I have also uninstalled and reinstalled three times. The only way it ...Show All
Windows Forms how to disable selected image index property in treeview
Hi I'm using tree view control in my application. I'm using Imagelist to provide images for nodes,but How can I avoid selected item image index Thank u You have to do SelectedImageIndex = ImageIndex per TreeNode I am unclear as to why they have a default TreeView SelectedImageIndex and ImageIndex. ...Show All
Windows Live Developer Forums MSN feature - How to check if a specific user came online while you were offline?
Hello, I am new on these forums and I have a question about Windows Live Messenger development. Is there a way to check if a specific user came online while you were offline I am sure this feature is not built into WLM so are there any plans to include something similiar in future It would nice if you could get a list of users in your contact list who came online while you were offline. Maybe you can include the time when they signed on and the time when they signed off. Thanks! writing an addin you cold do this if you were appearing offline. Otherwise it is not possible to have something run in your account checking for your buddies presence while you are not logged into that account currently ...Show All
.NET Development RFID Reader Project
Hello, I'm currently working on a project which involves a serial port RFID Reader. I have connected the Reader to COM2 of my PC and i'm trying to get the signals from the RFID Tags. I'm using Visual C# and SerialPort class. The problem is that i can't read or write to the port. I even tried to write something to the port using port.Writeline("string") and then read it with Readline() but it seems that nothing is written and nothing can be read. When i set the RtsEnable to TRUE the BytesToRead property changed from 0 to 9 no matter what i did and still i couldn't read anything. I also wanted to ask you if you have any code samples to send me or if any of you has written a similar program that works. I need to fix t ...Show All
Visual Basic check assembly
i need to Check Whether the assembly is already running in the process when i start the same assembly ( to avoid duplication in assemblies running currently) i need one copy of assembly to run at a time.. is there any property to set or how to check if its an executable assembly, your app, you can get the list of processes by name and if it already exists then you know that another instance is running: Dim theProcesses() as Process = System.Diagnostics.Process.GetProcessByName(" yourAppName ") if theProcesses.Length > 1 then 'another process running end if ...Show All
Visual Studio Any Idea On Crystal Report Connection???
Hi All, I Changed My Server from SQL 2000 To SQL 2005 Server. I Also change my ServerName and Database name... When My applications Running From SQL 2000 Server i have not set ConnectionString on my Page. But when I migrate Server From 2000 to 2005 and also change servername and databasename It ask for ConnectionInfo...... You can find my code on http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=879486&SiteID=1 First I Try to setup following code for Connection Info rpt.DataSourceConnections[0].SetConnection( "Server1" , "MYDB1" , "sa" , "db" ); My Report Data will not refreshed.... Then I tried following code. rpt.SetDatabaseLogon( "sa" , "xys06" , "Server2" , "MyDB2" ); Then i will get Mis ...Show All
.NET Development UDP Broadcast Problems
Greetings all! I'm having problems recieving UDP broadcast packets. I've looked over all the code I can find on MSDN and elsewhere but I can't find what I'm doing wrong. I've got a sending thread and a recieving thread using the same socket to send and recieve the packet. Bellow is a copy of the code I made up to test it out: public Form1() { InitializeComponent(); server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); server.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, 1); IPEndPoint localhost = new IPEndPoint(IPAddress.Any, 2305); server.Bind(localhost); Thread t = new Thread(new ThreadStart(Listener)); t.Start(); t = new Thr ...Show All
Visual C++ C++ Generics issue
Hi. I'm having a problem converting some C# to C++/CLI, which involves generics: //// C# code (compiles and runs): ///////////////////////// // The constraint requires the generic parameter T // to be convertable to the type of the derived class: public abstract class MyBaseT<T> where T : MyBaseT<T> { public MyBaseT() { } } public class MyDerived : MyBaseT<MyDerived> { } //// (equivalent ) C++/CLI code: //////////////////// generic<typename T> where T : MyBaseT<T> public ref class MyBaseT abstract { public: MyBaseT() { } }; public ref class MyDerived : MyBaseT<MyDerived> { }; /// Compiler error: Error 1 error C3393: syntax error in constraint cla ...Show All
Windows Search Technologies Writing Protocol Handlers using Managed Code
Is there a sample showing how to add your own store (essentially write your own protocol handler) with .NET (I am aware that there might be issues with different .NET Fx versions...) Thanks, Neno Eric, do you have any information about when (and if) we'll be able to develop WDS protocol handlers in managed code Is it possible to write an out-of-proc protocol handler, in order to prevent the issue related to different .NET Fx versions loaded in the WDS process Or perhaps can WDS declare a preferred .NET Fx version to prevent conflict ...Show All
