all groups > dotnet component services > february 2004
Filter by week: 1 2 3 4
Use of static methods
Posted by Ohad Young at 2/29/2004 11:58:22 AM
Hi,
I was wondering if I can use static methods in a class that derives from the
ServicedComponent.
The expected callers of my class will be only other .NET clients and the
static methods require COM+ services such as support for automatic
transactions.
What are the restrictions or recomme... more >>
Using EnterpriseServices with Remoting
Posted by Manfred Steyer at 2/29/2004 11:09:43 AM
Hi!
I want to use a serviced Component using JITA and Object Pooling as a server
activated remoting component, as ServicedComponent inherits
MarshalByRefObject.
As the Component uses JITA and Object Pooling, it's stateless.
I'm wondering, wheter I should export it as a "Single Call" or a
... more >>
Debugging issue
Posted by Shaun Ram at 2/29/2004 9:01:16 AM
Hi, I have a certain problem & looking for some suggestion please:
1. I created DLL (Class Libraries Managed code)using VB.NET which are
deployed onto the client.
2. If the client encounters a problem, in order for them to realize if
it was a problem with the DLL or their coding they ask for t... more >>
ObjectPooling attribute
Posted by Raghu at 2/27/2004 2:16:37 PM
We have a situation where object pooling may be used or not and it will be
decided by the machine on which our serviced component is installed.
The documentation for ObjectPoolingAttribute indicates that if a serviced
component is stamped with this attribute, it should not be unchecked in COM+
... more >>
AutoComplete and ContextUtil.DeactivateOnReturn
Posted by Raghu at 2/26/2004 2:08:58 PM
What is the difference between AutoComplete attribute and
ContextUtil.DeactivateOnReturn method? I would like to use AutoComplete.
However I want to find out if stamping a method with AutoComplete is less
efficient than calling DeactivateOnReturn method when using
non-transactional serviced comp... more >>
Transactions in COM+ with Non-Transactional Components
Posted by andre.henriksson NO[at]SPAM knowit.se at 2/26/2004 7:31:22 AM
Hi,
I'm a bit confused over how transactions work with managed code
components and .Net COM+ components. All papers and postings I've
found say that if a .Net Serviced Component calls a non-serviced
component any transactions will be ignored started from the serviced
component.
However, t... more >>
Need to create a multi-threaded component that streams file from remote server to asp.net
Posted by dotnet NO[at]SPAM mcenteeconsulting.com at 2/25/2004 6:40:38 PM
I'm a dotnet newbie and have been developing some web applications in
asp.net. I have a requirement to load files from a remote file cache
server (many of them actually) to a web image viewer. The files can
be sensitive and because of that I can not use a virtual directory to
access them. A c... more >>
DCOM Optimizations in EnterpriseServices
Posted by Brian Tyler at 2/25/2004 10:15:20 AM
Short Question:
Is there any way to shut off the "DCOM optimization" that is used when
making a remote call from a .NET client to an ServicedComponent?
Longer Version:
From the recent MSDN article
(http://msdn.microsoft.com/msdnmag/issues/04/03/ExceptionsinCOM/default.aspx
) and from a blo... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Throwing a custom exception from the constructor
Posted by Chris Bernholt at 2/24/2004 5:00:13 PM
Is it possible to throw a custom exception from the constructor of a com
component? I always get an Invalid Pointer exception when I throw from the
constructor. Anywhere else, my custom exception comes through fine.
-- Chris
... more >>
RE: COM+1.5 Application Root Directory
Posted by TheT8 at 2/24/2004 10:54:27 AM
Does anyone know how to programmatically configure the Application Root
Directory for a COM+ 1.5 Server Application in .NET (VB or C#)??
I came across a great blog explaining how to use a config file by specifing
the the application root directory and then just ensuring that a manifest
file an... more >>
ASP.NET Question Regarding COM+ vs Web Services
Posted by William at 2/24/2004 1:26:24 AM
First I am a COM+ newbie.
1. How can I access COM+ applications from ASP.NET?
2. Why use COM+ instead of a web service, transactional support?
Thank In Advance.
... more >>
Configuration with COM+ Applications
Posted by zimmy at 2/23/2004 2:29:27 PM
Hi,
how I can assign a config file to my COM+ assembly. The problem is that COM+
assemblies are DLLs and *.config files are asignable only to EXE files. I'd
like to use the config file for trace listeners and <appSettings>.
Best regards,
Torsten
... more >>
Transaction error...Either enlist this session in a new transaction or the NULL transaction
Posted by bobben at 2/23/2004 12:57:04 PM
I am doing some database work, nothing fancy, just creating som new rows and
stuff. When I get this error.
Distributed transaction completed. Either enlist this session in a new
transaction or the NULL transaction
Exception Details: System.Data.SqlClient.SqlException: Distributed
transacti... more >>
Workflow in ASP.NET ?
Posted by Paul at 2/22/2004 9:52:38 AM
Hi.
I asked this one before without any response, but I'll give it ago.
In Commerce Server they have a pipeline editor which runs a series of
components, the main drawback is that it doesnt support strong names or any
web-interface programming, so changes need to be made from the admin
uti... more >>
TransationObtions: Disabled vs. Supported
Posted by Manfred Steyer at 2/21/2004 11:23:28 AM
Hi,
Can anyone tell what the different between Diabled and Supported is ?
Both start no transaction but can use the caller's transaction - But I
don't see any differences ...
Thanks and Best Regards,
Manfred
... more >>
Combobox in propertygrid?
Posted by Daniel at 2/20/2004 6:38:31 PM
How do I use a combobox in a propertygrid without using enum ?
Any suggestions?
... more >>
DataSet ->> DataReader
Posted by Dave Cook at 2/20/2004 2:10:00 PM
Is it possible to get a DataReader object from a DataSet ? If so would it
be disconnected ? in other words could I return a populated DataReader
object from a class that contains a DataSet ?
... more >>
COM+ Application Shutdown Cleanup
Posted by Niklas Magnusson at 2/20/2004 11:36:54 AM
I have developed a simple COM+ Component that I´ve enabled Object Pooling
on. It works just fine except that it doesn´t execute Dispose or Finalize
when the COM+ Application is being shut down. What do i have to do ?
The class inherits ServicedComponent by the way.
Niklas
Manacore Softwise ... more >>
Config
Posted by Dave Cook at 2/20/2004 10:45:44 AM
Is it possible for classes to have a config file like app.config ? I
require something like this to store a value that is used in many of my
classes but that value changes from development to live. Obviously when
deploying to live i do not want to go through all my classes changing this
value ... more >>
CreateWindowStation
Posted by Paul at 2/20/2004 9:42:03 AM
Does anyone have the vb code to use this function I have found the API
import for this but not the layout of the structures that need to be passed
to the routine. I'm also looking for vb versions of
- CreateWindowStation
- SetProcessWindowStation
- CreateDesktop
- SetThreadDesktop
- GetGUIT... more >>
Error Handling C#
Posted by Dave Cook at 2/19/2004 4:52:17 PM
What is the best way to bubble errors up from a component/class to the
client application ? I cannot seem to find a 'raise' event as in VB.
I am looking for something like the following:
try
{
// Do Database Connectivity Here
}
catch (SqlException ex)
{
// Raise the error numbe... more >>
Return array from C# COM to VBScript
Posted by ipmccun NO[at]SPAM hotmail.com at 2/19/2004 4:01:37 PM
I'm trying to write a COM component in C# that is then accessed by
VBScript. Furthermore, I would like a method of this COM object to
return an array of Int32s. I've gotten everything working, except
that the items in the array are unusable. If I call IsArray on the
return value, it returns T... more >>
AutoComplete
Posted by Peter Karlsson at 2/19/2004 9:19:07 AM
Hello,
We have a question about the transactionshandler in COM+
We have transaction-objects like
[TransactionAttribute(TransactionOption.Required), JustInTimeActivation()]
public class BookTransaction : ServicedComponent
[TransactionAttribute(TransactionOption.NotSupported),
JustInTimeAc... more >>
Unable to shut down machine when a .net application is running
Posted by kuldeep at 2/17/2004 1:00:16 PM
Hi all,
I have a application developed in C# .net. The problem I face is I am unable
to shutdown my machine
when the exe is running. Windows is unable to close this exe an shut down.
Can anyone help.
Regards,
Kuldeep Pawar
Programmer,
Maximize Learning, Pune.
www.maximizelearning.com
... more >>
COM dll in VB6
Posted by Andry at 2/16/2004 5:24:04 PM
I want to use a dotnet dll in VB6 . This gives error.Page fault in VBA6.dll,
and says that the it has
performed an illegal operation.
How can I fix this??
... more >>
SerializationException - Cannot find the assembly
Posted by bwolohan NO[at]SPAM unicarecorp.com at 2/16/2004 8:10:57 AM
I'm trying to pass a class as a parameter to a method on a
transactional component and I keep getting this error:
An unhandled exception of type
'System.Runtime.Serialization.SerializationException' occurred in
system.enterpriseservices.dll
Additional information: Cannot find the as... more >>
COM+ using Component Designer?
Posted by Raffe at 2/14/2004 1:35:09 PM
Hi all!
I've been playing a bit with Component Designer in Visual Studio.NET. Seems
to me like a great way to build simple data access components using "point
and click". However I can't figure out how to make a component made this way
into a component with transactional support which can be p... more >>
How to perform distributed transaction for two classes?
Posted by Ben Smile at 2/13/2004 3:54:54 PM
Given two transactional .NET Classes
inherited from ServicedComponent:
Class A
Function_A1
connects to database A
delete table A11
update table A12
Function_A2
......
Class B
Function_B1
connects... more >>
status of my COM
Posted by HernĂ¡n Castelo at 2/13/2004 10:57:53 AM
Hello
i have a COM that is called inside an ASP page
i DON'T SEE nothing in the Component Services console
under "View Status": there are not statistic values
my COM just make a connection and then a recordset,
there is no transaction in the COM, its simple...
should i see in the ComSvc Cons... more >>
3rd Party Components
Posted by Dom at 2/12/2004 6:09:28 PM
Hi
Anyone know a good source for 3rd party .net components. Specifically
I'm looking for a library that converts word documents to PDF.
Thanks for your help
Good luck
... more >>
Component services error
Posted by George LAZAR at 2/12/2004 12:33:04 PM
Hello
I'm running Win Xp Pro SP1, IIS 5.1
Every asp or aspx page returns "Server Application Error".
and I can't open Component services from administrative tools. The error
message is "DTC was installed by the SQL server. Please Reinstall!"
I had SQL server 6.5 installed on my computer.
... more >>
Datatable sorting ?
Posted by ali at 2/10/2004 8:19:19 AM
Hi,
How could i sort a datatable in web service side. I tried
following but didn't work.
dataset1.datatable1.defaultView.Sort()="column_name"
... more >>
You made a method call on a COM+ component that has a transaction that ...
Posted by enrico sabbadin at 2/10/2004 3:23:45 AM
this happens when serviced component A calls into serviced component B if
1) both A & B are set to transactin required
2) A & B reside in two different machines
I logged that the call to constructor A takes place and to constructor B
takeplace as well .. and activate take place as well ..
but... more >>
Calling BinaryFormatter:Deserialize(Stream); Asynchronously
Posted by Assaf at 2/7/2004 5:28:43 PM
hi all
SORRY FOR CROSSPOSTING:
i did not know which group deals with this question!
Question:
i am looking to call the following function, ASYNCHRONOUSLY:
Packet p = (Packet)this._BinaryFormatter.Deserialize(this._Stream);
Can it be done?
assaf
... more >>
Regsvcs generates tlb file
Posted by Erik Cruz at 2/7/2004 5:26:54 PM
Hi.
When I run regsvcs to register my component it generates a tlb file. What is
the purpose of this file? Can it be deleted?
TIA,
Erik Cruz
... more >>
info reqd: referencing/using object from AppDomin of an other process
Posted by qpro at 2/7/2004 6:34:07 AM
hi,
if dotnet exe applications A, B and C are running as separate process each
(separate exe process in windows), i want to reference/use an object from
application A's appdomin in application B and C.
can anyone help in the above scenario? is it possible in dotnet?
TIA
qpro
... more >>
Transactional Serviced Component hangs
Posted by crirodmur NO[at]SPAM hotmail.com at 2/6/2004 3:45:02 PM
When I call a transactional ServicedComponent (Transaction: required)
- let´s call it CompA - from a non transactional ServicedComponent
(Transaction: Not Supported) - let´s call it CompB -, the tx.
component does everything, and it seems as if it had just finished
(the counters on the COM conso... more >>
ServicedComponent Experts...
Posted by Kevin Jackson at 2/6/2004 2:33:53 PM
Let's say I'm using the following pattern for my ServicedComponents
No object pooling and JITA turned on
If I use the following patterns do I need to call Dispose?
Transactional components
always calls SetComplete or SetAbort
Non-transactional components
Always calls DeactiveOnRe... more >>
Definitative rule for calling Dispose on ServicedComponents
Posted by Kevin Jackson at 2/5/2004 10:14:01 PM
Should ya or shouldn't ya????
... more >>
COM+ application icons
Posted by rbscheer NO[at]SPAM my-deja.com at 2/5/2004 3:27:38 PM
Hi.
I think I have a very basic question. I tried the COM+ help but could
not find information about the meaning of the different icons COM+
applications can have. Where can I find something about it?
Thanks,
Robert Scheer... more >>
COM+ Win2k Registration Error
Posted by Srikanth at 2/5/2004 9:17:26 AM
Hi,
I have created a simple COM+ application on XP box and compiled the
component with a strong name and with"Register for COM interop" enabled. The
component is then registered on COM+ and I have created an .msi file by
doing an export in COM+ with the following properties:
1. Server applica... more >>
Calendar control in .NET
Posted by Shelly at 2/3/2004 4:59:33 PM
Hi all
I require a calendar control in .NET in Japanese. But how do I convert this
into the year convention followed in Japan, as I understand that it is
different from ours??
Please help me here.
Thanks a lot!!
... more >>
maxpoolsize, minpoolsize from config file
Posted by sriram.rajamanuri NO[at]SPAM wipro.com at 2/3/2004 2:02:51 PM
hi,
I have ClassA:ServicedComponent.
How do i read the maxpoolsize, minpoolsize parameters from a config
file?
All across the web , I get articles which say that this can be
achieved by 'hard-coding' them into the 'ObjectPoolingAttribute' at
the beginning of the class..
THanks
sriram... more >>
Question: Com+ & Thread unsafe dll
Posted by ereldor NO[at]SPAM hotmail.com at 2/3/2004 4:21:28 AM
Hello all,
I've written a c# wrapper (Com+ class library) over a old legacy c++
dll. the Dll is a thread unsafe dll (it is using global variables) and
was supplied to me by a third party company(the code is not available
to me).
Is there a way to adjust com+ so every instance will be in a dif... more >>
|