Answer Questions
AlexWeatherall Why is System.Net not available in my add reference list?
Subject pretty much says it all. I'm using Visual Studio 2005 C# Express. I went to add a reference to System.Net and System.Net.Sockets, but they simply aren't there. I tried reinstalling/repairing the SDK, but to no avail. I can't find any reference to this problem by googling it. I'm completely confused as to why this namespace isn't present. All work is halted until this issue is solved, so any help would be greatly appreciated! Thanks, Jas ...Show All
GeoffUnique Why can't I get to my Windows Form from my remote call? (Or why is .Net Remoting documentation such shite?)
OK, I'll bite, how in the bloody bowels of Hades do you actually do anything useful with a .Net remote call I'm trying to make a client-server app to access a SQL database from a Windows Form client. I'm thinking this should be fairly straightforward - after all, the Client-Server-SQL setup is probably the most common distributed app out there so there should be some pretty good support for it. After some problems getting Remoting to work, ...Show All
P J Walklate XSD problem on upgrade project to VS2005
Hi I recently did my first project upgrade from 2003 to 2005. All went well except for an error with the XSD file i have in there. I can see it in the designer but the code has no code and no dataset. It wont compile (i cant be specific on the error message as it seems to be a different one each time but at present it says "Custom Tool error: Could not retrieve the current project). Any ideas Datas ...Show All
John.NET 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; Could you describe the issue for me a little more clearly 1. You should look at the content-transfer enc ...Show All
FKopan 10060 Socket Error in Remoting
I have a NT Service developed in Visual Studio 2005 C# and I Have to install in an Application Server (Windows Server 2003 SP1 with Application Center 2000 SP2). The application work properly before of create a cluster in a server. But when the cluster is active the client launch exception "10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed b ...Show All
Paul Paschedag SslStream fails - switch to plain sockets...
Hi, I have problems getting the following to run. I have client/server which communicate over SslStream. However, for older clients, which don't support the SSL yet, I still need to be able to communicate with them over plain sockets if SSL fails. So I was hoping that this code would work: [code] private static void AuthenticatedCallback(IAsyncResult ar) { StateObject state = null; try { state = (StateObject)ar.A ...Show All
Im Greatest Creating Demo Version
Anyone have ideas or pointers of how i can publish my app as a demo version or a timed version I have a fairly complex solution for a very narrow industry. I don't want to send out completely enabled version of my pkg for evaluation purposes. So I'm looking for ideas, pointers, code,... on how to best to build a timed expiration capability in .NET apps that is simple yet robust enough to prevent wides ...Show All
Rihaz File creation anomoly
Writing an app in VB.net to dynamically create CLASS files for VB 6.0. As you know, these are .CLS files and are in plain text (alot like VB.NET .vb files) Using the StreamWriter class to put the require first line in the .CLS file (disregard quotes): " VERSION 1.0 CLASS " When closing the stream, and viewing the contents of the .CLS file, the first line has these strange characters at the beginning. Example: " i VE ...Show All
anina Year function in sql query
I'm trying to add a field in query design SQL EXPRESS as follow SELECT Year([Created_Date]) as exp1 FROM Tablex or SELECT Datepart(year,[Created_Date]) as Years FROM Tablex Table comming from MSAccess I have donne in MSAccess many time without a problem , but I get an error in SQL what wrong , please help Are you passing that SQL statement to Access via a OleDbCommand object A ...Show All
BRiley Visual Studio 2005 Beta with web service
Hi Really quick question that someone may be able to help with.. I have converted my solution to VS 2005 Beta from 2003 and now my solution will not build. I have a project within the soltution that uses a web reference and when this reference is included in the project the solution fails to build.. take it out and all is fine. I wonder if the issue is that the web service project actually uses this project as a reference itsself, kind of like ...Show All
Roggan DateTime.Parse() failing on one machine
On one of the machines we tested, all calls to DateTime.Parse() throw an IndexOutOfRangeException, generated somewhere in mscorlib.dll. DateTime.Parse() is not documented as throwing an IndexOutOfRangeException, and the initial input was an ISO-style date/time from SQL Server 2005: "2006-10-05T12:24:00". All machines were set to the "English (United Kingdom)" culture. The failing machine mysteriously has no AM and PM desig ...Show All
PGT Defining Query at Runtime
I have a Visual Basic 2005 Express application that is accessing a Access database. I am able to define and execute the query through the property editor at design time. However, I would like to change and re-run the query at runtime. I can't seem to figure out how to change the query at runtime (I can see a Command Text Property, but can't seem to access it in the code editor). Help! ! ! ! ...Show All
GR1206 Remoting-v-webservices - the prescriptive guidance is nuts ?
Web-services excel for cross-platform/cross-language communication. However, what about communication for the internal tiers of an app, where it is .NET on both sides It's the endless debate of remoting-v-webservices. Remoting - faster performance and richer type system, versus the lower-performance, lowest common denominator of web-services. The message that I perceive from MS is "use web-services for everything - remoting is only for in- ...Show All
Sunny Jung Loading FK relationships into datasets from database?
Hi, I have a database that contains about 20 tables that contain various primary keys, and unique and foreign key relationships, and would like to read the whole lot into a dataset so that I can have the protection of the relationships while modifying my datasets and datatables in memory. I know that I can get the constraints into my dataset if I (1) use VS to create a strongly typed dataset, and (2) use VS to drag the dataset on to my form, ...Show All
eayrider SCardTransmit throws PInvokeStackImbalance
Hello, I try to write some thinks form my SmartCard. These are my typ declarations: <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)> _ Public Structure SCARD_IO_REQUEST ' das verwendete Protokol Public dwProtocol As Integer ' Lange (in Byte) von dem Struct SCARD_IO_REQUEST + PCI spezifischen Informationen Public cbPciLength As Integer End Structure and <StructLayou ...Show All
