Answer Questions
Javier Aranda Pantoja the best tools
Hi everyone, We are trying to decide what kind of application (with VS.Net, preference VB.Net) to develop for a client. They have a central administrative office that includes space and people who serve their clients directly. They also have two remote sites that serve clients but do not have any administrative responsibilities. We are not sure if we should develop a web based application, a Windows application that connects ...Show All
Jeff Steinkraus FTP problem
Hi, I'm new to this but havbe written a client app that will (should) connect ot our office server. Using vb.net and ftpwebrequest I want to get directory listing then download files. Testing locally with localhost worked fine. I've now installed a sertver at the office and setup IIS on WINXP ProSp2. When trying to connect I get the following error "The server returned an address in response to the PASV command that is different than the ad ...Show All
Roberto Barrantes Problem in different Code on mail subject from pop3 server
I build a simple programto get mail from pop3 , but i have some problem I can get big5 and iso-8859-1 encoding by use "Ecoding.default.getstring(bype)" but Ths subject Like below that i still have no idea to get the originate format after try some method: 1.) = ISO-8859-1 B VmlzdWFsIFdlYiBEZXZlbG9wZXIgMjAwNSBCZXRhMiBSZWdpc3RyYXRpb24= =vwd05reg@response.microsoft.com 2.) = big5 B RmV2YSBXb3JrcyC3c6xLrNu7RaRAqOg= = 3. ...Show All
NytewolfAU2k7 Problem inserting small date time in a sql server database
Hi, I have a cell in a sql server database that is off datatype smalldatetime. I am trying to pass in the value of todays date in a sql insert command but I keep getting the error "The conversion of char data type to smalldatetime data type in an out-of-range smalldatetime value" Below is my code(C#) DateTime TodayDate = DateTime .Today; int Num = 1; string text = "Test" ; //To test that the insert work ...Show All
Martin Stettner How can I open a file on a remote machine?
I am using Visual Studio on Win-XP Pro and I am trying to read a .txt or a binary file... I have: private void TextFromFile() { string FILE_NAME = "MyFile.txt"; if (!File.Exists(FILE_NAME)) ...Show All
WangYuantao Am I doing this right?
.NET 1.1 I am fairly new to remoting. Just starting playing around with it a week or two ago. Currently I have a server and 2 clients. The server processes a variety of input files and adds 'job's' to a queue (WorkerQueue) The two clients continually call the GetNext() method from the server, if a null is returned they sleep for 5 seconds. If it's true they do a variety of things and save an out file with a uni ...Show All
mairead Printing Directly to Printer
I have a client that has a process which builds a text file. This text file contains commands that is used by their thermal printer, i.e.: ^XA^CF,0,0,0^PR12^MD30^PW800%^PON ^FO0,147^GB800,4,4^FS ^FO0,401^GB800,4,4^FS ^FO0,746^GB800,4,4^FS ^FO35,12^AdN,0,0^FWN^FH^FDFrom:^FS ^FO35,31^AdN,0,0^FWN^FH^FDAri Rothman^FS ^FO35,51^AdN,0,0^FWN^FH^ They want this to print directly to their printer. I have attempted using the following code to produce th ...Show All
Koni MultiThreading Question
To the multithreading gurus: Given the following code, is it necessary/good practice to use a lock somewhere Thanks in advance, zulu using System; using System.IO; using System.Threading; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { FileCounter cnt = new FileCounter(); cnt.StartAsync(@"C:\"); while (true) { bool exit = !cnt.IsRunning; Console. ...Show All
kg81 Opening an MS Access Database In Exclusive Mode Using ADO.Net
Hello All, I am having a bit of a problem here and I am hoping that someone can shed some light on how to solve it. In both DAO and ADO you have the ability to open an Access database in Exclusive Mode. I cannot seem to find a connection string parameter that allows you to achieve this in ADO.Net. Does this functionality exist in ADO.Net If so, what is the correct syntax for this portion of the connection string Any help you can offer would ...Show All
Musa34252 Very slow data loading into DataTable from Oracle
I'm a newbie to VS2005 and .NET and trying to load about 20,000 records from an Oracle table into a datatable. I've tried the design-time methods like TableAdapters and it is so slooww. I've also tried a couple of programmatic methods like OracleDataAdapters and and OracleDataReaders. The result is the same - about 10-12 seconds to load 20,000 records. That can't be right, surely As a comparison I tried the same function within a Delphi 2005 ...Show All
Manoj_Raj enableSessionState problem
When I run my aspx page trying to call some session variables, I get the following error: Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration. I have go ...Show All
sirozzy Fileclose() crashes the Web Service?
Hi - I am trying to make my Web Service exit gracefully in the event of a problem. On it's way out, I use FileClose() to close any files that might or might not be open. But instead of returning the error message errm, I just get the "Page Cannot Be Displayed" page. I put all the "logits" in to pin it down, and found the prog got only as far as "Here 6". I tried enclosing the FileClose() in a Try...Catch ...Show All
Boudhaditya Banerjee System.Security.Cryptography.XML and Winforms
I'm trying to expand on some code that was demo'd back in VS2005 Beta1. It was a WinForm that encrypted only some elements of an xml file. I finally found the System.Security.Cryptography.XML namespace in the Web Services Enhancements 3.0 and installed them. I can now add that namespace to my web sites. But, when I try to add it to a Windows project the warning is: Namespace or type specified in the Imports ...Show All
Doug Milne consuming Java MTOM web service using WSE3
Dear all, I have a developed a java web service to transfer a file using MTOM, and also developed a client using WSE3+VCS 2005 Express edition, but the client could not resolve the returned message. Here are my code snippet: ImageService service=new ImageService();//ImageService is the generated proxy service.RequireMtom=true; String[] list = service.listFiles(); //here the exception occured String[] operators = ser ...Show All
Greg Hoffman VS 2005 + SQL Express 2005 - Database connection error - An error has occurred while establishing...
I created a sample application that has a mdf file and tries to connect to the SQL server express with the following connection string. Data Source=.;database=sample;Integrated Security=true;AttachDBFilename=sample.mdf When I open the connection, I am getting the following error. An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the defau ...Show All
