Answer Questions
Aditya ResourceProviderFactory and 3rd party components
I've just read about the ResourceProviderFactory class in .Net 2.0 and I want to leverage it to retrieve my localized text from something other than the .resx files and satellite assemblies. If I understood well, once I configure my application to use my custom ResourceProviderFactory-derived class then all attempts to retrieve a localized resource will go though this custom class. So what if I use 3rd party components in my application that wer ...Show All
Tim Prince How to find Install folder of an Assembly which is in GAC
Hi, In .NET 1/1.1 to find the install directory of an assembly in GAC, we could read the __AssemblyInfo__.ini file present in GAC and get the install folder of the assembly by reading URL=file:///. For example : [AssemblyInfo] Signature=sda8sd6as6d98a7s9d87a9s7fa MVID=24h23kj4hk23h4k23h4k2h34k2h34 URL=file:///D:/MyInstallDirectory/Bin/MyAssembly.dll DisplayName=MyAssembly, Version=3.1.1.0, Culture=neutral, PublicKeyToken=xxxxyyyyxxxx But now in ...Show All
ghostwrtrone Creating ODBC DSN for SQL Native Client fails for not-integrated authentication
The following snippet always fails to create ODBC DSN [ DllImport ( "ODBCCP32.dll" )] private static extern bool SQLConfigDataSource( IntPtr hwndParent, int fRequest, string lpszDriver, string lpszAttributes); public bool AddSql2005DSN( string dsName, string server, string db, string user, string password) { StringBuilder sb = new StringBuilder (); sb.Append( "DSN=" + dsName + "\0" ); sb.Append( "Se ...Show All
riet How to transform a fault statement from wsdl
Hi, Is it possible to transparently use own developed exceptions from a Webservice to a client (server throws MyException and client receive MyException instead SoapException), and if yes, how to generate a exception class defined in a wsdl file using appropriate type and fault tag in a operation using wsdl.exe Hier some fragments of my wsdl: < complexType name =" AlreadyExistException " > < ...Show All
Michael W. Best practices with SQL and C#
Premise: A standard customer database program with INSERTS, UPDATES, SELECT, etc. Since data access is going to be used on a frequent basis, how best to code the SQL portions 1) Hard code the SQL into a class, many different classes for multitude of tables, maintain as a stored procedures, etc. 2) Is it best to open the connection just before the SQL call and close immediately after Thanks in advance, Lance ...Show All
Shirts ADO.Net on Citrix
We have a VB2005 program that uses ADO.Net to access a SQLServer 2000 database. The program works fine on a fat Windows client or on Windows Terminal Server. But it will not communicate with SQLServer when it is running on Citrix. Other programs running on this Citrix machine connect to and use SQLServer. But they use DBLib as the communications medium. The Connection.Open statement will not return a valid connection. Any ideas as to how I ca ...Show All
PekChan Web Services (Global state)
Hello, i'm doing an ASP.NET web service (using visual studio) and i want to have a global state (in the web service side) that can be accessed by all the instances of this particular web service. The clients that will use the service are windows applications (c#). I tryied to use the property called Application and i've received the following error: An unhandled exception of type 'System.InvalidOperationException' occur ...Show All
Denvas Saving connectionstring the secure way
Hello, I want to save my connectionstring engrypted in the my.settings system. I know how to save settings and how to deal with a connectionstring, but I have no idea how to encrypt my connection string so that nobody can see the the password. I hope you can help me. Thank you Check out this article. http://msdn.microsoft.com/msdnmag/issues/03/11/protectyourdata/ Eeee, this will onyl encode the strin ...Show All
Christopher Bennage return type
I don't know what platforms or programs will consume the service so what type of object would be best to return Hello, You can find lots of interoperability guidance at this MSDN link: http://msdn.microsoft.com/webservices/webservices/building/interop/default.aspx In general, simple types and compositions of simple types are a safe bet. You should probably use nullable types where possible since some ...Show All
.net_Coder Problem with Threading in ASP.NET....
I have a “chat Client/ Server Application” to be developed. The server has been developed. However there is a problem with the Client Application development. The client application reads data coming from the server on a background thread. This data has to displayed on the form which is the primary thread of the application. The problem is that the display control(textbox) is on the primary thread and hence , the background thread cannot u ...Show All
Eugene_ XML deserialization problems with invalid hex characters
Hello, In the document at [1], I am experiencing the problem described under the heading "Deserializing Invalid XML". I am receiving XML documents that contain escaped characters that are technically invalid in the XML spec. I am using WSE 2.0 Service Pack 3, so I have no control over deserialization myself (or at least not without writing a input filter of some kind). I do have control over which strings are serialized (I also write the client) ...Show All
Sossles Waiting for multiple events
Hi! Is it possible to wait for multiple ManualResetEvents in .NET cf If not, is it possible to interrupt a thread that is blocking on an event Thanks in advance, Nille Thanks, Thanks Nille yep it is possible to do it, use the static class WaitHandle you call the WaitAll method wich takes as parameters an array of ManualResetEvents, here is the example from the whidbey do ...Show All
cwatkins-gd .NET 2.0 b2 Remoting and filling a hierarchical dataset?
Hello, I have no idea how to get my hierarchical dataset filled by a remoting service. Please imagine the following Typed Dataset called BookDataset : Authors table ---- authorid name Books table ---- bookid authorid (fk) title For simplicity reasons, a book is always written by one author, but one author wrote several books. There are existing Constraints and a (nested) relation between the Tables. I have two functions in my Re ...Show All
Russ05 Moving database table details to a table in my application
Hi, I have a problem, i want to move the information of the tables such as the fields and constraints and every related information to a local table. i am to the use that local table in my application. so the details from the database should be exactly matched. This must be working with any database. There should also be an edit option to set the relationship manually (Eg. to set the foreign key relationship manually). can anyone help with ...Show All
Oren Solomon Clone Vs. Equal
I have the following class:- class CloneTest : ICloneable { private string name; private string job; private float salary; public CloneTest( string uname, string ujob, float usalary) { name = uname; job = ujob; salary = usalary; } public CloneTest( string uname, string ujob): this (uname,ujob,0) { name = uname; job = ujob; } public CloneTest(): this ("","",0) { na ...Show All
