Answer Questions
Oscar Naim - MSFT Error : execute reader requires an available open connection
Hi all, I have an error that occurs randomnly in my web application (it does not occur all the time) - execute reader requires an available open connection , the connections current state is closed. I have the connection string defined in web.config as <add key="ConnectionString" value="Server=Server1;database=db1;uid=sa;pwd=;pooling=false;"/> For Any help ,thanks in advance Why do you have pooling set t ...Show All
DotNetNinja How to change the xmlns/attribute value programmatically?
Hi there, I receive a XmlReader object whose ReadOuterXml() method gives an output some thing like below. <Customer xmlns=" http://tempuri.org/Customers.xsd "> <Name>Mark</Name> <CompanyName>Goodwill Inc</CompanyName> </Customer> How can I change the xmlns=" http://tempuri.org/MultipleCustomers.xsd " to xmlns=" http://tempuri.org/SinlgeCustomer.xsd " for this xmlreade ...Show All
Justin Shen getting the client url from web services
COULD SOMEBODY HELPME TO GET THE HTTP_REFERER OR EQUILENT FROM WEBSERVICES. I NEED TOTRACT THE CLIENTS USING THEIR URL FOR STATISTICS. ANY HELP IS GREATLY APPRCIATED. One of the following should give you what you want: 1) HttpContext.Current.Request.UserHostAddress 2) HttpContext.Current.Request.UrlReferrer Rich. Gorm, Thank you for your reply. I need to handle it from the webservice application itself. A ...Show All
Colin M. Remotely accessing system certificate stores
I am developing a C application to use SSL/TLS. Using the samples provided by MS, I have been generally successful. I am using a stand-alone CA at this time. I have been able to run my server and client with a SSL connection on the same machine as well as 2 separate machines. However, to get this to work I have had to install the certificates on the machine on which the program is running. The issue that continues ...Show All
PKlammer Menustrip (.NET2) and mouse selection behavior
I'd like to mimic XP mouse selection behavior using the new Menustrip but haven't found anything in docs. By default in Menustrip, mouse left button, must be released before selecting a menu item. Similary, if left button been pressed and released over a mouse item, doesn't fire the clicked event. Any idea how can menustrip work like VS/Office/XP native menu control It looks that is a bug. I wa ...Show All
Mark McLain Is ChannelServices.RegisterChannel always required?
It must be very simple explanation, but i can't find it, please help! I supposed that prior to publishing object for remoting i have to : 1.create channel. 2.register channel on server. 3.register WellKnownServiceType. This works well. What i did(just for fun): 1.register WellKnownServiceType. 2.create channel. I can't understand why it still working - the created channel was nev ...Show All
Laurence1215 How to update some columns of a Update command?
Hi All, I would to know if it is possible to fill some parameters of an update OleDbCommand. Sometimes I want to update only one column and the rest should stay with the actual value of the database (null or not null). For example, see the code below. I want sometimes only update the password field of the users table. Must I create a new OleDbCommand object that only updates this field or is it possible to update some columns of an OleDbComman ...Show All
Paul_G Listbox data binding tentalizing problem
This is a question on listbox data binding using VB 2005. I used a listbox to bind an attribute of a table. When the program runs, the data are displayed correctly in the listbox. The puzzling problem is that when I try to click buttons that I have on the form, none of them responds. For example, I have an endButton with "me.close" code. It produces no response at all. The only thing I can do with the form is to cli ...Show All
JohnyTho Networkstream & TCPClient - write does not throw IOException when server goes down.
Hello all, I encountered a strange problem. I use a TCPClient to send messages to a TCP Server (by Network stream's Write function) when the server is connected it all goes well, but when the server closes the connection I get IOException only on my second write! - the first write method is called as nothing had happened. I tried to give my TCPClient true on NoDelay and also fixed the SendBufferSize of the TCPClient to be exactly as ...Show All
Rolan referenced component Microsoft.Data.Odbc could not be found
This is a not a current problem, I just resolved it and decided to post it here for anyone else who has this problem when u convert from any project over to visual basic 2005 and u get the error "referenced component Microsoft.Data.Odbc could not be found" or in the name space u get the error Microsoft.Data.ODBC not found it is not a bug it just wasn't included with visual basic 2005 beta 2 you have to download the data access file from &nb ...Show All
tanya_cakes populate to datatable from listbox
hi. i am writing a project about ppc. when i clicked the button order names and order pieces added listbox1 and listbox2. one customer can have a lot of orders. so when i clicked other button i want to load these orders to datatable. and in the datatable, i want to load orders this customer. how can i do this. thx. Hi I guess you can create a datatable and loop through your list and add the rows to the table ...Show All
Sarayuth Rijndael Algorithm + Padding error...
Hi all I am trying to encrypt and decrypt data using the Rijndael alogrithm. I have been successfull in encrypting and decrypting the data in one go. However problems arise when I attempt to save the key and the IV value and return at a later time to decrypt the data, The error I am getting is as follows: "System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed." Here is the code that ...Show All
Ron Shepherd how to generate random xml messages
hi all, I need to generate random XML messages out of a schema, what could be the easiest soultion dot net solution of generating .cs file first and inserting data in stream seems too complicated, also its not generic. I want a generic soultion that would let me create XML data against any XSD schema any ideas regards, Omer Have you read the article http://msdn.microsoft.com/library/default.asp url=/libr ...Show All
wking1994 Porting ActiveX control to x64
hi, i'm ever. i'm porting my ATL ActiveX control to 64-bit Windows XP. i'm using VS2005 beta2 + 64-bit Windows XP + Dell workstation precision 670. i can build my control successfully at VS2005 beta2 for x64 platform and it can be registered by REGSVR32.EXE. BUT when i open the ActiveX Control Test Container and insert it, i can't find it in the Control List Box. moreover, if i copy my control to Windows\System32 directory and register it in ts ...Show All
Hacksaw Problems with DataReader!!
Hi, can someone please help my, I have experienced some realy weird stuff. This datareader hasn't been closed, but when I try to run the program, I get an error message, stating. "INVALID ATTEMPT TO READ WHILE READER IS CLOSED" Is their anyone that can see something in my code that I'm missing. Thank you. Or any suggestions Try Dim myreader As OleDb.OleDbDataReader Dim mycomm As New OleDb.OleDbC ...Show All
