Thanks, I didn't try but it seems to work. I did an workaround and now works... :-) Tks... Wender Oliveira .NET Programmer
Wender Oliveira
Posts
-
SerializationException With DataTable -
SerializationException With DataTableSebastian, thanks for your attention First it throws an exception about Serializable Attribute not found, so, I marked all my datatable classes as [Serializable()]. Then, I tried again and got that exception. I tried to reimplement ISerializable interface but I didn't understande how to do this. Wender Oliveira .NET Programmer
-
SerializationException With DataTableHello, I'm trying to access a DataTable from a Typed Dataset through Remoting but when I call my method it throws the follow exception: [SerializationException] The constructor to deserialize an object of type TBPerfilDataTable was not found. But, when I try to return the full filled typed dataset it works... It only doesn't works with DataTables. Any idea? Wender Oliveira .NET Programmer
-
about CrystalViewerThis is because you didn't set a report to your control... You must set the property "ReportSource" with your Report Object, Path of RPT file or Enterprise Document. Wender Oliveira .NET Programmer
-
about CrystalViewerWhere is your code? ;P Wender Oliveira .NET Programmer
-
Crystal Reports - Java Applet Viewer, ActiveX Viewer and DHTML ViewerHello, I'm using the Crystal Reports Viewer that comes with VS2003 but it just works with DHTML and I need to visualize my Reports with Java Applet and ActiveX (both). I heard that it's possible but I don't know how to begin. Can someone help me? There's somebody that uses these viewers? Regards Wender Oliveira .NET Programmer
-
Download and PasswordHello, I have a page and I need that to download some files the user must to type his password. How to lock a folder for download only with pass? Wender Oliveira .NET Programmer
-
Client/Server COM+ ApplicationHello guys, I'm trying to make a client/server .NET com+ application... My com+ class is done and enterprise services really knows it like com+ but when I try to "Export" this application at enterprise services it just enables me to Export as Server Application and I want to Export as Application Proxy. How to export a .NET COM+ class at enterprise services as an application proxy or how to make this communication beteween 2 pcs. Thanks... Wender Oliveira .NET Programmer
-
Client/Server COM+ ApplicationHello guys, I'm trying to make a client/server com+ application... My com+ class is done and enterprise services really knows it like com+ but when I try to "Export" this application at enterprise services it just enables me to Export as Server Application and I want to Export as Application Proxy. How to export a .NET COM+ class at enterprise services as an application proxy or how to make this communication beteween 2 pcs. Thanks... Wender Oliveira .NET Programmer
-
How to hide a inherited method or property?Hello, just look this class. public class MyClass : ArrayList { public MyClass () {} public override int Add(object value) { return base.Add (value); } } right, how to hide this method or make it private? I don't want to see this method at intelisense when I call MyClass methods and properties. tkx Wender Oliveira .NET Programmer
-
Assembly PathLets supose that I have 2 applications, one at C:\app1 and another at C:\app2. At application 2 I have 2 assemblies, app2-1.dll and app2-2.dll. App2-1.dll have a reference to app2-2.dll, so app2-1.dll needs app2-2.dll to work correctly. Ok, at my app1 I use the following code: System.Reflection.Assembly assembly = System.Reflection.Assembly.LoadFile(@"C:\app2\app2-1.dll"); Type classType = assembly.GetType("app2-1.MyClass",true); At this time I've an error. When my assembly app2-1 tries to call some method from my app2-2 that is referenced it doesn't find my app2-2.dll. How to change my default assembly path when load it? something like this... System.Reflection.Assembly assembly = System.Reflection.Assembly.LoadFile(@"C:\app2\app2-1.dll"); assembly.DefaultPath = @"C:\app2\"; Some Idea? Tkx PS: This property DefaultPath doesn't exist... Wender Oliveira .NET Programmer
-
HttpChannelHello, a simple question (or not), I want to register more than 1 channel http at the same application. I just want to do something like this: System.Runtime.Remoting.Channels.Http.HttpChannel ch1 = new System.Runtime.Remoting.Channels.Http.HttpChannel(8100); System.Runtime.Remoting.Channels.Http.HttpChannel ch2 = new System.Runtime.Remoting.Channels.Http.HttpChannel(8101); System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(ch1); System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(ch2); Or a way for change the channel name. tks Wender Oliveira .NET Programmer
-
.NET Remote - Activator.GetObjectI read my client configuration from a config file, and it opened my channel sucefully. But, I still have to pass my url string at Activator.GetObject... well, I want to call my activator.getobject without to pass the url or get the url dinamically with channelservices. PS: My object isn't know at client side, so I can't do just a MyObj o = new MyObj(); I need to do something like this MyObj o = (IObj)Activator.GetObject(typeof(IObj),"tcp://localhost:9999/MyObj"); but without this url. I want to use the channel that is already opened by RemotingConfiguration.Configure(file). Thanks so much Wender Oliveira .NET Programmer
-
File to byte[ ]just change your max file size and filepath... const int MaxSize = 1000; string FilePath = @"C:\test.txt"; byte[] b = new byte[MaxSize]; FileStream f = new FileStream(FilePath,FileMode.Open); f.Read(b,0,(int)f.Length); Wender Oliveira .NET Programmer
-
.NET Remoting ReferenceThanks Alex... This is what I want to know but not what I want to read. I'm doing like you said and I was hopeful to find another way... like webservice... you just add a web reference and all those classes can be found by vs.net ... Thanks again... Wender Oliveira .NET Programmer
-
.NET Remoting ReferenceSorry... lol I want to make a new instance of a class that exists only on my remote server... I don't want to copy the dll that has this class inside to my client server... Wender Oliveira .NET Programmer
-
.NET Remoting ReferenceI have a class Client (client.cs) that is serializable and a class RemoteMethods (MarshalByRefObject) with a method public static Client getClient(int clientID). Ok... now the question... how to add a "remote" reference to Client class. I want to access this class without need to have the Client's dll on my client side I want to access this referencing it on another machine... This is possible? Regards.... Wender Oliveira .NET Programmer
-
Shifiing of custom controls from one to other machineTry to add reference to System.Design.dll... this lib doesn't shows on Visual Studio when you go to Add Reference. So you must to browse it on Framework folder Wender Oliveira .NET Programmer
-
.NET RemotingHello ppl... I still trying to build my Remoting Application. And now I need ideas of how to make my communication secure between my web server and my application server (component). Somebody knows how to make it secure? I want to use a TCP Channel. I read some about Trusted Subsystem and I wanna know if this is what I really nedd. Someone has a code of .NET Remoting Trusted Subsystem? Thank you all.... Wender Oliveira .NET Programmer
-
Remote Application (Proxy)Thanks Heath, I'm reading this Remoting overview. But, let me try to explain a few better. I know that maybe you will say to ask it on ASP.NET forum. I have an web application and for security reasons I need to access my components (layers) on another machine... My Web application will talk to a dll on my component server and this dll will talk with my db and return the result to my web application. How to do this with an easy way? At suffering times, with vb, it would be possible by adding a dll on component service and making its msi instalation and adding a refference to that dll on web application. This is made with connection spool, ssl, authentication, etc... Do you know if exists some way to do this with C#.NET dlls? Wender Oliveira .NET Programmer