Answer Questions
hipswich Which Certificate do I purchase for WSE 3.0 from Verisign
I am using WSE 3.0 and the usernameToken approach to secure my public webservice. I need to purchase a X.509 certificate to install on the server and then install the public key on the client. This is all working with a certificate I created with MakeCert.exe. When I ring Verisign to purchase a certificate non of the sales reps have any ideas about webservices or WSE. All they try and sell me is SSL. I will need to purchase a "Microsoft Authenticode Code Signing Digital ID" to sign my client download for clickonce. Can anyone tell me what product I should ask for from verisign or equivalent CA. Is the x.509 certificate I am after any different from the code signing ID. I've never purchased one so excuse me if its the same thing ...Show All
AAG Dot net and Crystal report
How to call Crystal Reports Developer or Enterprise (Version 10.0 or above) using an asp.net c# page ...Show All
chris_kzn WS-Event, Push/pull modell available today?
Hi all, I am currently developing a web service. I use the traditional request/response design pattern. I would however like the clients to be able to subscribe to messages from my system. In that case the web service should push the data on to the clients. Polling wouldn't work. I haven't been able to fully understand if the Ws-* specs are donw and ready to be used and deployed yet Or are they only in the spec. state Is Ws-Eventing the only way to push data on to web service clients Or are there other technologies available today to do something simillar Thanks, Erik ...Show All
Tdotsoulja A big WHY?
I'm a programmer. So Framework for .net comes out and I d/l and install it via microsoft updates. I've got a single user and have my Windows XP setup to boot me right into windows without a logon. For some reason windows updates installs a new user on my system called .NET and that's where they put this framework package. Now, everytime I boot up I have to go through this dumb logon, where I click on my own name.. mind you, it's the only user-name on the entire system.. but I still have to click on it for some stupid reason in order to log onto windows. WHY Who's the genius who figured that everyone who installs .NET needs an extra mouseclick on the system YEA!!!!!!!!!!!!!!!!!!!! I hate that too. ...Show All
CSharpNewbie22 Storing a generic class in a dictionary
Is it possible to store a generic class object in a Dictionary If so, how I've got an abstract generic class, Comparison<T>, and several concrete inherited generic classes. The actual types will be determined by a configuration file at runtime. I need to store a collection of any number of any combination of these inherited classes. Since they will all be Comparison types I was hoping to use a Dictionary to store them, but since the actual type T may well differ between them, can I do this, or do I need to revert to a Hashtable Dictionary < string , Comparison<T>> comparisons = new Dictionary < string , Comparison<T>>(); You cannot do that, but what you can do is: Dictionary<string, Compar ...Show All
p_shah retrieve schema info for a SQL statement in sql datatypes
I'd like to retrieve the schema info for a query i'm executing using a sqldataadapter. I can get the .NET datatype and the maxlength (by setting dbadapter.MissingSchemaAction = MissingSchemaAction .AddWithKey (thanks to some prev post!) but I'd really like to know if the datatype is a varchar, an nvarchar, a varchar(max), a text, smallint, nchar or whatever. and of course I need the length/maxlength of each type. How can I do this ...Show All
Matt Lin Type 'xxx' is not defined... only under certain conditions...
I have several components that have the same namespace. Lets call them MyComponents.Test.ComboBox MyComponents.Test.DataSource MyComponents.Test.Tracing Well, the really really bizarre part of this is that I can add a reference to the ComboBox and the DataSource components and everything is fine, but as soon as I add a reference to the Tracing component, the EXACT SAME STATEMENTS IN THE DESIGNER FILE that worked before I added that reference, now no longer work, and I get a message saying ... Type 'MyComponents.Test.ComboBox' is not defined Type 'MyComponents.Test.DataSource' is not defined I think it's going to take the worlds greatest minds to figure this one out... but if you can, I'm sure theres a no ...Show All
Kobingo DoEvents not working?
This code doesn't seem to be working right. What I need to do is watch for left and mouse downs, and when both are down at the same time, show a window. This class should do it, but isn't working. The processMessage variable tells the mousehook to send the message to the appropriate window or to consume it. Public Class mouseComboWatcher Private WithEvents mh As WickedOrange.MouseHook Public Event ComboPressed() Public Event ComboReleased() Sub New () Me .mh = New WickedOrange.MouseHook End Sub Private leftMouseDown As Boolean = False Private rightMouseDown As Boolean = False Private comboDown As Boolean = False Private Sub mh_Mouse ...Show All
JSastre Invoking Default email client without querying registry entry
We have a windows form application in wich we need to invoke the default email client. The simplest way to implement is to query the registry entry to find the mail client and executing it by calling Process.start(). But we want to know any other best way available ( any managed api available to find and invoke the default mail client instead of querying the registry ) Ahhh, You dont need to know or check registry for your default emal client just do this: System.Diagnostics.Process.Start(" mailto:xxxxxx@ hotmail.com"); if you also want to put the subject automatically, Do this: System.Diagnostics.Process.Start(" mailto:xxxxxx@ hotmail.com Subject=Rizwan Here "); It'll automatically trigger your ...Show All
csLearner Critical Finalizers are not called
Hi, I have tested the new CriticalFinalizer feature of .NET 2.0 to improve reliability. But so far I am less than impressed that if any normal finalizer screws up by throwing an exception the Finalizer thread dies. This behaviour is quite unfortunate when you try to do something in a reliable manner where you expect to be called even if somebody did screw up. More details can be found here: http://geekswithblogs.net/akraus1/archive/2006/10/30/95435.aspx Is there a way to resurrect the finalizer thread or at least handle the exception inside the finalizer thread and continue with the CriticalFinalizer list Yours, Alois Kraus The reason why you do not get called when you throw an exception inside main i ...Show All
UnKnown Nick C# Regular Expressions confusion
Hi everyone, I'm writing a client for the Cyan Chat protocol (http://cho.cyan.com/chat) and all of the usernames are sent to the client as: X[username]|^1Text The X prefixing the username is a colour code. Currently I can print out what users say in my richTextBox, but I need a regular expression to find and locate all usernames between brackets. I have the code to colour the names, I just need a regex to find them. I spent most of yesterday searching for Regex help, and testing it, but nothing that I've tried has seemed to work. I'm hoping someone here will have some expertise with Regular expressions and can tell me how to do this. Thanks in advance, Darryl Sergei Z wrote: could u pls tell me wh ...Show All
Rohit Tela directory deletion adn recreation
Hi, i am facing problem in i have a project directory which contain some useful files and some waste files. project directory hierarchy is as follows Project directory -- directory1 --- subdirectory with waste files --- useful files -- directory2 --- subdirectory with waste files --- useful files now i want to delete the directory by copying useful files out and then after recreating the directory ,i wish to copy the same files back to their hierarchy. Can anybody send me code for this in c#. regards Try using the System.IO.Directory.GetFiles to get a list of the file names in the subdirectory. Use System.IO.File.Move to move the good files ...Show All
Eric Krejci Soap Toolkit on Vista : Please help
Hi, I am trying to call a web service from classic asp and thought soap toolkit would help. But so far I have not been able to call web service as I get an error "An error occurred on the server when processing the URL" . But the URL is correct. I can type the url (local host) on ie and I can see the web methods. I have a very simple web service for testing purpose that takes two numbers, adds them and returns the sum. I am running windows vista, iis 7 and ie 7. Any help is appreciated. This is what I have on my asp file: <body> <% Public Function MyTestCallService() Dim p1, p2 SET p1 = 1 SET p2 = 3 SET objSoapClient = Server.CreateObject("MSSOAP.SoapClient") objSoapClient.ClientProperty("ServerHT ...Show All
Emmanuel.Pastor .Net Profiler How to Read paramater values
I am in the process of creating a profiler, I would like to read the parameter values and the object context. please anyone help me how to use the ICorProfilerInfo::GetFunctionInfo from VB.Net. Thanks in advance Mohanraj Hi Mohanraj, Unfortunately, the CLR Profiling API is not accessible from .NET languages. When you write a profiler, you write a DLL that effectively extends the CLR engine itself, receiving notifications at times when managed code cannot run, for example in the middle of a garbage collection. As a result, profilers must be written in unmanaged languages. We recommend C++. If you're writing a profiler against the 2.0 CLR, you can register for the new FunctionEnter2 callback, which can give you inform ...Show All
b0bd0gz Error "ExecuteScalar requires an open and available connection..."
H all, I have an application that retrieves data from a local SQL2005 (Standard edition) database frequently (e.g. more than 10 times/second normally). It usually works fine. However, if the program was paused for a while (e.g. for a few hours) by a pop-up error message box or an Sleep() statement, it generates the following error message when its data processing resumes: " ExecuteScalar requires an open and available connection. The connection's current state is closed ." The application is coded with C# using ADO.Net. The connection is OleDbConnection. It seems there is some timeout process that I do not know. Could anyone offer any hint Thanks, hz Thank you all for the information! Firstly, le ...Show All
