Answer Questions
Fei-tian Datatable: works in windowsApp, not in ASP.NET
Hi all, I've got a very weird problem. I'm trying to retrieve a datatable and in my view this works. Here's my (test) code in ans ASP.NET code page. 1 Public Sub New () 2 cls_datamanager = New DataManager() 3 Get_errors() 4 End Sub 5 6 Public Sub Get_errors() 7 Dim cls_Error As New Error_Logger(cls_datamanager) 8 Dim cls_datatable As New DataTable 9 cls_datatable = cls_Error.List_errors 10 11 'grd_errors.DataSource 12 lbl_test.Text = cls_datatable.Rows(0).Item(0) 13 14 End Sub cls_error and cls_datamanager are some classes for DAL and three tier development I use and they work. I get a NullReference Exception when I get to the last line of code. The strang ...Show All
gafferuk can we use .Net Remoting on 800Mhz network.
Hi Can we use .net remoting technology on 800 Mhz network. thanks, Ram. Yes. We have mobile application. We have server located in srong network 802.1 mhz and always connected. We have laptop users they work in feild (800 Mhz network). Interaction will happen from laptop to Server happens thru MSMQ most of hte times. But there are some scenarios where we need to use .net remoting to interact with the server. In this case, laptop users will be on 800Mhz network has to talk with the Server by using the .net Remoting. IS it possible to connect to Server (which is connected in 802.1 Mhz network) from laptop(which is on 800Mhz network) by using .Net Remoting technology . Thanks for the help!. well you ...Show All
jobo5432 How do I connect to MySQL from Visual Basic 2005?
Visual Basic 2005 With MySQL How do I connect to MySQL form Visual Basic 2005 Trying to add the data source Server Name: mysql User Name: root p/w: "this is blank Database Name: POS When I test it it says that it was successful but I can not find it to bind to my datagrid. I get the following information on the script: Invalid Data Specifier What am I doing wrong Step by Step Tutorial how to setup MySQL with Visual Basic 2005 http://www.devx.com/codemag/Article/17906/0/page/4 http://www.devx.com/codemag/Article/17906/0/page/4 http://dev.mysql.com/doc/refman/5.1/en/myodbc-examples-programming.html You must have Visual Basic 2005 Professional All interaction betw ...Show All
Timothy Carroll Unable to read data from the transport connection: The connection was closed.
I just finished reading the tread at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=112657&SiteID=1 I have two servers that send me a chunked stream of data as a result of an HTTP GET command. Here's the way I saw it on a machine that worked: No. Time Source Destination Protocol Info 3 0.000196 (client) (server) TCP 1863 > http [SYN] Seq=1168239798 Ack=0 Win=65535 Len=0 MSS=1460 Frame 3 (62 bytes on wire, 62 bytes captured) Arrival Time: Aug 18, 2006 08:31:49.483449000 Time delta from previous packet: 0.000005000 seconds Time since reference or first frame: 0.000196000 seconds Frame Number: 3 Packet Length: 62 bytes Capture Length: 62 bytes Protocols in frame: eth: ...Show All
Rob_MUFC_1982 HOW TO DELETE RECORD IN A DATABASE ?
Hi, I have question to delete record in database. After clicked delete button I was able remove that row from view in datagridview but this record still exist in database. Here my coding : private void button3_Click( object sender, EventArgs e) { int Z; Z = dataGridView1.CurrentCell.RowIndex; maintenanceDataSet.MTN_Request.Rows .Delete(); maintenanceDataSet.MTN_Request.AcceptChanges(); } Thanks for your help. Joseph VB "My command string" & " my arg" C# "My command string" + " my arg"; Please, get in the habit of using Parameters with your database queries. They make coding easier, in the longr ...Show All
AndyL Can you send me the code 2, pleace
Hi, Im using a custom UsernameTokenManager in WSE 3.0 but it always authenticates when it should'nt. I'm missing something but don't know what. my Web Service code is: using System; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; [WebService(Namespace = " http://tempuri.org/ ")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [Microsoft.Web.Services3.Policy("usernameTokenSecurity")] public class Service : System.Web.Services.WebService { public Service () { //Uncomment the following line if using designed components //InitializeComponent(); &nb ...Show All
Majid.vagheeian GetReferencedAssemblies
Hi, I'm trying to get all referenced assemblies, however GetReferencedAssemblies returns only those referenced assemblies that are already loaded. How can I find the unloaded referenced assemblies as well Thanks, Tom GetReferencedAssemblies should return all references, whether or not they are loaded. If that's not what you're seeing, please post code to reproduce the problem. Are the missing references actually used by the assembly Keep in mind that the C# compiler will exclude references to unused assemblies. So the set of references in your C# project may be larger than the references in the compiled assembly. No, the referenced assemblies are not used by the executing assembly. Is ther ...Show All
Ronen1966 Do I need to Upgrade to .Net Framework 2.0
Hello!, We are using Visual Studio.NET 2003 with .Net Framework 1.1. The server is windows 2003 server SP1. I want to know If we have to upgrade to VS.NET 2005 and .Net Framework 2.0/3.0. If yes, how do I do it. VS.NET 2003 works fine with our needs, but I don't see much of VS.NET 2003 nowadays. Please suggest. Thanks, Krishna. the second question of how to migrate to VS 2005 is a valid question. Please post a similar question in Visual Studio Setup and Installation forum. I would move this thread but I see value to creating a new one. VS.NET2005 has added avdvantages like simulators. if u are working on embedded systems, then VS.NET 2005 will be he ...Show All
Petknep Non-serializable type in a remoting environment
I have the type System.Security.Principal.SecurityIdentifier used within an object which I'm passing to another environment using .NET remoting. Because the inner object of type SecurityIdentifier is not serializable or marshalled by ref, I'm getting a SerializationException. Type 'System.Security.Principal.SecurityIdentifier' in Assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable. Is there a way around this (other than using a different type) Perhaps I should clone the object on the foreign environment I'm open to suggestions. If the type is not serializable, it can't be serialized. There is no workaround except building your own ...Show All
Sto King Can not publish ASP.NET pages in IIS.
For some reson I cant deploy my webpages in IIS. I have been using VS.NET 2005 to develop some small assignments and using the internal webserver in 2005 to view them. But now I wanted to use some of my webservices remotely and I put them in my wwwroot. The errors I get is: Either when going to the webservice with my browser: -------------------------------------------------------------------------- XML-tolkningsfel: ej valformat (XML-interpretationfault: not well formed) Adress: http://localhost/affarslabben/ (Address: *) Radnummer 1, Kolumn 2: (Row 1, Column 1) <%@ page language="C#" autoeventwireup="true" inherits="_Default, App_Web_gkpoqx7k" %> -^ ---------------------------------------------------- ...Show All
SurreDeth Problems with IEnumerator in VB6 (COM Interop)
Hi! I'm trying to expose a collection from my C# library to a COM client. This collection should be iterated using the for each construct in Visual Basic 6. Unfortunately this won't work as expected. The IEnumerator interface is actually acquired and in the fer each statement iterate objects. But these object don't have any properties and cannot be cast into my original object's interface. Here is the sample C# code: using System; using System.Collections; using System.Runtime.InteropServices; namespace TestEnum { [Guid("00D26E58-FCE6-41fd-B5B4-3A694C1E9D7F")] [InterfaceType(ComInterfaceType.InterfaceIsDual)] [ComVisible(true)] public interface ITestCollection { [DispId(-4)] IEnumerator GetEnumerator(); ITest GetAt(in ...Show All
X4U XmlSerializer, Deserialize XML to custom object
Hi! I have a problem when trying to d eserialize a XML to a custom object. My XML look like this… < Trip > < Discount > 1 </ Discount > < MessageToBook > No Message </ MessageToBook > < Travler > < Telephone > 665522 </ Telephone > < ClientName > John </ ClientName > </ Travler > < Travler > < Telephone > 665522 </ Telepho ...Show All
bilalso Instrumentation problems using latest Jan 2006 version of Enterprise Library
Has anyone ever tried instrumenting a component using InstrumentationListener and InstrumentationProvider from the latest Enterprise Library I am following a sample code from the documentation but it fails during run-time when I try to raise OnDbConnect event from the code below. The error that I get is "Object reference not set to an instance of an object". I am sure it is an easy fix but I cannot seem to find what is wrong. ObjectBuilder is supposed to link an OnDbConnect event from the InstrumentationProvider with the function ConnectObserved() from the InstrumentationListener, but that is clearly not happening :-( Here is the code: public partial class Form1 : Form { public Form1() { InitializeComponent ...Show All
Bryan Stone multithreading with networking
Hi, I have an application that uses a socket dll (classical dll). This dll is written in Winsock vb6, and it connects to server over tcp and send and receive data. I have two identical threads in my program that create instance of a class in the DLL to use it to send data over tcp. These two connect to same Ip, port, and does same tasks, the only difference is that the first one reads top half of a db table and other one reads bottom half. Now, I see that these two take turns in sending data. When first one starts, other stops and when other starts, the first one stops. Any ideas why they behave such a way I have 1 million records, and I created two threads to make it faster. Thanks in advance, Noorul ...Show All
BlackManWah What is the connection string to write for importing mixed data from excel sheet to data grid
Please help me about this issue, so that I ll be glad to u.I used IMEX=1.but it is working for some limited rows Hi Luis, Thanks a lot for ur response.actually my client wants to not to modify the registry key TypeGuessRows value due to some security purpose.Is there any other way for overriding TypeGuessRows.I also referred Microsoft msdn and used MaxScanRows =0 in extended property to scan all the rows but it has no effect .Have u any idea about this . Thanks & Regards, Manoj Hi Paul, Many many thanks.I ll check this tomoroow.Now just office work finished.Again thanks for ur cooperation with regards, Manoj Hi Paul, Many many thanks for helping about this issue.If u have any other idea wi ...Show All
