Answer Questions
SolveIt A problem in transffering data on a cross platform
Hi, I am calling a 2.0 functions from 1.1 through a bridge (using com+ server ). My object implements 2 different interfaces .Each of the interfaces has one function that works with the same global parameter. My client calls the first function by casting to the first interface that contains it. This function inits the global param. Then, I cast my object to the second interface in order to call to its function. This function uses the global parameter but from some reason it is null. as if it was recreated or override. The code looks like : private Type mBridgeType = Type.GetTypeFromProgID ( "SPL.ProjectWrapper.CrossFrameworksBridge" ); private ISourceController mBridgeObject; private ISourceControlEr ...Show All
RobinSpicer "Plus equals" pattern in IL gives incorrect results
When people claim to have found a bug in the CLR, I am normally the first person to tell them to go back and find the bug in their own code, since that is far more likely than the problem being in the CLR itself, given how stable the runtime has been since its release. However, I believe I have isolated a case where the runtime, or something operating at or below the IL level, is behaving incorrectly. (Note: the problem I describe here only occurs in version 1.1 of the CLR; version 2.0 does not appear to be affected) This case evolved from a bug I was having in a VB.NET app, but after disassembling the app and playing with the IL code, I am confident that the problem has something to do with the IL itself. Basically I am performing a "p ...Show All
geertdeprez Get Hardware Detail from Drive Letter
Hi all, May i know how we can get hardware detail from a Drive Letter by using VC++ .Net Hardware Detail are like GUID, Hardware ID, Friendly Name and etc. Regards in .NET 2.0 you can use the DriveInfo class to get a list of all drives installed or mapped on the system. Example: DriveInfo[] theDrives = DriveInfo.GetDrives(); foreach(DriveInfo curDrive in theDrives) { MessageBox.Show(curDrive.Name); } away from this....and into WMI. I see DiskDrive class has the DeviceID and the LogicalDisk has the Name. So somehow you need to perform some similar SQL Join statement or something. Ill see what I can try look in the Win32_DiskDrive class :-) http://www.microsoft.com/downloads/de ...Show All
Vjy String concatenation performance comparison
Hi ppl, a simple question here, consider the two options = String.Concat("string1", "string2", "string3"); and = "string1" + "string2" + "string3"; which one will yield a better performance As I know, string is immutable, so, we cannot change the value inside it without the CLR creating a new string. So in this case, would the second case create a new string for "string1" + "string2", before using this new composite string to concatenate with the "string3" How about the first option, would the CLR actually create just a single new string as the system already know the total number of strings to concatenate Pardon me if I got my syntax w ...Show All
abzA Pass objects as parameters in Web Service?
i'm a newbie to Web Service and i need to do the things below: A simple Web Service with a WebMethod [WebMethod] public RSAParameters ReturnPubKey(RSACryptoServiceProvider s) { return s.ExportParameters(false); } And the client pass a RSACryptoServiceProvider object to invoke the service and get a returned RSAParameters object. I just want to know if it's possible in .NET or are there any alternatives thanks, thanks for your reply, rfreire What i'm doing is try to simulate a CA using Web Service. i can't describe it clearly in English, so would you mind please telling me how to do it It 's troubled me for days. Many thanks, It may be possible, however I don't see too much use of this method.... maybe you want to ...Show All
Jackys How to use SQL command on a dataset?
How can I use sql commands on a dataset created by reading an XML file For example, DataSet mydataset = new DataSet(); mydataset.readxml("myxml.xml"); and I want to use this sql command : "select item, count() from mydataset.tables["order"] group by item " . I tried the SqlCommand, but failed. Do anyone know how to use SQL on a dataset The DataTable has a few options that let you sort and filter to obtain a collection of DataRows, but normally you would use a DataView. Here are a couple of examples: Typed DataSet and Sorting Filtering and Searching a DataTable in ADO.NET - Custom Expressions - ShoppingCart DataSet DataView Sorting Filtering and DataBind ...Show All
LLiu .NET Framework 3.0 ISO - Torrent?
is there a torrent for this i tied using bitcommet http download feature but it does not seem to work too well any other download manager etc suggestions please my dl keeps failing at 50+% and i keep having to start over thanks try using GetRight download manager. http://DotNetWithMe.blogspot.com vikas goyal We're finding that we have a very good download and install rate for those who are using Windows Update on XP SP2 and Windows Server 2003. It went live on Windows update on Jan 29. You will need to go to the normal Windows update website, and then choose custom updates. Then choose Optional Components. If .NET Framework 3.0 is not already installed, then you will have an entry for it. It ...Show All
hye_heena Problem with a configuration file
Hello, I have this configuration file: < xml version="1.0" encoding="utf-8" > <configuration> <configSections> <sectionGroup name="publishers"> <section name="publisher" type="System.Configuration.NameValueSectionHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" allowDefinition="Everywhere" /> </sectionGroup> </configSections> <publishers> <publisher name="HotWired"> <add key="regEx" value="^http://hotwired\\.goo\\.ne\\.jp" /> <add key="pathDestinationFile" value=&quo ...Show All
StephenWalker Performance in DotNet remoting
Hi, Application: We have developed a DotNet Remoting application which acts as a server to Calculate analytics. This server takes inputs from different client applications and respond with the analytics. This server is run on a "Single-call" mode so that each request is created independently for scalability. In some scenarios the requests from the client are sent parallely using different threads to speed up the process. Also, this remoting server uses some third party libraries for calculations which takes a longer time to compute the analytics and these libraries do not support multi-threading. Problem Statement: - Keeping number of users and different requests, Request / Response volume is very high. There are case ...Show All
Le Phare Rouge Setting Application Root Directory during installation
Developing a COM+ EnterpriseServices component. Need to set the Application Root Directory to the install directory in order to read the app.config. How can I teach the installer to set the Application Root Directory of the Server Application to the installation path Google is your friend :). http://www.harper.no/valery/PermaLink,guid,6b127e33-9362-40cd-9ccf-6a68fcc040db.aspx not always lucian, using a jscript to do installation When there are deployment wizards Found another solution create a installer.cs class and implement Install and Uninstall. What is left is finding out the installation folder.... Which I do now with: System.IO.Path.GetDirectoryNa ...Show All
Patrick Sears UnAuthExp in FORM submit thru IE
Hi, My program has to sumbit some data to a website and read the result form it. This process is to be repeated continuously using different sets of data. My problem is that when data is submitted using the following code, it produces an UnauthorizedAccessException at line 70 ( htmForm.submit(); ) when the for loop is in 3rd or 4th iteration, and it never recovers. If I run this in debug mode pressing F10 line by line, it never occurs. This code runs in a separate thread. Thread t = new Thread ( new ParameterizedThreadStart ( new IE7 ().doWork(sLinNames, sURL))); I have tried increasing timeout etc. It is not working. I am running this code in Admin account on Win XP-SP2 machine with IE7, C# 2005. Please help in ...Show All
bzoli Creating XmlTextWriter with Formatting.Indented, and Settings.OmitXmlDeclaration=true
Hi! I want to create a XmlTextWriter object which I can pass to the XmlDocument.Save() method. In the XmlTextWriter class, I want Formatting = Formatting.Indented, and Settings.OmitXmlDeclaration = true. i'm not able to find a way to do both. If i do: XmlTextWriter x = new XmlTextWriter(), then I see that x.Settings == null, and plus its readonly. if i do: x = XmlTextWriter.Create(stream,settings), then "x" is not a XmlTextWriter, but some other class which does not have the Formatting property I'm hoping someone here can help me .. I've been trying for 2 hours with all possible combinations .. and this is getting really frustrating !! Thanks. With .NE ...Show All
RhysDavies Problem with StreamReader
I'm have a problem with the StreamReader that I can not figure out. As I have it set up right now, it will read through a text document. The text documents are created through our network backup utility. The problem that I am having is that when I run the program I am getting "Object Reference not set to an instance of an object". But if I open the text document manually and hit save without modifying the document at all, then the program run perfectly. Here is a copy of the code that is failing: Dim fs As New FileStream(FileAddress, FileMode.Open, FileAccess.Read, FileShare.Read) Dim reader As String = "" Dim streamreader As StreamReader = New StreamReader(fs) Do Until reader.StartsWith("Job Log") ...Show All
JustinA1 Out of memory exception (c#, .net 2003, large images)
Hi, I am developing an application (c#, .Net 2003, Framework 1.1) that deals with large images. The application captures multiple image frames and stitch them up into a large hige-res image. We are looking at 50+ frames and sometimes more than 100 frames of 1024x768 color images. I am also using double buffers for edit purposes. To get an idea of what this application does: beyond the image acquisition and stitching, it is very similar to Paint.Net ( http://www.getpaint.net/index2.html ) in providing tools to draw on top of the image. The program is hitting out of memory exceptions -- sometimes even with smaller images. Documentation on LOH seems to explain this observation well, especially with memory fragmentation a likely cause of ...Show All
katgreen OracleException - PLS-00561: character set mismatch on value for parameter
Hello, I'm currently working on a .NET v1.1 application which utilises the Enterprise Library application blocks (specifically the DAAB) with Oracle. When creating stored procedures that take integer values (IN NUMBER) i have no issues, but when creating a stored procedure that takes a string (IN VARCHAR2) i'm receiving an Oracle exception. I've been scratching my head from searches... Oracle Client Version 8.1.7 (With NLS_LANG set to UTF8 and American WE8I...) .NET v1.1 .NET v1.1 Enterprise Library June 2005 The example Oracle stored procedure is as follows <code> PROCEDURE test_vchar_in ( vchartest IN VARCHAR2) IS BEGIN NULL; END test_vchar_in; </code> I call the stored procedure in c ...Show All
