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
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to do this configuration programatically

How to do this configuration programatically

Scheduled Pinned Locked Moved ASP.NET
sysadminxmltutorialquestionannouncement
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vishwjeet
    wrote on last edited by
    #1

    <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application name="AuthorizationApp"> <service> <wellknown mode="SingleCall" type="Server.SampleService, Server" objectUri="Server.rem"/> </service> <channels> <channel ref="tcp" port="8001" secure="true" impersonate="true" authorizationModule="Server.AuthorizationModule,Server"/> </channels> </application> </system.runtime.remoting> </configuration> how to set the properties "impersonation" and "authorizationModule" inside my program .. im not using the configuration files.

    C N S V 4 Replies Last reply
    0
    • V vishwjeet

      <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application name="AuthorizationApp"> <service> <wellknown mode="SingleCall" type="Server.SampleService, Server" objectUri="Server.rem"/> </service> <channels> <channel ref="tcp" port="8001" secure="true" impersonate="true" authorizationModule="Server.AuthorizationModule,Server"/> </channels> </application> </system.runtime.remoting> </configuration> how to set the properties "impersonation" and "authorizationModule" inside my program .. im not using the configuration files.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      It's an XML document, so you could presumably use an XmlDocument, and the DOM.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      1 Reply Last reply
      0
      • V vishwjeet

        <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application name="AuthorizationApp"> <service> <wellknown mode="SingleCall" type="Server.SampleService, Server" objectUri="Server.rem"/> </service> <channels> <channel ref="tcp" port="8001" secure="true" impersonate="true" authorizationModule="Server.AuthorizationModule,Server"/> </channels> </application> </system.runtime.remoting> </configuration> how to set the properties "impersonation" and "authorizationModule" inside my program .. im not using the configuration files.

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        This has nothing to do with ASP.NET


        only two letters away from being an asset

        1 Reply Last reply
        0
        • V vishwjeet

          <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application name="AuthorizationApp"> <service> <wellknown mode="SingleCall" type="Server.SampleService, Server" objectUri="Server.rem"/> </service> <channels> <channel ref="tcp" port="8001" secure="true" impersonate="true" authorizationModule="Server.AuthorizationModule,Server"/> </channels> </application> </system.runtime.remoting> </configuration> how to set the properties "impersonation" and "authorizationModule" inside my program .. im not using the configuration files.

          S Offline
          S Offline
          sashidhar
          wrote on last edited by
          #4

          try the below link it may help http://msdn.microsoft.com/en-us/library/59hafwyt(VS.80).aspx[^]

          If It Helps Click It as Answer

          V 1 Reply Last reply
          0
          • S sashidhar

            try the below link it may help http://msdn.microsoft.com/en-us/library/59hafwyt(VS.80).aspx[^]

            If It Helps Click It as Answer

            V Offline
            V Offline
            vishwjeet
            wrote on last edited by
            #5

            Hi, I have aready seen this .. but didn't post it here.. thanks for doing it I got my answer on this link only. I am putting my code for others reference static void Main(string[] args) { //TcpChannel channel = new TcpChannel(8080); IDictionary props = (IDictionary) new Hashtable(); props.Add("port", "8080"); props.Add("secure", "true"); //props.Add("impersonate", "true"); //props.Add("authorizationModule", "AuthorizeUser"); BinaryClientFormatterSinkProvider cp = new BinaryClientFormatterSinkProvider(); BinaryServerFormatterSinkProvider sp = new BinaryServerFormatterSinkProvider(); IChannel chan = new TcpChannel(props,cp,sp); ChannelServices.RegisterChannel(chan,true); RemotingConfiguration.RegisterWellKnownServiceType(typeof(ns_registeruser.cls_registeruser), "ApplicationMain", WellKnownObjectMode.Singleton); Console.WriteLine("Server Started .. "); Console.ReadLine();

            1 Reply Last reply
            0
            • V vishwjeet

              <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application name="AuthorizationApp"> <service> <wellknown mode="SingleCall" type="Server.SampleService, Server" objectUri="Server.rem"/> </service> <channels> <channel ref="tcp" port="8001" secure="true" impersonate="true" authorizationModule="Server.AuthorizationModule,Server"/> </channels> </application> </system.runtime.remoting> </configuration> how to set the properties "impersonation" and "authorizationModule" inside my program .. im not using the configuration files.

              V Offline
              V Offline
              vishwjeet
              wrote on last edited by
              #6

              Here is a better link http://www.codeguru.com/columns/dotnet/article.php/c10253[^]

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

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