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. General Programming
  3. C#
  4. Getting Authentication Failure error message.

Getting Authentication Failure error message.

Scheduled Pinned Locked Moved C#
visual-studiosysadminsecurityhelp
3 Posts 3 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
    V K 2
    wrote on last edited by
    #1

    I am getting mscorlib:Authentication Failure error message when I open my application. The below piece of code executes while my application opens. I am not understanding why this error is coming up. private void InitializeRemoting(out int RemotingPortNumber) { // Establish server channel sink provider BinaryServerFormatterSinkProvider svrSinkProvider = new BinaryServerFormatterSinkProvider(); svrSinkProvider.TypeFilterLevel = TypeFilterLevel.Full; // Create and register tcp server channel to listen on a port. m_serverChannel = new TcpServerChannel( "ITViewAppOperations",0,svrSinkProvider); ChannelServices.RegisterChannel(m_serverChannel,true); string PortNumberString = m_serverChannel.GetChannelUri().Split(':')[2]; RemotingPortNumber = Convert.ToInt32(PortNumberString); // Register "BridgeFactory.rem" as singleton well know service types. WellKnownServiceTypeEntry entry1 = new WellKnownServiceTypeEntry(typeof(IdeWMBridge).FullName, typeof(IdeWMBridge).Assembly.FullName, // "AA.IDE.IdeWmBridge" "IdeWMBridge.rem",WellKnownObjectMode.Singleton); RemotingConfiguration.RegisterWellKnownServiceType(entry1); // Get remoting singleton bridge instance. m_ideWmBridge = (AA.IDE.WMBridge.Common.IaaIdeWmBridge)Activator.GetObject( typeof(AA.IDE.IdeWmBridge.IdeWMBridge), "tcp://localhost:" + RemotingPortNumber + "/IdeWMBridge.rem"); SetLifetime(m_ideWmBridge, TimeSpan.FromDays(365 * 100)); m_ideWmBridge.IdeProxy = m_ideProxy; } private void SetLifetime(object obj, TimeSpan LeaseTime) { ((ILease)((MarshalByRefObject)obj).GetLifetimeService()).Renew(LeaseTime); } Please let me know if anyone knows the solution.

    S L 2 Replies Last reply
    0
    • V V K 2

      I am getting mscorlib:Authentication Failure error message when I open my application. The below piece of code executes while my application opens. I am not understanding why this error is coming up. private void InitializeRemoting(out int RemotingPortNumber) { // Establish server channel sink provider BinaryServerFormatterSinkProvider svrSinkProvider = new BinaryServerFormatterSinkProvider(); svrSinkProvider.TypeFilterLevel = TypeFilterLevel.Full; // Create and register tcp server channel to listen on a port. m_serverChannel = new TcpServerChannel( "ITViewAppOperations",0,svrSinkProvider); ChannelServices.RegisterChannel(m_serverChannel,true); string PortNumberString = m_serverChannel.GetChannelUri().Split(':')[2]; RemotingPortNumber = Convert.ToInt32(PortNumberString); // Register "BridgeFactory.rem" as singleton well know service types. WellKnownServiceTypeEntry entry1 = new WellKnownServiceTypeEntry(typeof(IdeWMBridge).FullName, typeof(IdeWMBridge).Assembly.FullName, // "AA.IDE.IdeWmBridge" "IdeWMBridge.rem",WellKnownObjectMode.Singleton); RemotingConfiguration.RegisterWellKnownServiceType(entry1); // Get remoting singleton bridge instance. m_ideWmBridge = (AA.IDE.WMBridge.Common.IaaIdeWmBridge)Activator.GetObject( typeof(AA.IDE.IdeWmBridge.IdeWMBridge), "tcp://localhost:" + RemotingPortNumber + "/IdeWMBridge.rem"); SetLifetime(m_ideWmBridge, TimeSpan.FromDays(365 * 100)); m_ideWmBridge.IdeProxy = m_ideProxy; } private void SetLifetime(object obj, TimeSpan LeaseTime) { ((ILease)((MarshalByRefObject)obj).GetLifetimeService()).Renew(LeaseTime); } Please let me know if anyone knows the solution.

      S Offline
      S Offline
      Saksida Bojan
      wrote on last edited by
      #2

      Where is this exception thrown (At what line) And put your code betwen <pre> and ;</pre>, for better view. This message looks ugly and there are people that will never try reading it.

      1 Reply Last reply
      0
      • V V K 2

        I am getting mscorlib:Authentication Failure error message when I open my application. The below piece of code executes while my application opens. I am not understanding why this error is coming up. private void InitializeRemoting(out int RemotingPortNumber) { // Establish server channel sink provider BinaryServerFormatterSinkProvider svrSinkProvider = new BinaryServerFormatterSinkProvider(); svrSinkProvider.TypeFilterLevel = TypeFilterLevel.Full; // Create and register tcp server channel to listen on a port. m_serverChannel = new TcpServerChannel( "ITViewAppOperations",0,svrSinkProvider); ChannelServices.RegisterChannel(m_serverChannel,true); string PortNumberString = m_serverChannel.GetChannelUri().Split(':')[2]; RemotingPortNumber = Convert.ToInt32(PortNumberString); // Register "BridgeFactory.rem" as singleton well know service types. WellKnownServiceTypeEntry entry1 = new WellKnownServiceTypeEntry(typeof(IdeWMBridge).FullName, typeof(IdeWMBridge).Assembly.FullName, // "AA.IDE.IdeWmBridge" "IdeWMBridge.rem",WellKnownObjectMode.Singleton); RemotingConfiguration.RegisterWellKnownServiceType(entry1); // Get remoting singleton bridge instance. m_ideWmBridge = (AA.IDE.WMBridge.Common.IaaIdeWmBridge)Activator.GetObject( typeof(AA.IDE.IdeWmBridge.IdeWMBridge), "tcp://localhost:" + RemotingPortNumber + "/IdeWMBridge.rem"); SetLifetime(m_ideWmBridge, TimeSpan.FromDays(365 * 100)); m_ideWmBridge.IdeProxy = m_ideProxy; } private void SetLifetime(object obj, TimeSpan LeaseTime) { ((ILease)((MarshalByRefObject)obj).GetLifetimeService()).Renew(LeaseTime); } Please let me know if anyone knows the solution.

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        no PRE tags :~

        Luc Pattyn [Forum Guidelines] [My Articles]


        The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


        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