Answer Questions
T-Jay Windows Services (!Web Services), ASP.NET and RPC
Hi I am creating a system that allows users to log into a web site and record video from a web cam. As part of its functionality it should allow recordings to be scheduled so they start at a certain time and date. The system should be asynchronous and not require a user to be logged into the web site. My proposed solution was to use a Windows Service and and ASP.NET web site. All the proposed system components will be on the same mac ...Show All
MyNameIsKen Launching a COM server from a service on WinXP 64-bit
I have a 32-bit application that gets launched by a service. It is basically an MFC out-proc server. On a 64-bit machine, I am seeing an issue where a client is unable to communicate with this COM server. My assumption is since the application which is 32-bit is getting launched from within a service, there is some kind of a security issue. The COM error I get is 80080005. Is it possible at all to have a service launch a 32-b ...Show All
MrLucky UsernameToken WSE and .NET 2.0
Does .NET 2.0 define a UsernameToken class anywhere Or is there any WSE for 2.0 You can use WSE 2.0 SP3, if you intend to go for production. it works well. BTW the newly released WSE 3.0 CTP is meant for .Net 2.0 thus it's a lot better with .Net 2.0. ...Show All
Kirry List generic class order of items
Hi all, The documentation about the List generic class states that the items are not guaranteed to be sorted. However, I am after an implementation that guarantees that the items will come out of the enumerator in the same order they were added to the list instance. Is that the case with the List generic class, or will I have to implement my own Thanks, SA. Yes the List<T> enumerator retur ...Show All
James Ernst Network configuration problems
I am setting up a W2k3 server with dual nics and am having trouble getting it to work properly. Here is my desired configuration. ( my goal is to do it good enough without going overboard on the cost ) Internet -->hardware router ---> W2K3 server ----> switch ------> 5 other computers The main reason why I wanted a hardware router was to provide one more layer of protection from the internet. I plan to use a DLink DI-604. It is ...Show All
Saint Kabir Combine Visual Studio with Access
Hi All, I have an app developed in Visual Basic 2005 connected to an SQL Server 2005 database (both Express editions). What I would like to do is create an Access .adp connected to the same SQL Server 2005 database. It seems however that Access (I have 2002) does not support developing against SQL Server 2005. Never mind, I can use Visual Studio or SQL Server management studio 2005 to make changes to the database, and I can connect the .ad ...Show All
gill cleeren Trouble getting value from xml file
Hi I am new to c# and xml but progressing nicely (I think) anyway I am reading in an xml file and then extracting information from a particular tag and rewriting it to a new file. I have almost got it but I am having a problem getting the value from the element and then writing it as an attribute to the new one. Code is while (reader.Read()) { if (reader.Name == "text" && reader.NodeType == XmlNodeType .Elemen ...Show All
CSharpCoder What is remoting?
Please suggest a book or some example Basically, .NET remoting is a new sort of RPC infrastructure. It allows you to talk to objects across the network. The best part about remoting is that with binary serialization you can send almost any type of object over the network, even your custom objects. The infrastructure is built-in and you essentially "get it for free" with the .net framework. thanks alot Nichola ...Show All
shmulik_segal IIS6.0 Question (error executing aspx)
Hi Folks, I'm working with IIS6.0 (windows2003 server) since a few days. Everytime when I try to setup a new asp.net webapplication in IIS manager it seems IIS doens't execute the codebehind of any project. When I call a page with my internet explorer it always creates an "xml error" cause of invalid characters (<%@ Page Language="vb" AutoEventWireup="false" and so on..) of course.. but why doesn't IIS6.0 execute those aspx files I already a ...Show All
SeanKelley How to add a custom provider to "Add Connection"?
I'm trying to find the documentation on how to add a custom ADO.net provider as a Data Source to the Add Connection dialog under Data Connections in the Server Explorer. In this case, the provider is from the open source Firebird project. Is this documentation publicly available, and, if so, where do I find it This provider is not under the GPL and does not have any "viral" licensing terms. I'd strongly prefer not to use the ODB ...Show All
yann sugere XML serializer does not serialize values of properties if value contains only spaces
Hi all, I have a field of type string in a type that is serialized to XML. If the field value is just one space, the resulting XML is this: <FieldName /> This creates an issue with deserializing, because in the context of the application, " " is not equal to string.Empty. I've looked for options on the serializer, and for serialization attributes that would control this behavior, but I could not find any. Any help is appreci ...Show All
houman_ag Recieving text data from internet
My program needs to recieve one text file from internet to wark without mistakes. What is the best way to get text information from internet Use the Syste.Net.WebClient class. It has several methods to download data, for example downloading a file directly to the local disk: WebClient webClient = new WebClient(); webClient.DownloadFile("http: //www.somewhere.com/somefile.txt", @"C:\somefile.txt"); or into memory: strin ...Show All
noremy How much using should i use?
Hi, firstly i started using the using keyword for connections. Later I found (if I'm right) that I can use it on DataReaders as well, without explicitly closing it... and now I have noticed that commands are also disposable, so should I use using ( SqlConnection con = new SqlConnection (connectionString)) using ( SqlCommand cmd = new SqlCommand (commandString, con) using ( SqlDataReader ...Show All
KirkHaselden Import from excel file
Hello, is it possible to read from an excel file and then import the data row by row. I know ado.net what I dont know is to open the excel file, and begin iterating in rows and columns of the excel file. Thanks very much for your help. Hi Luis, Look at this url: http://www.thescarms.com/vbasic/ExcelExport.asp Will solve all your problems, Nos vemos, Juan. Hi, You will ...Show All
Rodgers Automation Error Raised by VB6 App on a .NET component ever since installing .NET 2.0 Framework
I noticed that a VB 6 app is no longer able to properly call a .NET component exposed with a COM interface that was compile via Visual Studio 2005, it raises an Automation error . Setting the application configuration file to point to the .NET framework v2.0.50727 does not help the situation. However, when the .NET component is compiled via Visual Studio 2003 it works provided I have the infamous application configuratio ...Show All
