Answer Questions
Rockn Receiving unexpected OutOfMemory exceptions
I have a (nearly) released commercial application built in .Net 1.1. At the high level, it is a protocol proxy. Needless to say, it creates and uses many sockets. It is running on a 2003 Std Edition SP1, 2MB memory with 4MB virtual and 2 hyper-threaded XEON CPU’s. and is configured to use server mode GC via the following in the .config file. <runtime> <gcServer enabled="true"/> </runtime> The customer has ...Show All
FranklinYeung Cannot unload assemblies that you create and load by using script in XSLT
This "design limitation" of .NET framework 1.0 causes huge memory leaks when using script in xsl stylesheets because the framework creates an assembly that it can't unload without complete recycle of the application. Anyway, this is well described and documented in article http://support.microsoft.com/ id=316775 The question I have is: Does anyone know if this has been fixed in .NET framework 2.0 Thank-you for your consider ...Show All
JasonBeckett ADO.NET/Access DB Insertion Exception
I’m working with an Access Database and ADO.NET. I have a record insertion routine that works on some tables and not others. The exception is “syntax error in Insert Into Statement” and it’s from an improperly constructed string. Public Function InsertRecord( ByVal NewRow As DataRow, ByVal Table As DataTable, Optional ByVal Update As Boolean = True ) As Boolean 'works NewRow(DataRecords.ciRecordNum) = Ta ...Show All
desperate108146 Deserializing Delegates/RuntimeMethodInfo
I wrote a custom formatter that serializes events. Serializing events results in a RuntimeMethodInfo class being written out to the stream. RuntimeMethodInfo does not have an appropriate constructor for deserialization so ObjectManager.DoFixups() fails with an exception. How do you deserialize events Thanks, Ray I'm not sure how IObjectReference would really help. The problem isn't that you're (de)serializing ...Show All
rvenu SocketException: Handle is invalid??
I have an application using Remoting and it started giving me intermittent errors a few days ago. This application has been running just fine for several months and still seems to run OK in our production environment, but is failing on my development workstation. I am concerned and need to confirm the cause of the issue to determine if it is something specifically wrong with my workstation. It fails when calling a remote method with a ...Show All
Zwheeler unmanaged c++ class in c#
Hey there guys, I have been using c# and c++ for sometime now and have found it to be alright However, recently I needed to instantiate a c++ class, stored in an unmanaged dll in c#. And since then, have got nowhere. Does anyone know how to instantiate an unmanaged c++ class, in c# And if possible without having to use c++ with managed extensions Yours - Ali Hi there Paul I'll have a go at creating ...Show All
Bravo How can I set PIN programmatically to disable raising a dialog asking for a smart card pin?
Hi, I want to decrypt a data using a private key, stored on a Smart Card. I want to disable raising a dialog asking for a pin. There is my sample code: CspParameters cspp = new CspParameters (); cspp.KeyContainerName = "MyKeyContainer"; cspp.ProviderName = " Schlumberger Cryptographic Service Provider "; // My Smart Card PIN is "1111" System.Security. SecureString ss= new System.Security. SecureString (); ss.AppendChar( '1' ); ss.A ...Show All
Steve Cowell Transfrom Memory XML and send output to client
So i am loading a base XML file. Modify this file in the memory, load an XSL that should convert it to a nice HTML page. however, i have no clue as to how i can send the transfrom results to the client! here is what im doing: //the classes public abstract class XMLWorker { protected XmlDocument xmlDoc = new XmlDocument(); protected XMLWorker() { } } public sealed class XMLPageCore : XMLWorker { public XMLPageCore(string Path ...Show All
DWhobrey Sending and ArrayList to Client PC
Can someone please help me. I would like to send an arrayList of objects from server to a client using remoting. I am fairly new to remoting and I can send one object from server to client but I dont know how to send a collection. I have tried with a DataTable and it works but I would like to use a collection instead. Thank You. As long as all objects you want to populate ArrayList with support serializario ...Show All
wpwood Transferring Data between DataTables
How do I import rows from one datatable to another.Calling the ImportRow function imports the rows at the end of the datatable.I want to be able to import it at a specific index.Data is displayed using a DataGrid. I tried using InsertAt function but as I have to add one row at a time iterating thro the loop thows an Exception.(System.ArgumentException - row belongs to another table). Is this even possible. if so where do I specify the ind ...Show All
CRames InsertCommand fails because ??
I'm using an OleDbDataAdapter to insert rows into an Access database. I set up the InsertCommand to update 8 fields and everything worked fine. Then I added a 9th field and I got the error message: "An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll" I tried going back to 8 fields, but I replaced one of the 8 fields with the 9th field. This also worked fine, so it seems that I must be ...Show All
Harshvardhan Puzzling CAS Issue
I have an application that uses remoting. I have strongly named every assembly in the application. I have granted FullTrust based on the key used for strongly naming. (I did this by creating a code group with the membership criteria being the public key that the assemblies are signed with.) I have done this on both the remote and local systems. This application can be run from a local disk (no problem), a remote disk (network share - big proble ...Show All
Jameskla dynamically setting the SelectParameters of an ObjectDataSource
Is it possible to dynamically set the SelectParameters of an ObjectDataSource control in the code behind I know this can be done if you handle the ObjectDataSource’s Selecting event. i.e Protected Sub odsReportList_Selecting( e ………. ) Handles odsReportList.Selecting e.InputParameters("reportGroup") = "Expenses" End Sub However, I want to do this in other functions and event ...Show All
LLLLL Authentication while accessing webpages in different webapplications
Hi all, I have three web applications[A,B,C]. A webpage from A application accesses a webpage in B application using Response.Redirect() In web.config of A app, authentication is < authentication mode ="Forms"> < forms name ="LoginForm" loginUrl ="members/login.aspx" protection ="All" timeout ="30" slidingExpiration ="true"> </ forms > ...Show All
rjw Get connection string from app.config file
How do i read my connection string from app.config file I also know that connection string is saved in settings.settings, but i don't know how to get value from there either (I found info about this only for vb, not for c#) Here is the app.config file: < xml version="1.0" encoding="utf-8" > <configuration> <configSections> <sectionGroup name="userSettings" type=" ...Show All
