Answer Questions
Thomas Danecker Creating our own datasource
Could We create a structure so that it could be binded as a datasource to control who supports databinding. If yes Could any body provide me a sample (with code) of creating our own datasource in C#.That is i don't wan't to bind to dataset ,xml etc I wan't to create my own datastructure.What I have to do. This is no the thing I am looking for.I want's to create a genric datasource of mine. Hi! Create any class (structure is ba ...Show All
Jan - In Summa DataTable's question in class ?
Please tell me why I received errors when doing this: class MyClass : DataTable { public MyClass():base() { DataTable dt = new DataTable(); this = dt;// errors occur here, what can I do to let dt to "this" } } Thank you for your help. I dont understand what you are trying to do. you cant reassign 'this' you cant reassign "this" if MyClass inherits DataTable ...Show All
Harini K P NullReferenceException? Please help!
I recieve folowing error in VS2005 .net. What i'm doing wrong NullReferenceException Object reference not set to an instance of an object. Here is my code: Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click HttpContext.Current.Response .Clear() HttpContext.Current.Response .AddHeader ("content-disposition", "attachment;filename=FileName.doc") ...Show All
Paul_wa Unmanaged application using managed library can't find referenced assemblies
There's a C# application with some DLL's. There's an unmanaged application (Total Commander) and I want to create a plugin for it that uses some functions from my C# libraries. I figured the best interface is a managed C++ library: it implements the unmanaged plugin interface by exporting the necessary functions, and it calls into my managed code, so I don't have to reimplement that library. Problem is, it can't find the referenced assemblies (F ...Show All
JMHirst What is the good practice for returning errors in Web Services?
Hi guys, I am developing a Web Service that need to return a UserDetails class to the client application. I created the class, with ID, name, etc. And made it serializable. So far so good. It works! Here is the example of the return: <UserDetails> <Cellphone>5555555555</Cellphone> <Password>1234</Password> </UserDetails> The problem is that I need to do some error handling on the web services reque ...Show All
catweazle Backward compatibility for ADO.NET ??
Hi, I have a beta 2 release of VS 2005. I am trying to open a sample which is originally made in VS2003. It simply has a datagrid bound to a dataset. I can't open it. It seems the datasets made through wizards at design time are not converted by the conversion wizard properly, and the datasets are not recognized. What do I do Is theer any way to completely convert the .xsd files also, to ADO.NET 2.0 format P.S : When I t ...Show All
郭?? stopping connections
Hi. I've done this before but for some reason I cannot figure where I am going wrong. When I start listening to a port, I want to stop listening to it, even if there are no connections. When listening, it is listening in another thread. I have 2 buttons, Start service, and stop service: Start Service: Creates a new thread, and it runs the method to Listen to the communication Starts this thread Stop Service: ...Show All
Victor Delta X509TokenProvider is unable to provide an X.509 token
I have created a client and web service using WSE 3.0 and Certificate encryption which works fine when I use my application through VS 2005. However, when I try to run the app using IIS 5.0 on a Windows 2000 server I get the following error: WSE2013: X509TokenProvider is unable to provide an X.509 token. There are no certificates in the certificate store that match the find value of xxxxx Where xxxx is the certificate value. I have ensu ...Show All
limelight Error Using WMI to Get List of Shared Folders on the Server
Here's some details: Server and workstation both in the same workgroup Logged into server as local Administrator Logged into workstation as a local user that is only in the Users group The local user on the workstation is also defined with same name and password on the server (and only in the Users group on the server) Server is Windows Server 2003 running IIS 6.0 Workstation is Windows XP Professional ASP.NET 2.0 (C#) web site Web.config ...Show All
sgrathikala Post XML request and get response
Hi all, I am developing a web appliaction in C# .net. I have to integrate UPS rate and service. For this it is required to post an XML to UPS server and get reponse from same. To my plight I did the entire coding using AJAX "assuming" XMLHTTPrequest to across domain might work. IE gives permission denied if the security settings are not set to prompt for cross domain. Can anyone help me out with C# code to simply place a r ...Show All
ivan.paul How to count and retrieve the number instances of current process
Hi, My requirement is to count and retrieve the number of instances of current proces. I am opening Internet explorer with 5 instances. I want to retrieve the url address of each instance in vb.net. Is it possible Regards, Helan What browser are you using Internet Explorer You need to make sure you give the GetProcessesByName the name of the browser to look for, if you haven't already. As I type this reply, I am ...Show All
Tor2k error to execute Path.GetTempFileName() statement
Hi, I haven't solved the problem when I try to get the temporary file with the sentence: dim tempFile as String = System.IO.Path.GetTempFileName() I have the following message: {System.IO.IOException} System.SystemException: {"The directory name is invalid.\r\n"} However, when I test the execution of "System.IO.Path.GetTempPath()" it gives me the following path: @"C:\DOCUME~1\TASISO~1\ASPNET\LOCALS~1\Temp\" I have given all the permissions to ...Show All
wholewheatham socket not released
Hi, I currently have an app that spawns a connection to server, the server requires hard IP and Port for both my app and the server itself. It then sends a command and disconnects. The problem is that I have to wait ~5 minutes for the socket to become usable again. I know that windows likes to maintain the socket for a few minutes. Any idea on how I can get around this. I call the socket.close() method when I am done sending my parameter ...Show All
roussec Controlling the Number of Processes Running.
Hi, Ive created a small app which reads a list of excel documents from a database. These excel sheets when opened run a macro which refresh other sheets, once that is done the sheet closes automatically. What i want to do is limit the number of jobs that the app kicks off to around 2 but how can i tell when the Excel sheet ive opened is finished running its macro. When i start the process can i check to see when it has closed At ...Show All
Jan F .Net 2.0, SQL Server 2005 and VS.Net 2005
Where can I find more complete materials about .Net 2.0, SQL Server 2005 and VS.net 2005 I need to start studying for certification. Hi, There has been no certification exams announced yet for these technologies. I think the Beta exams would be announced some months after the release of the product. You need to also take care that the Product is in Release Candidate and most of the documentation available would be based on Be ...Show All
