-
- PLz help me...my database connection disconnects.
by XeuS
- 4 Replies
- Last post
by XeuS
- im in a mess...i connect my sql database perfectly ...even wen i test my connection it says "Connection successful"
im using visual studio 2008 professional edition on windows xp.
but wen i try to run a simple application my data connection drops as soon as i run it...
a small red cross mark appears on the database...PLZ HELP ASAP.!!!!
-
- Access DataBase from Remote FTP File
by BaluMunugoti
- 0 Replies
- Last post
by BaluMunugoti
- Hi to All
I have done one application with asp.net ,ajax.
I need to retrieve data from the .csv file which is in remotly means its there in other server system.
How can we give the path for the remote ftp details.
It is important to us.Please reply back .
I have done some details in web.config. file, see below:
< add key = " Oldconnection " value = &q
-
- What!? Assert on: "This function must be called in the default domain".
by TommySson
- 4 Replies
- Last post
by Michael Steuer
- Hi,
I have an application which hosts several sub-applications where each subapplication lives in its own AppDomain.
Each subApp makes use of unmanaged C++ code.
In the C++ code there is a local static variable that gets initialized. In addition to this, the compiler adds code which registers the static variable's virtual destructor as an exit handler to be called when the process exits.
-
- Get client IP address from server
by MagellanTX
- 2 Replies
- Last post
by John Lambert - MSFT
- How do you get the client's IP address on the server application I have custom sinks running to provide encryption but I can't seem to find the right interface to implement so I can get the remote client's IP. I know I can have the client application simply send its IP in the headers but that doesn't help me when the client is behind a NAT device so I must rely on the server to provide it.
-
- Choose a certificate dialog box
by Rabia Yunus
- 8 Replies
- Last post
by Mariya Atanasova - MSFT
- Hi,
Iam having difficulties to talk to a server application over HTTPs using C# client. When I try the url using browser i get "choose a certificate" dialog box. I suspected for this reason it is not working through my application. I disabled this option from IE now IE is not prompting for a certificate. How can i handle this from my application.
Thanks,
Rabia
-
- Change xml in webservice...
by anders_sms
- 2 Replies
- Last post
by anders_sms
- Hello all, I have a simple webservice, "HelloWorld" with one parameter. If I look at det SOAP 1.1 generated for this webservice it shows me this: Code Snippet < xml version="1.0" encoding="utf-8" > <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://
-
- .NET Assembly Security
by silkkeng
- 14 Replies
- Last post
by pink_flower4love
- Hi all, just a quick question. Since there is a .NET Reflector written by LR which disassemble an exe/dll file, i can't find anything nor a better solution to get secure. How are we suppose to write a secure .NET app since it can be disassemble Is there a way to do it or perhaps possibility Or what's your recommendation / suggestion Regards, David [.NET NEWBIES]
-
- BeginAccept problem
by claytonc
- 3 Replies
- Last post
by Indian Ocean
- Hi all,
I'm trying to develop a server that listens to incoming calls using the asycnhronous methods BeginAccept / EndAccept. I start the server (till this point it is ok) and few seconds later I stop it (with no clients connected). Once I press the stop button an ObjectDisposedException is fired. What is the reason for this Is it because the thread is still running even after I closed the ser
-
- Thread termination approach
by jimmy1949
- 6 Replies
- Last post
by Thomas Danecker
- Assume I have a long computation thread and I want to terminate it if the given time is exceed. What is the best practice in .NET 1.1 (C#)
The computation thread normally will not exceed the given time (say 60 sec). But I like to try to terminate the thread if it takes more than 60 seconds.
I think there are a few sub-steps to take:
1. At the end of 60 seconds, Check if computatio
-
- .Net Framework 2.0 and Synctoy not working after Windows Update
by Wiedermann
- 3 Replies
- Last post
by Wiedermann
- After "Security Update for Microsoft .NET Framework 2.0 (KB917283)" application SyncToy (Ver 1.4) which is dependent on .Net Framework 2.0 and worked without problem is now not working. When the program is launched I get the following message
Message Title:
SyncToy.exe - Fatal Error
Message Text:
CLR error: 80004005
The program will now terminate
Searches
-
- c# serial port enumeration
by aliasx
- 11 Replies
- Last post
by nobugz
- I need to enumerate the available serial ports. I'm using c#. Anyone know how
cheers,
gareth
-
- Read Write multi string into - from xml file
by Eyalrev
- 5 Replies
- Last post
by Sergey Dubinets - MSFT
- Hi, i have an xml file which i read from and write to for example: <items> <item>MYVALUE</item> </items> now the things is that i want to keep in MYVALUE a couple of null terminated strings,but i dont want to keep them like this: <item>string 1</item> <item>string 2</item> i want them all in one item element. string[] myStrs = { "str1",&q
-
- Is any possibility to server lisiten in two ports.
by vijil
- 2 Replies
- Last post
by RizwanSharp
- Dear sir,
I am using .Net 2.0 FrameWork. I created One Socket programming.
This Server using one IP address and one port. Through this port i am connecting to the client. It is working fine.
Now my requirement is Server should lisiten in two potrs.
Example
Server IP:192.1.1...
Ports1 : 8080
ports2: 8081
Here server IP should be lisiten in
-
- easy Regex.Replace() question
by David Krmpotic
- 10 Replies
- Last post
by OmegaMan
- I am using Regex.Replace(string, string, string) in this way: Regex.Replace("Gloria Estefan (1993) - Yesterday", "^Gloria Estefan (1993)", "Gloria Estefan"); So I want to change the artist name so it doesn't include the year anymore. The problem is that this doesn't work because of brackets! So this would work: Regex.Replace("Gloria Estefan - Yesterday", "^Gloria Estefan", "Beatles"); How can I m
-
- Google Search
by Sniper167
- 10 Replies
- Last post
by Lancereno
- How should I go about sending numerous search queries to google at one time and recieving the results in a listbox I only want to recieve the urls, nothing else. Am I going to need to use regular expressions to retrieve the urls and nothing else Should I use a List, ArrayList, a Dictionary, or just the WebRequest/WebResponse classes I just need some pointers please...
-
- Multiple clients, events and disconnects
by Mark Lidstone
- 5 Replies
- Last post
by Christian Liensberger - MSP
- Hi all, This is a strange one I'm hoping someone can help with: I have a service that marshals a single object via .net remoting. This is done so that clients can subscribe to events fired on the service. When I only have one client, things work fine. However, if I try and use 2 or more clients at once, or if I connect a single client, close it, then run a second client I get the following excepti
-
- OdbcCommand AccessViolationException
by El Bekko
- 2 Replies
- Last post
by El Bekko
- Hello,
I've run into an odd error when trying to use ODBC to connect to Sybase ASE. I am developing an application to scan my music collection and insert it into a database. Below is the relevant code:
Code Snippet
public void scanDir(DirectoryInfo dir) { FileInfo[] files = dir.GetFiles(); DirectoryInfo[] dirs = dir.GetDirectories(); foreach (DirectoryIn
-
- passing unmaged string array
by andredestin
- 2 Replies
- Last post
by Alan J. McFarlane
- Hi, i have the following problem: i am trying to read in c# a String array from a C dll. Here is the source Code.
C Code:
static char var[10][100];
short __stdcall GetArray(char ** ptr ,int* CountSernums) { strcpy(var[0] ,"123456789"); strcpy(var[1] ,"987654321"); *ptr = var[0]; *CountSernums=3; return 0; }
Here is the C# Code:
IntPtr ptr = IntPt
-
- PixelFormat??
by Betaw
- 10 Replies
- Last post
by C# Developer
- Hi
The following code is my attempts to change bitmap pixel format, I could not do it.
Can you tell me how to change Bitmap PixelFormat, or at least how convert from any PixelFormat to PixelFormat. Format32bppArgb
public static void ChangeBitmapFormat( ref Bitmap picture, PixelFormat newFormat)
{
Rectangle bounds = new Rectangle (0, 0, picture.Width,
-
- Login Problem
by Michael_001
- 10 Replies
- Last post
by Derek Smyth
- I downloaded samples in how do I all off them seem to work.
butt the one about XML has errors, I wander whetter It is because i
had to convert then from 2003 to 2005.
The problem is like this my login is from 101Samples
it reads the password en username from XML
Verify Allows/or not
max 3 atempt
Butt the XML is readeble, that is the problem i'm trying to fix.
I seen enc
-
- Difference between debug and release in .net
by mailtoashish
- 5 Replies
- Last post
by cafu
- What is difference between debug and release When I am compiling in debug mode, then how compiler knows it is debug mode or release mode. How compiler map break point in code line ( debug mode).
-
- Query the DataSet and populate the result.
by ardmore
- 7 Replies
- Last post
by BonnieB
- Hello, I have created a DataSet, I want to query the maximum value from a column and populate the result.
How to do it
Code Block
DataSet dsTemp = new DataSet(); DataTable Tables = new DataTable(); dsTemp.Tables.Add(Tables); dsTemp.Tables[0].Columns.Add("ST", "CD", "CLIMATE_DIVISION,"+ "TEMP", "PCPN", "UPPE
-
- DateTime.ToString (Day ordinal suffix)
by Barguast
- 2 Replies
- Last post
by Geert Verhoeven
- Is there any way to specify that the ordinal suffix for the day number (st, nd, rd, th) should be used when using the ToString method For example, so I can format the date in the form "2nd January 2007" I know there are ways to do this manually, but I need a way to do it via the ToString method.
-
- How to Zip files within a folder?
by Udii
- 5 Replies
- Last post
by Jeff Bazinet
- In my application multiple reports are generated and saved on server. I want to zip all these reports and keep a link on webpage so that user can download this zip. But I am not able to figure out a way to zip the files programatically..Please help me...thanks in advance..
-
- Tracking down apparent memory leak
by Joe Worker
- 5 Replies
- Last post
by soft_grp_employee
- I auto-generated a C# web service class with wsdl, Version=1.1.4322.2032 (I'm using Visual Studio .NET 2003 SP1) and derived a new class from it to implement the methods. I also created a simple C# application with a web reference to the web service to test the methods. Calling the methods does work, but when I let the application run calling the methods once every 10 seconds the aspnet_wp.exe pro