Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by huckfinn19

  1. huckfinn19

    Access a .Net COM object hosted in a COM+ Server in .Net?

    Hi, I have a COM component written in .Net and hosted in a COM+ server application so that only 1 instance of the component will exist on a box at a given time. Multiple different applications will be accessing the COM component: Matlab, VB Script, .Net application, etc... When the COM...
  2. huckfinn19

    WCF: Configure call handling synchronization at method level?

    Hi, I am using WCF in a client-server architechture, my server has a UI and is configured as follows: [ServiceBehavior(UseSynchronizationContext = true, InstanceContextMode = InstanceContextMode.PerSession, ConcurrencyMode = ConcurrencyMode.Multiple)] Meaning that all calls done from my...
  3. huckfinn19

    Cross-domain Active Directory queries

    Hi, thanks for your reply, but the code you sent does the same as mine. I didn't show how I iterate through the results of the FindAll() method, but if you check, the previous calls are essentially the same. The SearchScope property is also set to "SubTree" by default. any other suggestions?
  4. huckfinn19

    Cross-domain Active Directory queries

    Hi all, I am using C# 2.0. Here is my active directory setup: MAIN_DIRECTORY (root) \ SUBDOMAIN1 -> [user1, user2] \ SUBDOMAIN2 -> [user3, user4] From a machine in the SUBDOMAIN1, I want to query users from both subdomains. I am using the following code...
  5. huckfinn19

    How to retrieve web-references URL from config file?

    Hi, thanks for your reply. The thing is, when using the format I mentionned at the beginning of the post, I never need to explicitely configure the web services to point to the URLs specified in the config file. It is done automatically. Using your method would work, but I would have to set the...
  6. huckfinn19

    How to retrieve web-references URL from config file?

    I am using C# 2.0 When creating a new web-reference in a Windows application, Visual Studio creates a bunch of references to the web service in the project. We have moved these references in the App.Config of the application as follows: <applicationSettings>...
  7. huckfinn19

    Dynamic Parameters: setting datasource at runtime prompts login

    Hi, I am writing an application in C#2.0 with Crystal Reports XI Release 2. I am using a report viewer to display reports that need to connect to a distant DB. I need to set the datasource of my report programmatically so that my users don't have to know where the DB is or what credentials they...
  8. huckfinn19

    How to run extremely long stored proc on SQL server in c#?

    Hi all, I need to have a thread that runs a stored procedure that can take up to an hour to process. This task is going to be scheduled to run at night on a DB server and the code that runs it has to be C#. The stored proc runs fine when executed in the query analyser, but I get timeouts when...
  9. huckfinn19

    VS.NET Conditional Deployment of Services

    Hi all, Here is my situation: I have two services I want to package in a single setup program, using VS.Net deployment tools. Both services assemblies have the classes inheriting from System.Configuration.Install.Installer and have the ServiceProcessInstaller & ServiceInstaller configured...
  10. huckfinn19

    Windows form &quot;Always on Top&quot; instead of &quot;TopMost&quot;?

    Hi, I want to have a form to be over all my other windows, but only in my application, not over all the other Windows applications. I also do not want this form to be shown in a modal state because the user might need access to the background windows. The "TopMost" property of a form puts the...
  11. huckfinn19

    Use DataSet.WriteXML to output an XML string without tabs and \n ?

    Hi! I need to output an XML string directly from a DataSet without any "\t" or "\n" in it. Is there a simple way, or do I have to use another XML class to do this? Thanks! Huck
  12. huckfinn19

    Find out if a class is derived from an interface or a base class?

    Hi! Thanks for the answer. What about if I am dealing only with types and not instances? The ultimate goal is a plugin manager in which class types will be registered. They will then be retrived by groups filtrered by their inheritance from a particular interface. This means that in the...
  13. huckfinn19

    Find out if a class is derived from an interface or a base class?

    Hi, I need to be able to find out if a class is derived from a particular interface. I know that it is possible to find out if a class is derived from a base class with the System.Type class with the following code: public class Class1 {} public class Class2 : Class1 {}...
  14. huckfinn19

    Add a column in the DataTable of a DataSet when it's already full?

    Hi! Here's my problem: I currently fill a single column in a DataSet from an SQL DB. I can get up to 10000 records. So I have a Table in the DataSet like this: |MyCol| --------- Val1 Val2 ... The thing is that in my case, it would be very helpful to have another column containing boolean...
  15. huckfinn19

    Programmaticaly cancel a SQL command sent to MS SQL Server?

    Hi Korach, thanks for your answer. Your solution will work fine, the only concern I have with it is that the job might keep running on the distant SQL Server? I might be wrong, I wonder what happens when a connection is closed with the server like it will happen when I call the abort on the thread.

Part and Inventory Search

Back
Top