Ian Vink's Q&A profile
Smart Device Development sending/receiving datasets from webservice
Hi If sending/receiving datasets from webservice is mandatory in an application , is there any better solution in CFv2.0 in replace of using dime attachments Can i use XmlSerializer to convert datasets to bytes and pass that as parameter to webmethods or add to soap attachment instead of the dataset itself Please advice Thanks Gauls Just declare Web method which takes/returns dataset, framework would take care of the rest. ...Show All
.NET Development asynchronous operations issues....
Hi guys, I have a problem with FileStream object!!! By using something like; processHandle = OpenProcess( ProcessAccessRights .PROCESS_DUP_HANDLE, false , processId); if ( DuplicateHandle(processHandle.DangerousGetHandle(), handle, currentProcess, out objectHandle, 0, false , DuplicateHandleOptions .DUPLICATE_SAME_ACCESS)) { handle = objectHandle.DangerousGetHandle(); } FileStream s = new FileStream (objectHandle.DangerousGetHandle(), FileAccess .Read, true ,128, true ); First time I run it it works without problems but second, third,.... time when I fire it it gives the following error; Handle does not support asynchronous operations. The parameters to the FileStream constructor may need to be changed to ...Show All
Visual Studio Crystal Report help needed
I m using C# and Crystal report for some sort of reporting. I have visual studio .net installed. My application working fine in my PC and crystal report also working. But in another PC (where visual studio in not installed) I first install .net framework. Then I run my application, it works fine, but exception raised when I tried to view crystal report viewer. The exception is (I don't remember exactly) "Could not start CrystalDesigner. _________ .Engine" Hi, It sounds like you did not include the Crystal merge modules with your project. This is from the Crystal help file: In Crystal Reports 11, application deployment with Visual Studio .NET has been simplified to provide a single Crystal Reports m ...Show All
Windows Networking Development TDI client/protocol interaction
Hi, I am trying to write a TDI client driver and Protocol driver on Windows Server 2003. I want my protocol driver to report NIC binding ADD/DEL events to the TDI client. I registered for TdiRegisterPnPHandlers in my client . When a NIC binding is added (or deleted) , I call TdiRegisterDeviceObject ( or DeRegister) in my protocol driver. But I dont see my clients ClientPnPBindingChange routine being called with TDI_PNP_OP_ADD (or TDI_PNP_OP_DEL). Another problem is that I am able to receive ClientPnPAddNetAddress (or ClientPnPDelNetAddress) from the TCPIP module when network address changes occur, but I am not able to do the same from my protocol driver. I call TdiRegisterNetAddress (or TdiDeregisterNetAddress) from the protocol driver bu ...Show All
Visual Basic Locate mouse position of hovered tabpage
I'm creating a tabbed browser app where each page is dynamically created and named. I need to use the mousehover event but don't know how to determine which tabpage is in the hover state. VB.NET documentation mentions the MouseEventArgs class but when I try to add a new mousehover delegate, VB will not accept this signiture in place of the required System.EventArgs. Bottom line: the app contains a main form with a 'New Tab' checkbox. If checked and address bar URL is navigated, a new tabpage is dynamically added to the tabcontrol and named "wbTabPage" & << the new tab's index >>. I want to raise the mousehover event whenever this new dynamically created tabpage is hovered. I searched for three days for infor ...Show All
Visual Studio Express Editions calculate numbers from a "visual" line
hello, i'm a visual basic beginner, using visual studio 2005 and had a question: how can i calculate a number from a proportionate line ex (X1) correspond to (Y1) and (X2) correspond to (Y2) (1) correspond to (10) and (10) correspond to (100) if i have 5 i need to become 50 its for a pressure sensor that sends mV and i have to put it in mbar thanks see sample in this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1222989&SiteID=1 ...Show All
Visual Studio 2008 (Pre-release) WPF application makes call to server through WCF and hangs
Hi, OK, this is what we did: Created two console applications, one server, one client. Implemented an server interface and callback. After setting the config files on server and client (using named pipes and WCF) we got everything to work. We are making a call to the server, and within this call, the server calls the client back [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single,ConcurrencyMode=ConcurrencyMode.Reentrant)] Then we switched the client to a WPF (STAThreading). When the WPF app calls the server, the call makes it to the server, but never comes back. The client just times out... The really weird thing is that this only happens if we create the service in the Button handler, code looks like this: [Button handler c ...Show All
Visual Studio Namespace-level comments in Sandcastle?
Hi Anand, We have been using NamespaceDoc.cs to supply namespace-level comments to NDoc. Does Sandcastle allow for namespace-level comments If not, is there a plan to incorporate them at some point Thanks, Richard Hi Anand, I tried including a comment at the namespace level, and it doesn't show up in my XML file. Here is what I did (I have changed the actual namespace and class names, which are internal): using System; ... using System.Xml.Xsl; /// This is the namespace namespace the.namespace { /// This is the class public sealed class TheClass: BaseClass { ... My XML file shows the comment for the class, but not for the namespace. I also tried using the <summary> tag with the namespace comme ...Show All
SQL Server Integration Services won't install
I am installing Visual Studio 2005 Professional on Windows XP. I have finished installing Visual Studio 2005 Professional along with Service Pack 1. Now I am installing the Developer version of SQL 2005 that comes with Visual Studio 2005 Professional . During the installation of SQL Server 2005, I got the following error during the integration services installation portion: Failed to install and configure assemblies: c:\program files\microsoft sql server\90\dts\tasks\microsoft.sqlserver.msmqtask.d ll in the COM+ catalog. Error -2146233087 Error message: unknown error 0x80131501 Error description: You must have administrative credentials to perform this task. I'm logged into Windows as Administrator. This machine did pr ...Show All
Visual Studio MSBuild + AssemblyInfoTask + InstallShield
So I have been having some trouble coming up with a good solution to manage the version numbers in my automated build process. Here's what I've got going so far: I have the AssemblyInfoTask updating all the AssemblyInfo.cs files appropriately. Once all my code is compiled I would then like to build the InstallShield installer for my application. InstallShield takes a product version parameter which is accessible in the InstallShield project file. So I'm wanting to update the version number in the InstallShield project to that which was generated by the AssemblyInfoTask. However, there does not appear to be a way to retreive the version number that was generated. I statically assign the major and minor version numbers for the Assem ...Show All
Visual Basic HELP! Getting nothing reading/writing to COM1
I downloaded "UsingTheSerialPort" as part of the VB 101 samples. When I run it, I do not get any sort of reply or indication that my text is being sent to the device I have attached to COM1 via an RS232 Null Modem cable. Stepping through the code with Debug shows that the ReadLine() code in the sample never gets executed and I'm not getting any error messages or warnings. I added displays and code to verfiy that the port is open: ComVal = SerialPort1.IsOpen MessageBox.Show( "Com1 Open:" & ComVal) I set ComVal to False when it is declared and it displays as True after the open on COM1. I'm fairly new to Visual Studio and VB 2005 so I'm hoping that someone has some good suggestions. ======= ...Show All
SQL Server DBCC Errors - related to hardware? Can you tell
Hi, I've got a DB thats throwing up a whole heap of errors in a dbcc command. I'm trying to track where these are from and the likely result of an fix using 'allow data loss' If anyone can throw any light on the error i'd be real greatful. thanks Server: Msg 8909, Level 16, State 1, Line 2 Table error: Object ID -2088070838, index ID 12303, page ID (1:714907). The PageId in the page header = (2612:1024331787). Server: Msg 8909, Level 16, State 1, Line 2 Table error: Object ID -2055175028, index ID 7452, page ID (1:714860). The PageId in the page header = (525:520452223). Server: Msg 8909, Level 16, State 1, Line 2 Table error: Object ID -2038263743, index ID 33159, page ID (1:714850). The PageId in the ...Show All
Visual Studio Visual Studio 2005 and Source Code Control using Microsoft share point server 2007
Is there a way to use the Microsoft share point server for the "source code versioning" with the Visual studio 2005. Thanks in Advance. No, not really. The Team Explorer client has some minimal integration with Sharepoint, but you have to have TFS installed, and it only works with Sharepoint 2.0 (not 2007). ...Show All
SQL Server compression in SP2
Hi there. I heard Paul Flessner at PASS talk about compression in SP2 for SS05 and results that showed like 40% compression on some SAP tables -- so that made me happy! When I looked around SP2 I think I"m seeing compression is a new data type that would act like a varying data type for numerics. Is this correct, or am I am I missing something (I asked folks at PASS, but not too many people seemed to know about this). Can you let me know how this works. 40% seems worth it, what do I have to do to get it going Should I use it Thanks... This feature is called "vardecimal". For information, see this blog post by Kalen Delaney: http://sqlblog.com/blogs/kalen ...Show All
Visual FoxPro Excel to cursor SPT problems
I am using a SPT solution to take information from a .xls file and importing it to a cursor with this solution: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=509710&SiteID=1 However, I am now receiving problems where before I had not. Now I am getting Error 1466: Connection handle is invalid. Any ideas guys I can't see what the problem is but it occurs at the sqlstringconnect( ) line. Thanks! No it wouldn't be guaranteed to have a sheet name as Sheet1. Even if it would you're not guaranteed to have a table on excel (to excel every sheet doesn't contain a valid table that it could export via SPT. There are rules for it to accept a region as a valid "data table"). End users behaviors are always different from d ...Show All
