Answer Questions
Preposterous .Net 2.0 Installation Problem
I have installed .Net 2.0 on my computer however my projects within Visual Studio 2003 are still using old system dll versions of the .Net Framework. How do i tell it to use the new .Net 2.0 Framework. VS2003 does not use 2.0. There is no way to make it do that. You need VS 2005. For further questions on VS use http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=26&SiteID=1 ...Show All
ian_gaydos Using System.Net.Mail class to send mail.
Hi, I was coding a class to send mail via SMTP, but I found that in Framework 2.0 you have System.Net.Mail to do that task. The classes works fine to send mail on a server that does not require authentication. Unfortunatelly, I can't get it to work on a base64 encrypted server. The process of logging in that type of server is easy, so I expect an bool attribute, let's say, "IsAuthRequired", but it does not exists. From what I've ...Show All
MattMc3 Using DirectoryEntry to manipulate local users
This link shows how to add users to a group using DirectoryEntry http://msdn.microsoft.com/library/default.asp url=/library/en-us/sds/sds/adding_users_to_a_group.asp Is it possible to add machine local users to a local group If yes, what distinguished name would I use e.g. if I wanted to add the user foo to the local group bar on the computer qux Thanks, Klas Hi Klas, As the DirectoryEntry class is basically a wrapper ove ...Show All
hrubesh HTTP GET inside Visual Basic .Net 2003
I can only use SOAP and HTTP POST method for the Web Services request and response. How can I use HTTP GET method Hello Xa, Douglas is right. Take a look at the following article for more information: 819267 INFO: HTTP GET and HTTP POST Are Disabled by Default http://support.microsoft.com/ id=819267 Cheers, -Todd Foust Do you have HttpGet in the <protocols> section of your Web config ...Show All
DimD type initializer exception
Im doing a music therapy program using visual studio c#. I used drag and drop features to allow user to access the ailment table in the database but i keep getting an error System.TypeInitializationException was unhandled Message="The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception." Source="System.Data" TypeName="System.Data.SqlClient.SqlConnection" StackTrace: at System.Data ...Show All
Bigby ExtendedDN usage?
I'm having a problem using the new ExtendedDN enum introduced in the 2.0 framework to return objectGUIDs as strings. Previously, they were returned as octets, which had to be manually converted to a string. The new ExtendedDN enum is to make life a little easier. :) I'm using .NET 2.0 beta 2. Here's the MSDN info on ExtendedDN: http://msdn2.microsoft.com/library/ec42w73t(en-us,vs.80).aspx string struser = "jdoe" ; DirectorySearc ...Show All
SLeGendre NullReferenceException when calling PerformanceCounterCategory.Exists(categoryName)
I am experiencing an odd error in one of my applications where I randomly seem to see NullReferenceExceptions when I call PerformanceCounterCategory.Exists() with a non-null category name. I am working with version 1.1 of the .NET framework. I have verified that passing a null or empty category name would generate a different exception, so I am pretty certain that the problem is NOT that a "bad" parameter is being passed to this method. ...Show All
MoJon1 Udp and Tcp difference
Hi I managed to make a tcp server class.. and now i was wondring if i can make my server on UDP Is big diffrence do i have to change a lot my code the tcp server use socket BeginRecive() , EndRecive(), BeginAccept, EndAccept Methods ... Thanks!! Only the protocol is diffence, you can use BeginRecieve, EndRecieve, etc for asynchrone operations. And this doesn't depend on the protocol you use. For a great article about TCP and UDP you sho ...Show All
allan.taruc Values of sizeof concerning struct (no optimization?)
I have been playing a bit with the sizeof operator, and the results that I get seems not too good. For example, let me consider struct Zero { } an empty structure. With .Net 2.0, I get sizeof(Zero) equal to one. I know that such case is borderline, but I would like to understand why it's not zero (I do not see why a zero-length LValue should be a problem), Also, let me consider again struct SomeBits { bool a; bool b; } ...Show All
Dharmbir Sqlparameters open or close
anyone know for sqlparameter could be open or close Another thing you should do is look at the Data Access Application Block for .NET v2 they have helper code along with supplemental documentation that can help you manage parameter issues like this. The error that you are getting doesn't look like a problem with the parameters to me, since you seem to be removing the parameters before executing the query ...Show All
SquirellWing invoke Xml document as Web page
Hi, As of now i am accessing excel documents from the Web application. The excel contains vb Macro code to connect to the database and color the cells based on the data retrieved from the database. Since the excel is opened, a separate excel.exe process runs in my task manager and there is a dependency that the client machine must contain the MS excel. to get rid of this dependency i would like to open the Excel by referencing it inside the ...Show All
Wang Jie How to Access NameObjectCollection Property of MBR Object using RemotingServices.Marhal ??? Any Thoughts?
I have simple need and I thought I had it working but I ran into an interesting problem. Here is my simple scenario. I have a Winforms app running on my PC that exposes a customer object via the following code in the form load event (object that is defined at the class level). RemotingServices.Marshal(myCustomer, "Customer"); I have another Winforms client app that connects via this statement... Shared.Cu ...Show All
Eric Wolz - MSFT about sending mail with user auth.
I send mail using the following code. some server is all right. but some server will cause an error. I think there is some difference from smtp servers with user auth. any one know it public static void SendSMTPEMail( string strSmtpServer, string strFrom, string strFromPass, string strto, string strSubject, string strBody) ... { System.Net.Mail.SmtpClient client = ...Show All
Earl J Bonovich Keyword not supported: 'provider'
An unhandled exception of type 'System.ArgumentException' occured in system.Data.dll Additional information: Keyword not supported: 'provider'. I get this error in my visual basic code using the new full version of 2005. The error is on form load for this line sqlConn.ConnectionString = SQLCnString The string variable is assigned in the declaration section. I dont know what the problem could be because the same sqlconnection str ...Show All
Ahmad Jalal Registry reflection
Hi, I have ported my application from 32 bit to 64 bit application. Is there any consideration in registry point of view Thanks, Kishore Wani Yes. There's a separate node in registry for legacy applications and separate one for 64-bit applications. The legacy apps need to refer to: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node Open the registry and take a look. Regards, Vikram Vikram is correct. ...Show All
