Similar Threads:
1.Why my remoting app works via local network and does not work via Internet
I have a remoting application that is working normally in local network.
But when i am trying to use it via Internet it does not work.
When I call methods for SingleCall and Singleton objects they works
normally.
But I can`t get a valid reference(proxy) for MarshallByRef objects.
I have tried getting MBR as returned value from SingleCall and tried to
create it as ClientActivatedObject. It does not work.
E.g. If method from SingleCall object returns me an MBR error does not
appear.
But if i try to call a method from this MBR i am getting timeout exception
:(.
May be it is a security problem?
Please help.
thanks in adv
Serg.
2.custom TraceListener accessible via code but not via app.config
I created a custom TraceListener by subclassing a TextWriterTraceListener.
(TextWriterTraceListener has most of what I want already.) My custom
TraceListener works fine when I instantiate it through code. When I attempt
to instantiate it in the app.config file, however, it is not able to find the
class. In the same config file I reference several other standard
TraceListeners that work just fine. Here is the relevant portion of the
app.config file:
<add name="MyListener"
type="TraceSourceGuiApp.MyTextWriterTraceListener"
initializeData="diagnostic.txt">
<filter type="System.Diagnostics.EventTypeFilter"
initializeData="Off"/>
</add>
The exact error is:
ConfigurationErrorsException - Couldn't find type class for
TraceSourceGuiApp.MyTextWriterTraceListener
The error manifests when I attempt to access a different listener in the
Listener collection.
Here is the alternate code version that works just fine:
MyTextWriterTraceListener l =
new MyTextWriterTraceListener("diagnostics.txt", "MyListener");
mySource.Listeners.Add(l);
I initially set this up so the custom listener class is in a separate DLL
but I also tried it within the same project and got the same result.
What is the appropriate way to access a custom listener from app.config?
[Env: .Net 2.0]
3.custom TraceListener accessible via code but not via app.confi
You pinpointed just what I needed; adding the assembly name was what I
needed. Thanks!
For my own edification, I attempted to view the error with the Assembly
Binding Log Viewer as you suggested, but it listed no errors, even after I
cleared the IE cache as the reference page suggested as a troubleshooting
measure. I note, however, that the reference seems to indicate that it will
only notice errors precipitating from a TypeLoadException whereas my issue
manifested as a ConfigurationErrorsException; perhaps the TraceSource masks
the TypeLoadException internally...?
4.Initialization via ctor vs. initialization via assignment
Hi,
say I have an arbitrary class Bar:
1 Bar a;
2 Bar b(a);
3 Bar c = a;
In line 3, is the default ctor called for c _first_ and _then_ the
assignment operator, or is c never default constructed and immediately
initialized with a?
My point is, for complex objects, is it likely that initialization via
assignment is less efficient than via constructor calls? What is the
recommended approach?
--
Matthias Kaeppler
5.Accessing DCOM Server via Service
I do have a C# ASP.NET 2 application that uses a local DCOM Server.
Everything works fine when the DCOM Server Application (an exe) is
started by my application or has already been started by a user on the
system (the ASP.NET user has the correct permissions for the DCOM
Server).
However, when the DCOM Server is already started as a Service (via the
Services MMC) it will not work (there is no error message, I will just
get an empty web page, nothing is written to the event log)?
In my frustration I tried it with a small windows C# application on the
same machine: here it is the other way round. The app will only work if
the DCOM Server is run as a service????
Does someone have a clue, I am stuck....
6. Debug VS.Net Web service from PocketPC app via ActiveSync
7. Debug VS.Net Web service from PocketPC app via ActiveSync
8. Logging to file on remoting server via IIS