Answer Questions
Sam12 Connect to Com Object
Hi, I have a problem and i hope that somebody to help me! I have a application server (executeble written with Delphi) registered as a Com Object. Now i have a windows service written with C# and i have to call methods of Com object. I referenced a COM Object and made a reference. I tryed this ComClass comObj= new ComClass(); // here i start a com object (executeble) comObj.someMethod(..); It's working only when the Com obje ...Show All
Tom Freeland Problem with registry
Hi, Is there class(es) to create/remove a user to access registry I have a problem to register .NET dll for COM interop. I got the "accessed denied" when I using regasm or Assebmly.LoadFile() on window 2003 because the user doesn't have administrator right. I found that happens in HKEY_CLASSES_ROOT\CLSID and It works If I add a user manually in HKEY_CLASSES_ROOT\CLSID. I think I can solve this problem if there is a class to create/remov ...Show All
Mario Guzmán WebService with Threads ... what's the correct way?
Hi! I need develop a webservice for too many concurrent users so i need programing with threads. I'm looking for a simple (or not simple) example, now i have one but don't work very good :P A greeting This question belongs in the Web Services forum. Anyway, why do you worry about infrastructure Providing a scalable execution environment is being taken care of by ASP.NET and IIS. Because I don't know ...Show All
admindba Editing exsisting record
Hey all, I can not seem to find out anywhere how to edit a record in a table. I have already done the add routine, and it works great! When i recall the record and try to update it, it either doesnt update or throws an error. Does anyone know an easy way to do this I am NOT using the TableAdapter for record navigation or adding. _______________________________________________________________________ I have currently tried to update the table in ...Show All
tlindsay45 Using Axis without SOAP
it seems I don't need to understand SOAP at all to use web services 1) all i need is WSDL file --> generate server side skeletons + client side stub. 2) call stub to access remote objects / methods 3) do i have to understand SOAP if i am only user / provider of web services 4) since service / client to access service code can generate using WSDL2Java anyway --> no need to know SOAP at all sorry cuz i am a web serv ...Show All
biloxibeachboy Encrypting the app.config file
My application will use the DataProtectionConfigurationProvider to encrypt my app.config file. I can encrypt the file from within my applicaiton, but I would like to be able to encrypt it outside the application so that the file is encrypted when it is deployed. I know that you can encrypt web.config files with aspnet_regiis.exe. Is there a tool that can encrypt app.config files as well Eric No there is curre ...Show All
Mario Guzmán MDX + .NET Framework 2.0 + VCS Express Edition + Win XP x64
Hi, For any CS code that uses managed D3D : everytime I try to compile an app. w/VCS Express Edition under the 64-bit edition of Win XP, the app. compiles ok but as soon as it is executed an exception message appears telling that the app. is not a real 32-bit native one. As far as I'm concerned, after installing .NET Framework 2.0 under a x64 OS, both versions -32 bits and 64 bits- are installed on the machine. So, it seems that, by d ...Show All
Brennon Bug in MsDataSetGenerator when using empty typed elements?
Hi, Take the following XML file: < xml version = " 1.0 " encoding = " utf-8 " > < root > < object name = " foo " > bar </ object > < object name = " bar " /> </ root > Now use the "Create Schema" command from the VS.NET 2005 IDE. This creates the following (valid) schema: < xml version = " 1.0 " encoding = " utf-8 " > < xs:schema ...Show All
Brandon Eckert Calling Indexer using Reflection
What is the best way to call indexer using reflection Currently I'm using Type.GetMethod("get_Item", ...) and then method.Invoke(obj, args); It works fine, except I have to special case for Array object, where I cast to array an call Array.GetValue(index) Is this the best way What if someone uses IndexerNameAttribute, will it change get_Item to different name Thanks. But how do I get PropertyInfo for indexer ...Show All
Borislav simple xpath expressions question
I use C#. This is my XML file. < xml version ="1.0" encoding ="utf-8" > < Schedules > < Schedule Date ="14/12/2005"> < Location > Place1 </ Location > < Time > 12:00 </ Time > < Description > Set mode </ Description > </ Schedule > < Schedule Date ="15/12/2005"> < Location > Place2 </ Location > < Time > 01:00 </ Time ...Show All
ChristopheGalli N-Tier Application - Question about Static Methods
I'm starting an n-tier application with an ASP.NET 2.0 presentation layer, a business layer, a data access layer, and a SQL Server 2005 database, and I have a question. In the business and data access layers, should I use static methods Or, should I code the classes so that they have to be instantiated I've seen examples of both, and I'm not sure which is the "preferred" or "best" way. Thanks. Th ...Show All
NickGetz Web Services - File Transfer
Hi All, I am using VS 2005 (BETA 2) and a Web Service to upload/download files. I am trying to use the My.Computer.Network.UploadFile and My.Computer.Network.DownloadFile methods. In essence, I have a file (test1.exe) that resides in the same directory as the web service, and would like to save it to a remote computer when the user calls my method. It gives me the following error: System.Net.WebExcepti ...Show All
Marc Young list files sorted by date
this must be easy, but I can't see how to do it. I can list the files I want (see code below) but they are listed in name order. Obviously I could sort them manually afterwards, but that sounds like hard work, any ideas anyone Thanks, Ade ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dim dir As DirectoryInfo = New DirectoryInfo(m_strDirectory & "\Export ...Show All
Eugen T How to list the certificates of a particular user
Hi All, I am developing a module on certificate services. I am using c# 2.0. We have to implement a method for listing the certificates for a particular user. For this I have not found any relevent API either .NET2.0 or win32 dlls (like IcertAdmin,IEnroll,Icertli,etc). Kindly help me. Thanks and Regards srihari This forum is geared toward ADO.Net. I'll move the thread over to the .Net Base Class Library -- hopefully someon ...Show All
Mark Herman Generate Managed Class
hi, in .Net i have used 'Generate Managed Class' to generate win32_printer.vb how can i use this class to get all all the printer names on my computer thanks Take a look at the InstalledPrinters collection that is a property of the PrinterSettings class (System.Drawing.Printing). To enumerate through each name you can simply do the following: Imports System.Drawing ...Show All
