Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

Mehdi_S

@Mehdi_S
About
Posts
7
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • .Net Remoting with multiple NICs
    M Mehdi_S

    Thank you for the feedback :) First, I have just fixed this by configuring with the machine name instead of the IP address. That is a kind of workaround about that :) To answer your question, there is no use for dual nic actually. I was testing my application on a new machine and I got the error (since it does have 2 network cards) so I was figuring out if I could manage that :)

    C# csharp sysadmin help tutorial question

  • .Net Remoting with multiple NICs
    M Mehdi_S

    Thank you for your feedback. This solution may work but it will not be the best approach. The thing is that we cannot oblige the end users to configure that since that it may affect other applications. I think that this should be handled in the application level and so on it will be transparent to the user. Any idea about how to make that configured in .Net Remoting?

    C# csharp sysadmin help tutorial question

  • .Net Remoting with multiple NICs
    M Mehdi_S

    During my implementation for a client/server application I encountered the follwing problem: Let's say we have a client application C which is the remoting client and that connect to a Server application S which is the remoting server. C has two NICs which are both activated. The problem is when both cards are activated, the client application C is having a hard time establishing a connection with the remoting server S. It seems that the client cannot detect what card to use. Whenever we disable one card, Everything works fine. Some sites adviced to configure the "bind to" attribute but it does not work. Note that when running both application on the same machine, no problem occurs. This occurs only when the client and server application are run in different machines. Does anyone know how to correct this? Thanks in advance.

    C# csharp sysadmin help tutorial question

  • Specifying the xml deserialization order
    M Mehdi_S

    Thanks a lot. that helps much. just anaother question related to the same topic: knowing that I can define the set of types that a set can contains, can I specify the order of types deserialization. For example, I have the classes student and professor that inherit from the class person. the class persons contains the following set

    [xmlarrayitem("Student", typeof(Student)),xmlarrayitem("Professor", typeof(Professor))]
    [xmlarray("PersonsSet")]
    public Person[] PersonsSet
    {
    get;set;
    }

    How can I specify that the professor elements has to be all deserealized before the student elements no matter how they are ordered in the xml document. Thanks in advance.

    .NET (Core and Framework) question xml tutorial

  • Specifying the xml deserialization order
    M Mehdi_S

    Hi, I think I've read about it before butnow I'm needing it, I can't find anything about it. How can I specify the xml deserialization order? Let me give an example. Imagine I have 3 parts in my class "School": classes, professors and students. I need to deserialize the following order (classes->professors->students) no matter how they are written in the xml. Thanks in advance.

    .NET (Core and Framework) question xml tutorial

  • serious problem need serious help Ö
    M Mehdi_S

    I basicly have the same problem: I was trying to set the CurrentCulture of my application to en-US. I used the following source code:

    System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US");
    System.Threading.Thread.CurrentThread.CurrentUICulture = System.Threading.Thread.CurrentThread.CurrentCulture;

    My solution consists in a HMI interface and a dll project. in the runtime mode, the HMI interface is set to en-US (had a label choing it each 1 second for test) but when executing things in the DLL project, I noticied that the CurrentCulture is getting back to fr-FR. I read on the net that when creating threads, we have to change their CurrentCulture too but I'm not creating Threads. In other hands, I'm using delegates for the callbacks. Could they be the source of that? For now, I'm forcing that by adding the 2 lines at the beginning of the procedure I'm using to get numeric input (which are using "." as separation). But this solution is not the best solution I guess. Could anyone help me please?

    Visual Basic

  • Recognizing an object instance after regenerating dinamicly the assembly
    M Mehdi_S

    Hi, I'm working on generating dynamically an assembly to let a user customize things. To do that, I used CSharpCodeProvider to generate the assembly and that worked fine till I encountered the problem of recognizing an instance created with the first version of the assembly after getting a second version. So here are the steps I followed: 1- I generated an assembly containing a class called "Class_1" which just has an attribute called "Name". 2- I created instance of that and added it to a set. For now, I can display all the item of the set (I used a main class Root which is created not dynamically and from which all the dynamic classes will inherit from). 3- I regenerated the assembly after adding "Class_2" which inherits from Root too and have a method that get as parameter a "Class_1" instance and that displays the name of the instance. 4- I created an instance of the second class and called its method with the "Class_1" instance that I created before. Doing that raised the following exception: Object of type 'TestProject_CustomClassesLibrary.Class_1' cannot be converted to type 'TestProject_CustomClassesLibrary.Class_1'. I searched on the net about that and I found multiple things: * Signing the assembly the GAC but when I tried it, nothing changed. * Using domain application but this require stopping the application each time we want to generate I guess (did not tried it by the way). So that's not a solution for me. Is there any solution for that? What should I do to make this work? Thanks for all.

    .NET (Core and Framework) dotnet help question announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups