| Security + Remoting (3 replies) |
| microsoft.public.dotnet.distributed_apps |
| Hi, Using Web Services, IIS handles the security nicely. How does that work, how can it be made to work with Remoting? How can the server side Impersonate the client? The client's WindowsIdentity object can't be passed across to the server for WindowsIdentity.Impersonate() because it carries a pointer to an internal security structure, the Token. Surely there's something I'm missing. Thanks, Quin ... |
|
| remoting event subscription (3 replies) |
| microsoft.public.dotnet.distributed_apps |
| I am trying to create a client that can subscribe then respond to events on a server. I keep getting this message: *** Exception has been thrown by the target of an invocation. mscorlib Only one usage of each socket address (protocol/network address/port) is normally permitted System.Runtime.Remoting *** Relevant parts of the server and client code are appended below. Can someone point out the sim... |
|
| Using COM+ Object Pooling along with ADO.NET Connection Pooling (3 replies) |
| microsoft.public.dotnet.distributed_apps |
| Hello all, I'm in a deep dilemma. I'm writing a serviced .NET component in C# which needs to make use of COM 's object pooling services. That component will open a connection to a SQL database. Now, when opening the connection to the SQL database, I have the chance to configure connection pooling withing my connection string. Now, this is where I'm getting confused: (1) Suppose a client C creates ... |
|
| Stateful v. Stateless-What's everybody doing? (7 replies) |
| microsoft.public.dotnet.distributed_apps |
| Let's assume I have an application somewhat similar to the Duwamish example. I'm interested in providing a nice OO, stateful interface to the application's logic for my presentation tier developers. What's the best way to do that? Microsoft uses the Business Facade layer as a typical stateless, "function library" type of thing. They make these objects remotable so that you can split the applicatio... |
|
| Manually writing a DataGrid (2 replies) |
| microsoft.public.dotnet.distributed_apps |
| I am trying to write a web application to produce a summary of database contents. A query pulls back a number of rows (say 400) of data from the DB. Many of these rows are about the same subject, many about individual subjects. The business logic in the "code behind" section parses the 400 rows and for each subject generates a string result (a sort of "subject summary"). I want to display the subj... |
|
| Configuring COM+ settings from the code (2 replies) |
| microsoft.public.dotnet.distributed_apps |
| Hello all, I wrote a serviced component with C#. The class signature looks something like this: [Guid("139B0570 97BC 4c0c BE4E 701F29D7CA8D")] [ComVisible(true)] [Transaction(TransactionOption.Required)] [ClassInterface(ClassInterfaceType.AutoDispatch)] [ObjectPooling(true,5,100)] public class CExecTransact:ServicedComponent { ... } As you can see, in the attributes I specifically configure poolin... |
|
| Access to network resources through DCOM (7 replies) |
| microsoft.public.dotnet.distributed_apps |
| Hi, I have following problem: I created small app which uses COM object on remote computer on local network. I am cretaing instance in runtime with: Type t Type.GetTypeFromProgID("progID", "server name"); Known type whatever (somecast)Activator.CreateInstance(t); and this is working fine, remote object is created and I can use it. Remote object has some functionality to open some file (for readinf... |
|
| COM+ Shared Property and IIS (2 replies) |
| microsoft.public.dotnet.distributed_apps |
| Hi, I'm having a little problem that I'm hoping someone can help with. I'm developing an enterprise component that utilises COM Shared Properties. This part is working great in Windows forms applications. The problem I am having is when I call the same component from a web service, I get an exception when retrieving the shared properties value: System.AppDomainUnloadedException This is the code: D... |
|
| WebRequest & Credential (2 replies) |
| microsoft.public.dotnet.distributed_apps |
| When using creadentials with WebRequest, the data is always sent twice on the wire. (Seen with the Network monitor) The first time without the credentials and the second time with the credentials provided. This goes for everything including a PUT. In other words, if you are uploading large files they are sent twice, very inefficent and painful for modem users. How to avoid this situation? What is ... |
|
| DotNet Bug when closing a form using the .close method (2 replies) |
| microsoft.public.dotnet.distributed_apps |
| When using the .close method the form is not completeley disposed even if the .dispose method is called immediately after. I have a simple button click the calls the me.close then the me.dispose with a loop after. The loop should never run becuase the form should be disposed and should no longer exit. Instead the procedure keeps running and executes the loop after the form is already gone. If I ch... |
|
| UDP and Multithreading dilemma (3 replies) |
| microsoft.public.dotnet.distributed_apps |
| Hi, I'm using UDP Multicast (across a Mutlicast Group address) to communicate between instances of my client app. Each client app can send messages via UDP, and has a dedicated Listening thread waiting for incoming messages. I'm not sure how to exit the app gracefully, because the listener.Receive(groupEP) line (see below) blocks the Listening thread. Hence, I can call ListeningThread.Abort from t... |
|
| DAAB help (2 replies) |
| microsoft.public.dotnet.distributed_apps |
| I try to launch a stored procedure CREATE PROCEDURE [sp Anagrafica INSERT] @ID Anagrafica int out, @Codice Cliente char(6), @ID TipoCliente int, @Nome varchar(50), @Cognome varchar(50), @Societa varchar(50), @Indirizzo Spedizione varchar(50), @Civico Spedizione varchar(50), @Citta Spedizione varchar(50), @CAP Spedizione char(5), @Provincia Spedizione char(2), @Nazione Spedizione varchar(50), @Tele... |
|
| How to dispose the serviced component? (6 replies) |
| microsoft.public.dotnet.distributed_apps |
| Hi to all I have a serviced component with following configuration Transaction(TransactionOption.Disabled), JustInTimeActivationAttribute(False), ObjectPooling(True), Synchronization(SynchronizationOption.Disabled), ComponentAccessControl(True), InterfaceQueuing(False), ConstructionEnabled(False), EventTrackingEnabled(True), MustRunInClientContext(False) I have a function in this component which r... |
|
| Using ThreadPools in ASP.NET (2 replies) |
| microsoft.public.dotnet.distributed_apps |
| Hi, I have an ASP.NET application where i want to invoke a method of a .NET component asynchronously. I followed 2 approaches for implementing the same First one is using delegeates from the code behind of ASP.NET Second one is using ThreadPool.QueUserWorkItem of thread pool class. I wanted to know pros and cons of each method and which is efficient. TIA, Sandy |
|
| FileSystemWatcher (2 replies) |
| microsoft.public.dotnet.distributed_apps |
| How must I set the FileSystemWatcher in VB.Net up to watch for the creation of new folders in a specified folder. I do get it right to watch for new files created, but when a folder is created of copied, the watcher does nothing. Please help. |
|
| Application Blocks Output Paramater (2 replies) |
| microsoft.public.dotnet.distributed_apps |
| Good Morning, I am trying to obtain the value of an output parameter through the Application Block. I have performed the following steps. 1. obtinated the parameter array from the GetSpParameterSet passing in Stored Procedure Name. 2. Changed the output parameter from the InputOutput parameter that it defaulted too. paramList(1).Direction ParameterDirection.Output 3. Assigned the input paramater a... |
|
| ASP.NET or ASP (7 replies) |
| microsoft.public.dotnet.distributed_apps |
| Is it a good idea to use ASP.NET or ASP at the moment? Which one is more compatible with browser at the moment? |
|
| mistake in code of sample duwamish. (5 replies) |
| microsoft.public.dotnet.distributed_apps |
| in data access layer , classes implements Dispose wrongly. public void Dispose() { Dispose(true); GC.SuppressFinalize(true); // as a service to those who might inherit from us } GC.SuppressFinalize(true); This have to be GC.SuppressFinalize(this); I think .Am I wrong ? |
|
| Accessing SQL Server in Web Service (7 replies) |
| microsoft.public.dotnet.distributed_apps |
| Hi I am attempting to create a connection to a SQL database in a web service. I have tried and failed using 2 methods; 1. sSource "Provider SQLOLEDB;Server local;Database TWO;UID x x;PWD xxx" Dim myConn As New OleDbConnection(sSource) myConn.Open() *** When this code executes I receive the message: "SQL SERVER DOES NOT EXIST OR ACCESS DENIED" 2. myConn New SqlConnection("Initial Catalog Northwind;... |
|
| Activator.CreateInstance not working well (9 replies) |
| microsoft.public.dotnet.distributed_apps |
| I'm doing the typical remote instantiation here but I keep getting a Cast exception on line 3. Anyone able to do this? Type t Type.GetTypeFromProgID("Group1DLL.clsGroup1", GroupOneServer, true); object groupOneRemoteObj Activator.CreateInstance(t); clsGroup1 groupOne (clsGroup1)groupOneRemoteObj; |
|
| Debugging a Dynamically Loaded Assembly (3 replies) |
| microsoft.public.dotnet.distributed_apps |
| I've got some code that loads an assembly from a Url and opens a form like so... Container Assembly.LoadFrom System.Configuration.ConfigurationSettings.AppSettings["ContainerUrl"]); ContainerType Container.GetType("Container"); Application.Run(Activator.CreateInstance(ContainerType) as System.Windows.Forms.Form); I would like to be able to interactively debug my newly created instance in ..Net. Th... |
|
| Problem with queued components accessed from .NET client in C# (2 replies) |
| microsoft.public.dotnet.distributed_apps |
| Hi, I have a C# client that invokes a COM queued component and then 'releases' it (more exactly it releases the recorder) using IDispose or ServicedComponent.DisposeObject(). The problem is the recorder does not send the message at the time of releasing it, as documented. Only when the client process exits the message is sent to the queue (I can see it in the browser) and then the COM component ge... |
|
| Remoting Possibilities (2 replies) |
| microsoft.public.dotnet.distributed_apps |
| Hi, I have a distributed .NET based app starting and I am looking at remoting and how to do it. I have a number of problems I have encountered while prototyping and a few ideas. Firstly, as background, of my classes, some implement IList and they all inherit from MarshalByRefObject and they are to be CAOs hosted in IIS. My two options and problems/ideas are below... 1. The soapsuds route After man... |
|
| Convert image dimension under COM+ with .NET assembly (2 replies) |
| microsoft.public.dotnet.distributed_apps |
| Hi! i'm trying to do the following thing, i have an image on jpg file and i want to convert the image dimension and save it back to a file. i used the following code: /* this.img System.Drawing.Image.FromFile(imagefilename); this.bmp new System.Drawing.Bitmap(this.img,new System.Drawing.Size(width,height)); this.bmp.Save(newimagefilename); */ ok, now it workes fine using standard windows forms app... |
|
| Walkthrough - Add Web Ref problem (6 replies) |
| microsoft.public.dotnet.distributed_apps |
| Hi: I'm doing the walkthrough for distributed apps in VS.NET, using VB and when I get half way thru, at the point where one is to add a web reference, I can find the Authors WebService.vsdisco file, but it doesn't return a web page, rahter, the following errors. Any ideas as to what is wrong with the disco file? or other problem? Thanks, Paul ..................................................... W... |
|