Answer Questions
khalil_yassine Application Settings in Class Library called via COM, how to set them?
Hi, I've written a small Class Library that I call from classic ASP, the problem is that as far as I know the only way to set the settings is from the .exe.config file of the app where the class library is used (windows forms, console apps, etc), my question is, how can I make this work if I call this library via COM Thanks I'm not sure I understand the question. Classic ASP has its configuration ...Show All
schlafsack Web Service state question
Hello, Is it possible to maintain a database connection via a web service If I have 1000 clients hitting a web service, is there a way to have them all use the same database connection instead of opening a connection, passing some sql, then closing the connection I assume this is not possible, if it is not what suggestions would you offer Thank you. its not possible, the connection must be expl ...Show All
GreatDane anyone knows the coding to c# user login?
hi..anybody knows the coding for c# to program a user login for a database system (not for web-based) Hi! Did you mean "How to connect to database" Or you need login form to connect to database In any case you should read about this classes: System.Data.Sql.SqlDataSourceEnumerator System.Data.SqlClient.SqlConnectionStringBuilder ...Show All
ColinSK Error adding web service reference
The wsdl file is legitimate. I verified it on Mozilla, but not on IIS6.0. When I try to create a client, I try the utility to get the web reference. At this point, I get this message. I go and look at the specified folder. I see TempWebDirectory. It does have this directory with the long code(file name), but I do not see the rest of it. Every time I try to use the utility, I get another directory with a code but always empty. Is intero ...Show All
JohnHennesey combine and manipulate multiple fields from DB record, into a new textbox???
hi dudes and dudettes (apologies this thread is repeated in vb expess forum - not getting any interest ) i'm just starting out with database stuff. i've got my databse table (using the descriptive method so the output appears in textboxes) and a binding navigator added to a form and i want to combine about four fields only from my current record into a new textbox to combine them with some autogenerated (by my ap) html tags. the idea ...Show All
Knuckles SerialPort - How much time between Close and Open?
In the Microsoft .NET documentation for SerialPort.Close, the following cryptic statement is found. "The best practice for any application is to wait for some amount of time after calling the Close method before attempting to call the Open method, as the port may not be closed instantly." How many milliseconds in a "some amount of time" unit Our company has a library of Common Service classes that are used by a num ...Show All
RFOG using()
hi, What is the best way to rewrite this method with the keyword using() I know I can use it for the connection and command. public int EmployeeDetailsAdd( string strFirstName, string strLastName, string strTitle, DateTime dtBirthDate, string strNotes) { string strSQL = "usp_EmployeeDetailsAdd"; string strConn = clsDataHandler.GetConnectionString; try { SqlConnection oCon = new SqlConnectio ...Show All
Rob DeLine ERR - WebClient.DownloadData returns "protocol violation"
I'm getting a "protocol violation" from a site that is working perfectly fine when I issue WebClient.DownloadData as such: WebClient WebClient_Temp = new WebClient(); byte[] zbyteTemp = WebClient_Temp.DownloadData ( "http://MySite/MyWebPage.htm" ); I have heard of the app.config file fix, but my app is a UserControl, and as such, I can not keep the "MyApp.dll.config" in the same directory as such: <configuration> <system.net ...Show All
wtrn text encoding
Hi Everyone, I have a string that I should encode in central-europian format. The issue is the following. I wrote a POP3Client class and after downloading the email and getting the headers and the body into seperated strings in need them to encode because of the "eaoo u i" chars (accentuated letters). Could anybody help me Thank you; Ok. Here's the situation: I'm using my own pop3 client to download my e-mails from the server. When it re ...Show All
barton01 Remoting Impersonation/Delegation problem
Hi, I am working on a n-tier app using remoting. I am using the VS 2005 beta 2. My server needs to access a remote resources on behalf on the connected user. I have configured my server like : <channel ref="tcp" secure="true" port="8081" impersonate="true"> and my client: <channel ref="tcp" port= ...Show All
pharries MS SQL 2005
Hi, I am using a stored Procedure on 2005 SQL server. This returns me a XML document as output. When I execute the same query using ASP.NET beta using C# it giving me 3 data rows randomly truncating the xml text. I have used SqlConnection. Is there anything I have missed or this is the standard way. Thanks Sambuddha ASP.NET beta Any type of beta software could have problems. I doubt you will get any answers to this ...Show All
AliSyed Could not find assembly version
Hello, Before I start I should say I'm a .Net novice so bear with me here. And please be as basic as you can in your response :) I'm trying to run one of the sample VB.Net solutions that is provided with the latest SQL Server 2005 CTP. When I attempt to build it I get the following error: "Namespace or type specified in the project-level Imports 'System.Data' cannot be found. Make sure the namespace or type is defined and it doesn't contain othe ...Show All
Khenat.Ram Collection(Of Thread) - Store Thread objects problem
Hello, I have been struggeling for days with getting my application to work. It basically allows a user to download a file from a website, stop/resume the download and various other options. My problem is that i create a new thread for each file in the download queue. To keep track of all the threads created i store them in a Collection for later use. Example: dim MyThreads as New Collection(Of Thread) Now let's say MyThreads cont ...Show All
hmcheung .Net Config wizard
I am new to the whole .net thing. They just hired a new programmer (our first) and he is programming in visual basic some things for some client/server apps. We want to be able to run apps from a network drive. Is there a way to trust the whole domain or share Or do i have to enable each app via the .net config wizard Yes James it still applies. If you look at the .net con ...Show All
Warwick Jaensch .NET Remoting & Indigo
I had a look at the famous article "Introducing Indigo: An Early Look" ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlong/html/introindigov1-0.asp ) and I would like to add another row to the comparison table and that is "activation model", while .NET remoting has got a comprehensive model for activation (Single call, SAO, CAO), web services on the other hand just support single call. My question is about Indigo, Which mod ...Show All
