Mark Gilbert's Q&A profile
Visual Studio 2008 (Pre-release) Problems with UserName Authentication finding the Certificate
I am trying for the first time to use Certificates with WCF and running into a baffling issue. I've created a test Certificate and loaded it into credential store and when I try to start my host, I get the following error: Error: Cannot find X.509 certificate using search criteria StorName 'My', StoreLocation 'LocalMachine', FindType 'FindBySubjectDistinguishedName', FindValue 'CN = localhost' This is my App.Config < xml version="1.0" encoding="utf-8" > <configuration> <system.serviceModel> <behaviors> <behavior name="NewBehavior"> <serviceCredentials> <clientCertificate> <authentication certificateValidationMode=&q ...Show All
Visual Basic Maximize my screen
On my small application that I am writing, I have turned the Maximize & Minimize buttons off and was wondering how I could set the Main Form to fit the entire screen whenever the Main_Load occurs. Can anyone help me here Thanks, QWERTYtech SJWhiteley wrote: I'm really at a loss to what is needed here - perhaps the OP can show an example of what they mean Another commonly used program, perhaps 2nd that motion ...Show All
Visual Studio Express Editions Calling Win32 API from Assembly Code
Hi How do I call a Win32 API from assembly code Basically I have to call kernel32.dll function from my assembly code. Hi Mike, I am using VS2005 - VC++. I need to use Assembly langauge to call function present in Kernel32.DLL, how do I do that I have called this function using "LoadLibray" and "GetProcAddress" API, but I need to use assembly instead. Thanks & Regards, Sachin ...Show All
Smart Device Development Problem trying to consume a web service behind a web service proxy
I am hitting a rather critical bug regarding consuming a web service on a mobile device that is sitting behind a web service proxy (Jaxview). My device is able to see the wsdl of the service (on IE) and it is able to send a request to the service, but on the response I get the error below. The response is processed just fine if I bypass the proxy but that is not an option in my environment. I also have been capturing the tcp traffic to confirm that the proxy is indeed sending back valid xml responses to my request and it is. I am really at a loss as to why I am getting this error. Regards, Darren "The response did not contain an end of entity mark." at System.Net.HttpWebRequest.finishGetResponse() at System.Net.HttpWebRequest.Get ...Show All
Visual Studio Express Editions Connecting to a Remote SQL Server
I have been going through the tutorial video (Absolute beginners one) and have started a program that edits an SQL database. However, I need this database on the net. I have got the database set up, and now all I need to know is how to connect to it. After looking on the internet, I have found out that the wizards do not let you connect to a remote SQL server, and so I have to code it in myself. However, the threads I have found I have not quite understood (I'm still fairly new to this). Could someone please either a) Give me an idiot's guide to doing this (then I should be sure of understanding it :D ) or point me in the direction of an existing one ahmedilyas wrote: programmatically you pretty mu ...Show All
Visual C# Can I Ignore certain exceptions?
Hello, I am currently writing an application that scans a directory for its files and will copy certain files to a new location. I am successful at this operation until I get to a file that the application (which uses the currently logged in user security context) does not have access to. When the access denied exception is raised the application goes to my try-*catch* which for this error I want it to ignore. Can I do this and, if so how Thanks, Quilnux You code probably use a loop in which you execute copying operation. Put that operation in try catch blok. It will look like this: for(int i = 0; i < files.Lenth; i++) //or you use foreach { try{ File.Copy(files[0], destination); } ca ...Show All
.NET Development Problem installing .Net framework 1.1 with sevice pack
Hello, I'm a total novice, and need help please!! I need to install version 1.1 with service to run this program for a computer game. I already have version 2.0 which was pre installed onto my computer. After downloading and clicking "run" I get the following message from Windows Installer: the upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade patch may update a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct update patch. I then was going to uninstall vers ...Show All
Visual Basic Implementing For Each
Hi, There is a sample in the help for VS called " HOW TO: Make a Visual Basic .NET Class Usable in a For Each Statement". I wanted to use it for enumerating tax classes in a financial program as it would make the code more readable and lines shorter...So I modified the example only change was to add runtime initialisation of the items rather than a fixed set as in the example and it semi-works... In the example it passes only one iteration of the for each loop my application uses it many times and each instance after the first iteration fails with the loop never executing as it is at the end of the set. Applied this to the example as is and it has the same behaviour, basically the reset is never call ...Show All
Windows Search Technologies WDS 3 - RTW Final not indexing .xlsx file which have ODBC SQL Connection
Hello, Brandon recommended me posting this problem I noticed in the WDS 3 RTW. Basically the WDS 3 RTW, and (Beta 2) cant index the contents of Excell new format (.xlsx), if the excell contains a ODBC (SQL database) connection. The easy way to reproduce is to, create a new .xlsx file using Office 2007 B2TR, create a ODBC SQL connection to any database/table that you have access to. Save the file and wait for index, it will index the filename but never its content. With the WDS 2.6.5 this problem doenst happen. Regards, Marcus Marcus, Ack! - this problem was reported while we were in beta. A bug was filed (and fixed) in a pre-release build. It must have broken again in a later build and made its way to RTW. ...Show All
Smart Device Development Available Program Memory
Hi, Does anyone knows how to get current available program memory (RAM) I want to make sure at the startup of the program I have a minimum amount of memory. How do I do that I’ve tried Google, MSDN help.... Thank you in advance Hii Try calling the Win32 API GlobalMemoryStatus . Michael ...Show All
.NET Development Get OUTPUT parameter value from Stored procedure in VB.NET
hello all, I am trying to get value of an output parameter from stored procedure. I am doing this for the first time. I am still not able to get the value that I set for the OUTPUT parameter in the stored procedure using IF condition. Here is my stored procedure: ALTER PROCEDURE dbo.InsertUser ( @UserName VARCHAR (50), @Password VARCHAR (50), @FirstName VARCHAR (50), @LastName VARCHAR (50), @City VARCHAR (50), @Province VARCHAR (50), @Country VARCHAR (50), @State VARCHAR (50), @ZipCode VARCHAR (50), @PhoneNo VARCHAR (50), @StreetNo VARCHAR (50), @DOB VARCHAR (50), @Emailadd VARCHAR (50), @WebSite VARCHAR (50), @Status BIT , @ActivateKey VARCHAR (50), @Level ...Show All
SQL Server by vb.net create exe File to update sql server
is there any chance to create an exe file to update the sql server database by uisng windows schdule for example this exe file will run to update my database, every night @ 12:00 AM. this exe should be in vb.net pllllzzzz help What is your design for that Do you want to execute DDL or DML or just maintainance on the database You might check the option of the SQL Server Agent, which does Scheduling for SQL Server. More information would be helpful to help you. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server Lookup Transformation
Is there a way to ignore the unmatched rows using Lookup without creating another destination (Error Transformation for red connector) shafiqm wrote: Is there a way to ignore the unmatched rows using Lookup without creating another destination (Error Transformation for red connector) Yes, Just use 'Ignore failure' in the error output...the unmatched rows will go into the green output having null in the looup columns ...Show All
Visual Studio Express Editions Getting an Error when I use the Backspace to clear a textbox
Hey all, When I test my code out, enter a number then backspace all the way back to the beginning i get an InnerException error. Here is the code that is throwing the error: Private Sub txtSequenceNumber_TextChanged( ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles txtSequenceNumber.TextChanged Dim SequenceNumberSelect As Integer = CInt (txtSequenceNumber.Text) Sequence2 = SequenceNumberSelect End Sub Above this I have a keypress event that spots the backspace....but I still get an exception when I backspace and lcear out all the numbers. Thoughts, Ideas, Links Thanks yes just as I thought from the ...Show All
.NET Development How do you trigger another program or software from an existing C# program?
Hi, i'm very new to C# programming and i was hoping if someone could help me with this problem. I need to trigger a program/software from my existing C# program using a button but i don't really have an idea of how to go out abt doing this. I think that i'll have to look through the directory of the software in order to trigger it from my program. I hope i'm making sense here. Would really appreciate it if someone could provide some feedback. vannielou wrote: Hey guys, thanks alot! i'll try it out and see if it works. So sorry i have another silly qn to ask. I'm really new to this so plz forgive me! What do i put in the brackets Is it the directory/path of application i want to trigger Yes Com ...Show All
