| BYOT memory leak? (3 replies) |
| microsoft.public.dotnet.framework.component_services |
| I have been using BYOT to enlist ServicedComponent deived classes in a distributed transaction, and I'm noticing an odd problem. After several days, I begin getting 'Out of memory' errors and other sundry COMExceptions at the BYOT.CreateWithTipTransaction call. Checking the task manager, I see that the system's memory usage has grown to some astronomical number, but none of the processes reflect t... |
|
| .NET Framework 1.1 and Windows 2003 Server (2 replies) |
| microsoft.public.dotnet.framework.component_services |
| Hi, i have a question about the new feature in .NET 1.1 called ServerConfig and ServiceDomain. I would like to use them to decide on a method level if a transaction is needed rather then on a class level. My question is if i can use the AutoCompleteAttribute and use bubbling exceptions or do i have to vote for the ContextUtil mehtods? I have write code like these [AutoComplete] public void DoSomet... |
|
| Do all classes I use need to be registered in COM+ (2 replies) |
| microsoft.public.dotnet.framework.component_services |
| We have an ASP.Net application that calls a component/assembly that has 1 out of 5 classes registered in COM with object pooling (default min/max pool size). This COM class ( let's call it COM Class) only has one public method which has the COM property DeactivateOnReturn set to true. Question 1.a) If an ASP.Net page calls the COM Class and the COM Class instantiates and calls methods on the other... |
|
| ReleaseComObject, RCW and ServicedComponent (2 replies) |
| microsoft.public.dotnet.framework.component_services |
| Hi All, I am having the well known problem of my serviced components not being properly released after the client has finished using them. According to the MSDN library, a call to Marshal.ReleaseComObject should solve that problem. That, however, resulted in an exception because the object in question was not an RCW. To remedy this, I tried to import a type library created by regsvcs, but this fai... |
|
| Serviced Component File Access - The given path's format is not supported (2 replies) |
| microsoft.public.dotnet.framework.component_services |
| Hi! When I try access to file from Serviced Component, I catch this exception: "The given path's format is not supported" How can I acces files from Serviced Component? Actually I need read a resource file (*.resource by ResourceReader). Thanks. David Spectorman |
|
| File access from Serviced components (4 replies) |
| microsoft.public.dotnet.framework.component_services |
| Hi! I'm try this code: Dim fs As New System.IO.FileStream("C:\Inetpub\wwwroot\.....\MyFile.resources", FileMode.Open, FileAccess.Read) from Serviced Component class in COM in Server Application. And catch this error: "The given path's format is not supported." What's the problem? How can I Access to my resources files from COM classes ? Thanks. David. |
|
| IDispose and Serviced Components (6 replies) |
| microsoft.public.dotnet.framework.component_services |
| I have a question on implementing Dispose for my serviced components. My application is configured as two separate library applications business services and data services, and has an ASP.NET web UI. The data services tier is implemented using a class factory design pattern, with the factory class returning an appropriate product through a hand full of properties. For data access, I'm using the MS... |
|
| Transactions and error handling (5 replies) |
| microsoft.public.dotnet.framework.component_services |
| I have a transactional component, when it errors the first thing I do is call SetAbort, I then want to call another object to write the error to the database, I have tried using another transactional component, and tried requiresnew, so it creates a new transaction, but it operates it doesnt complete. I have tried using a non transactional component, ie dont inherit from servicedcomponent, but thi... |
|
| ADO.Net and MTS (2 replies) |
| microsoft.public.dotnet.framework.component_services |
| Hi, My problem is that i want to initiate a distributed transaction in c# with ADO.net but i don't want to subcalss my component from ServicedComponent. Is there a way like in c to join a distributed transaction on the MS DTC? Thanks Peter |
|
| HTTP Context access in Serviced Component (3 replies) |
| microsoft.public.dotnet.framework.component_services |
| Hi! How can I access to Server object (Server.MapPath function) from serviced component. I'm try this code: HttpContext.Current.Server.MapPath("...") but HttpContext.Current is NOTHING !!! Thanks. |
|
| ContextUtil.SetAbort (3 replies) |
| microsoft.public.dotnet.framework.component_services |
| I am having a BizTalk Messaging server that calls a Vb.Net Dll to do some database transactions. My problemm is we need to insert data Oracle database tables. Errors information is stored in SQL Server database tables. If Errors occur while inserting data into Oracle tables then I did ContextUtil.SetAbort (i.e Rollback). Later connect to SQL Server database and insert errors in sql server database... |
|
| isolation level and COM+/SQL Server (3 replies) |
| microsoft.public.dotnet.framework.component_services |
| VB.NET Can anyone help? The exact scenario, is call com class which requires transactions needs to change the transaction level as it talks to SQL server 2k I want to pass into a com IsolationLevel As TransactionIsolationLevel, so as to control how the locking happens when I access SQLServer, however theres no property to allow this on the ContextUtil, nor any option to set this via SQLDataAdapter... |
|
| Component not showing method signatures after deploying under COM+ using REGSVCS (4 replies) |
| microsoft.public.dotnet.framework.component_services |
| Hi All, I have created a strong named assembly and added it to GAC When I deploy it under COM using Regsvcs ,none of methods of class are available, Only blank class can be seen in the typelibrary What could e possible reason ? Pls help Code in the class is Imports System.EnterpriseServices Public Class clsTest Inherits ServicedComponent Public Function GiveHelloWorld() As String Return "HelloWorl... |
|
| Pls Help MVP's and others - Urgent - Application main interface doesnot show any methods (10 replies) |
| microsoft.public.dotnet.framework.component_services |
| Out of 6 interfaces of Employee Class, Employee, Object,IDisposable,IManagedObject.IRemoteDispatch,System Enterpri seServices IservicedComponentInfo Employee is not showing any methods under COM , Attached are class and assembly files Any help would really be appreciated Best Regards Manish |
|
| DCOM COM+ .net Security Call Context (3 replies) |
| microsoft.public.dotnet.framework.component_services |
| VB.net Can anyone help I have a com class, which I connect to remotely via an exported DCOM, package. In debug the below code to derive the caller from the SecurityCallContext works, however when I call from a remote client using DCOM it doesnt. The enforce component access checks is on the com package Thanks Dim retVal As String "Unknown caller" 'gets the underlying caller of a com component, nee... |
|
| COM+ Application Status (7 replies) |
| microsoft.public.dotnet.framework.component_services |
| Hi! In VB 6.0 when we create object we can see number of instances in Component Services (MMC). Why he .Net classes instances in COM not seems like VB 6.0 classes (no any status about number of instances, objects, pooled object, running time...). Thanks! |
|
| COM+ Transactions and State (4 replies) |
| microsoft.public.dotnet.framework.component_services |
| HELP! Think i may have uncovered a major design floor in my code!! From what i NOW understand, using transaction means that objects need to be stateless because COM Transactiosn require JIT.... So my current flow of New object Load method(passing in record GUID) read/write whatever properties (all stored in local member variables!!!) Save method Destroy object wont work? Is this true, or does the ... |
|
| Bug with SqlDataReader? (2 replies) |
| microsoft.public.dotnet.framework.component_services |
| We have a .NET (C#) application that uses COM connection pooling to connect to an SQL 2000 database via the SQL .NET client. The data access components populate custom entity objects that are used by the business processes. We recently refactored the data access code to only use data readers since we only require fast, once only, read only, pass of the data (it previously used a mixture of data re... |
|
| Transaction DeadLocks with VB.Net (2 replies) |
| microsoft.public.dotnet.framework.component_services |
| Hope someone can help... I got problems with dead locks with my VB code.... I have an object structure like Service Permissions Permission Processes Process Permissions Permission Tasks Task Permissions Permission Now when i create a save a Service (using the service object) to SQL, I also need to create permissions, and processes (which have permissions). And the processes need to create Tasks (w... |
|
| AppActivate in WebService ? (2 replies) |
| microsoft.public.dotnet.framework.component_services |
| Hi. I have a web service that needs to spawn an application, which works well but I can not seem to use the AppActivate or SendKeys feature to the process, it returns that the process id can not be found. Has anyone else had this problem or managed to find a work aorund ???? pi.FileName "program.exe" p Process.Start(pi) p.WaitForInputIdle() AppActivate(p.Id) SendKeys.SendWait("X{ENTER}") Thanks Pa... |
|
| Calling C# ServicedComponent using Marshal.BindToMoniker (3 replies) |
| microsoft.public.dotnet.framework.component_services |
| Hi, I know how to use BindToMoniker to get an Interface to a queued component and that works great. Somehow, I figured out what the moniker string looks like for that, i.e. "queue:/new:FullClassName". But I have looked and searched every where I can think, and I can't find an example of calling a regular old ServicedComponent using BindToMoniker or any docs on the format of the moniker strings. I ... |
|
| Using Transactions (6 replies) |
| microsoft.public.dotnet.framework.component_services |
| Hi, i'm not really sure if i need to derive my components in the data layer from serviced components to use them in transactions? Here is a short code: [TransactionOption.Required] public class FacadeClass : ServicedComponents { //This will always be the root of a transaction [AutoComplete] public void DoSomething() { DataAccess1 da new DataAccess1(); da.SomeDataAccessCode(); } } public class Data... |
|
| Parent COM+ Object (3 replies) |
| microsoft.public.dotnet.framework.component_services |
| Hi I am fairly new to COM & COM . I have successfully created and used individual COM objects using C#. What I am now doing is as follows: COM Object "A" contains a collection of COM Object "B"s. Creating this relationship is not a problem and is tested and working fine. From "A" I can quite easily get references to the contained "B" objects. What I would like to is the following: From code in "B"... |
|
| A feature request for Server-activated ServicedComponents (11 replies) |
| microsoft.public.dotnet.framework.component_services |
| Having just recently wrestled with a thorny configuration issue involving a setting used by several Server activated apps, I thought I'd post a feature request for the EnterpriseServices team. It would be awfully nice to be able to specify a assembly level attribute that contains the name of a configuration file. That way, instead of having to muck around with constructor strings (imagine having t... |
|
| I had a dream, AOP with ServicedComponents .. :( (9 replies) |
| microsoft.public.dotnet.framework.component_services |
| Hello, I've defined my custom contextattribute, my custom contextproperty, and then injected a custom sink into the sink pipeline to an object inherited from ContextBoundObject. I was trying a way to setup impersonation for components hosted in COM via attributes. things works ok as long i inherit from ContextBoundObject, I then inherited from ServicedComponent (which inherit from ContextBoundObje... |
|