connexion2000's Q&A profile
.NET Development little help with converting WSE 3.0 from WSE 2.0
I have this code part from a WSE 2.0 example: SampleWSE.Service1Wse proxy = new SecureWSClient.SampleWSE.Service1Wse(); proxy.RequestSoapContext.Security.Tokens.Add(new UsernameToken(name, password, PasswordOption.SendHashed)); proxy.RequestSoapContext.Security.Timestamp.TtlInSeconds = 300; Console.WriteLine(proxy.Hello(name)); im using WSE 3.0 and im getting an error message saying: Error 2 'Messenger.SampleWSE.Service1Wse' does not contain a definition for 'RequestSoapContext' any ideas what should I use for WSE 3.0 Snippet taken from this tutorial:http://www.thecodeproject.com/soap/wssecurity_usernametokens.asp Thanks for your time. http://msdn.mi ...Show All
Microsoft ISV Community Center Forums 1004 - Application-Defined or Object-Defined Error - Help
I have an Excel workbook with 8 Sheets on it. On Sheet6 there are a number of named ranges. One of the ranges is: BreakTotal and the range is defined as: AuxTimesConv!$F$5:$F$100 where AuxTimeConv is the sheet name. On Sheet1 (Named: Formatting) there is a command button. Private Sub CommandButton1_Click() On Error GoTo 10 'Lets start with the Breaks Dim c As Range, r As Range Dim x As Integer Dim a As String Dim n As String x = 1 Set r = Range("BreakTotal") For Each c In r If c.Value = 0 Then Else a = c.Value n = Worksheets(Sheet6).Range("A" & c.Row) MsgBox n End If Next c 10 MsgBox Err.Description & Chr$(13) & Err.Source, ...Show All
Visual C# Serial Port problem v2003
Hi all. I am trying to identify all COM ports on a machine: ObjectQuery oq = new ObjectQuery("SELECT * FROM Win32_SerialPort"); So far so good... except unfortunately, I cannot find "virtual" COM ports which have been created by third party mapping software. (I have a serial-ethernet converter which is mapped to a virtual COM port on my rs232-less laptop). They are plainly visible in Computer Management, under Ports (COM & LPT) but not from this c# method. Has anyone got any bright ideas Thanks, Paul ...Show All
Visual Studio Express Editions Another database question
Is it possible and how would I go about making a database full after say 15 Items are added to it that the database would no longer except new entry's Would be inefficient use of a database! however you can do this. you can do a statement: SELECT COUNT( columnName ) FROM tableName This will count number of entries/records in that table. Then simply read the value returned using a DataReader OR you can fill a datatable/dataset with the records and count the rows to see if there are 15 records, however this would be very inefficient. So sticking with the first solution... Dim theSqlCommand as new SqlCommand(" SELECT CO ...Show All
Smart Device Development new to VS2005 problem
I'm completely new to Visual Studio 2005 and that is most likely the source of my problem. I'm setting up a simple app (that will run on the Pocket PC emulator). I've done several things with buttons, check boxes, edit boxes, etc. The issue comes when I try to do them in a new (different) window. To create the window I said new dialog, it created one, I gave it a better name then added a command button. When I went to add code it said make this form a class first (so I did) I went ahead and put some simple code under the command button (MessageBox) I run the program, the first pages comes up (works fine) I click the button and the 2nd window comes up. On this new window nothing works. I can click all day the only thi ...Show All
Visual Basic Getting or modifying "Init String" of modem or COM port.
Dear experts, Does anyone here know how to get or modify modem initialization string Either by managed code/functions or making API calls. Thank you in advance for your help. //C# /////////////////////// static int I = 1; void CheckPort() { try { for (; I < 5; I++) { port.Close(); string ComName = "COM" + I.ToString(); ; port.PortName = ComName; port.Open(); if (port.IsOpen) combxCOM.Items.Add(ComName); port.Close(); } } catch { I++; CheckPort(); return ; } } /////////////////////// void CheckModem() { try { port.Close(); string ComName = combxCOM.Text; port.PortName = ...Show All
Software Development for Windows Vista Tracking Service
hello, my application uses tracking service and stores a big amount of data; its much much faster when I don't use tracking; how can I improve it Mikela Hi, my best advice is : define and use a Tracking profile; with this , the runtime engine will filter the events & data to track and to send to the TrackingService. For more infos, take a look at the QueryUsingSimpleSQLTracking service sample in the sdk Hope this helps Serge ...Show All
SQL Server MSSQL Server 2005 Not Reporting Errors to Windows Event Log
Hello All, I just performed a fresh install of MSSQL 2005 Server Developer Edition on my XPSP2 machine along with MSSQL 2005 SP1 and I noticed that errors are not being reported in the Windows Event Viewer. Is there a way to enable/disable logging here I need to view these logs because when the tasks > 'copy database' task fails it submits its error in the Windows Event Log however since I reinstalled MSSQL 2005 these log entries don't appear here. thanks in advance. Its not a job. I just manually select the task from Management Studio. In the last installation performing this task created log entries in the windows event log but for some reason they aren't appearing now. ...Show All
SQL Server SQL2000 Job Calling SQL2005 Job
Hi, We have two systems, one working on SQL2000 and other working on SQL2005. In SQL2000, there is JOB which needs to execute a JOB in SQL2005, get feedback based (success or failure) and proceed accordingly. I am not sure the best practice to call SQL2005 job from SQL2000 job. Both the server's run undersame domain account. please help, thanks atul There are few ways to do this, from a linked server to a remote query. You can read more here: http://www.informit.com/guides/content.asp g=sqlserver&seqNum=150&rl=1 If they were all SQL2K5, you can use a master server to start jobs on other servers, and report back to one system. ...Show All
.NET Development VC++ and Managed Code
Hi All, I have some confusions, and needs help here. suppose we write an application under VC++ by using .NET, Is it comes under manged code If Yes, then the executables generated by .NET for VC++ follow the some techinque as is used for other .NET languages, as .NET generates executables that are further compiled right at the time of execution. And last-but-not-the-list, is it ok to use the word "VC++.NET". Ashish. -printf is an unmanager function, if used inside a managed class, to class will not be safe, so not manager (the use of printf is really to avoid) - it is not the .Net that willl provide (because you cant do it with C#), but using C++/CLI you can play between manager and unmanager class using the in ...Show All
Windows Forms DateTime picker
This control is starting to give me fits. I am finding more and more reasons not to use it except in the most simplistic ways. The first problem is the control doesn't allow nulls. I know the checkbox work-around, but that requires more code and more user interaction. The second issue I am having is when writing the date value to the database, even though I end edit on the bindingsource and validate the form, the date retains the previous value until you tab out of the control. For instance, if you use the arrow keys to change the date, and then click a save button (on my toolbar), it writes the previous value. Anyone know why this occurs. I would use a textbox and validate a user-entered date but havin ...Show All
Software Development for Windows Vista Vista "Catch 22"
Having tested the first Beta issue of Vista Ultimate and found the limitations (so it was lucky that I have seperated hard drives (PATA and SATA) one of which was still running XP) I was pleased to download Vista RC1 build 5600. Having created the disc (only 2.5gig this time) I tried upgrading the working Vista drive. Attempt 1 failed as Norton was installed and had to be uninstalled. Attempt 2 failed due to another program getting in the way. Attempt three locked up everything solidly and from then on could not get back into the other hard drives. Went for a new install which was a doddle. No problems at all except you have to register it within three days so an absolute emergency to get back on line. No problem installing the Tisca ...Show All
Software Development for Windows Vista Blending a dialog on video?
Hi, I want to blend a dialog on the running video. This dialog requires the user to input something and should be work the same way as a normal dialog. I need some help on: 1) Get a bitmap of the dialog display and blend it on video; 2) Handle input and update the dialog display. Any advice is welcome! ...Show All
SQL Server toggle all
I have seen other places where this question is asked, but I am still not seeing the answer clearly. If I have many groups that are collapsed and I want to expand them all at the same time, it there a way to accomplish this Many talk about a param that can be passed in, but even if you have the parameter set, this is only for the initail state, is it not You can change the initial toggle image state by right-clicking on the textbox, opening the textbox properties dialog and selecting the "Visibility" tab. The bottom of that dialog tab has a section titled "Initial appearance for the toggle image of this report item". You can set the initial toggle image either statically or based on an ...Show All
Smart Device Development Compressed Cab file format
Hello Everyone, well i developed a client server applications for smart device but when i made the Cab file.. its over 1 MB in size (as it contains many bitmaps)... i want to compress that Cab file .. i know there is an option of compression but the problem is that .. when any client ask for the installer, the server will make some changes in that Cab file before giving it to client .. so its necessary for server to know the format of the Cab file .. so that it can make changes in it ... and its not easy to change anything in a compressed Cab file ... but how can i compress that Cab file in such a way that the server can understand its format and can made changes easily .. is there any way of doing this ... i really appreciate res ...Show All
