How to fix 'IdentityModel.dll not found'?I get a “An attempt was made to load a program with an incorrect format” error on a SQL Server replication projectHow do I enumerate an enum in C#?The located assembly's manifest definition does not match the assembly referenceWhat does MissingManifestResourceException mean and how to fix it?How exactly does a WSP deploy a dll internally.Net picking wrong referenced assembly versionCould not load file or assembly or one of its dependenciesWhat is a NullReferenceException, and how do I fix it?Could not load file or assembly 'System.Web.Http 4.0.0 after update from 2012 to 2013[A]System.Web.WebPages.Razor.Configuration.HostSection cannot be cast to… web.config issue

Why should public servants be apolitical?

Does bottle color affect mold growth?

Is it really ~648.69 km/s Delta-V to "Land" on the Surface of the Sun?

Scripting a Maintenance Plan in SQL Server Express

Looking for a new job because of relocation - is it okay to tell the real reason?

Finish the Mastermind

Is it allowed and safe to carry a passenger / non-pilot in the front seat of a small general aviation airplane?

Where to pee in London?

Is multiplication of real numbers uniquely defined as being distributive over addition?

Why use regularization instead of decreasing the model

Whats the name of this projection?

Why do private jets such as Gulfstream fly higher than other civilian jets?

Casting Goblin Matron with Plague Engineer on the battlefield

How to avoid ci-driven development..?

Is it double speak?

must a ring (commutative, with 1), in which every non-zero ideal is prime, be a field?

French equivalent of "Make leaps and bounds"

What are the examples (applications) of the MIPs in which the objective function has nonzero coefficients for only continuous variables?

In the movie Harry Potter and the Order or the Phoenix, why didn't Mr. Filch succeed to open the Room of Requirement if it's what he needed?

What are these mathematical groups in U.S. universities?

Why couldn't soldiers sight their own weapons without officers' orders?

Should I take out a personal loan to pay off credit card debt?

Colleagues speaking another language and it impacts work

Can we use other things than single-word verbs in our dialog tags?



How to fix 'IdentityModel.dll not found'?


I get a “An attempt was made to load a program with an incorrect format” error on a SQL Server replication projectHow do I enumerate an enum in C#?The located assembly's manifest definition does not match the assembly referenceWhat does MissingManifestResourceException mean and how to fix it?How exactly does a WSP deploy a dll internally.Net picking wrong referenced assembly versionCould not load file or assembly or one of its dependenciesWhat is a NullReferenceException, and how do I fix it?Could not load file or assembly 'System.Web.Http 4.0.0 after update from 2012 to 2013[A]System.Web.WebPages.Razor.Configuration.HostSection cannot be cast to… web.config issue






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I am trying to use IdentityModel.dll via a custom class library.



I have a Web Service (which will be deployed in SharePoint as WSP) where I want to use IdentityModel.Oidcclient DLL. This DLL is unsigned (does not have strong name). The signed version of DLL is asking for higher version of .Net framework. We cannot upgrade.



To solve this issue:
I referred the IdentityModel.dll in my custom class library MyLibrary.dll and referred custom class library MyLibrary.dll in my original project 'MyWebService'.



Per plan, the unsigned issue of Identitymodel.OidcClient is resolved. But we are getting error for IdentityModel.dll.



Now I am getting error




"Could not load file or assembly 'IdentityModel, Version=3.10.6.0,
Culture=neutral, PublicKeyToken=e7877f4675df049f' or one of its
dependencies. The system cannot find the file
specified.":"IdentityModel, Version=3.10.6.0, Culture=neutral,
PublicKeyToken=e7877f4675df049f"




.



I added the same version in project. Even public key token is same. I deployed the DLL in GAC using GACUTIL. But not resolved. I am stuck here.










share|improve this question
































    0















    I am trying to use IdentityModel.dll via a custom class library.



    I have a Web Service (which will be deployed in SharePoint as WSP) where I want to use IdentityModel.Oidcclient DLL. This DLL is unsigned (does not have strong name). The signed version of DLL is asking for higher version of .Net framework. We cannot upgrade.



    To solve this issue:
    I referred the IdentityModel.dll in my custom class library MyLibrary.dll and referred custom class library MyLibrary.dll in my original project 'MyWebService'.



    Per plan, the unsigned issue of Identitymodel.OidcClient is resolved. But we are getting error for IdentityModel.dll.



    Now I am getting error




    "Could not load file or assembly 'IdentityModel, Version=3.10.6.0,
    Culture=neutral, PublicKeyToken=e7877f4675df049f' or one of its
    dependencies. The system cannot find the file
    specified.":"IdentityModel, Version=3.10.6.0, Culture=neutral,
    PublicKeyToken=e7877f4675df049f"




    .



    I added the same version in project. Even public key token is same. I deployed the DLL in GAC using GACUTIL. But not resolved. I am stuck here.










    share|improve this question




























      0












      0








      0








      I am trying to use IdentityModel.dll via a custom class library.



      I have a Web Service (which will be deployed in SharePoint as WSP) where I want to use IdentityModel.Oidcclient DLL. This DLL is unsigned (does not have strong name). The signed version of DLL is asking for higher version of .Net framework. We cannot upgrade.



      To solve this issue:
      I referred the IdentityModel.dll in my custom class library MyLibrary.dll and referred custom class library MyLibrary.dll in my original project 'MyWebService'.



      Per plan, the unsigned issue of Identitymodel.OidcClient is resolved. But we are getting error for IdentityModel.dll.



      Now I am getting error




      "Could not load file or assembly 'IdentityModel, Version=3.10.6.0,
      Culture=neutral, PublicKeyToken=e7877f4675df049f' or one of its
      dependencies. The system cannot find the file
      specified.":"IdentityModel, Version=3.10.6.0, Culture=neutral,
      PublicKeyToken=e7877f4675df049f"




      .



      I added the same version in project. Even public key token is same. I deployed the DLL in GAC using GACUTIL. But not resolved. I am stuck here.










      share|improve this question
















      I am trying to use IdentityModel.dll via a custom class library.



      I have a Web Service (which will be deployed in SharePoint as WSP) where I want to use IdentityModel.Oidcclient DLL. This DLL is unsigned (does not have strong name). The signed version of DLL is asking for higher version of .Net framework. We cannot upgrade.



      To solve this issue:
      I referred the IdentityModel.dll in my custom class library MyLibrary.dll and referred custom class library MyLibrary.dll in my original project 'MyWebService'.



      Per plan, the unsigned issue of Identitymodel.OidcClient is resolved. But we are getting error for IdentityModel.dll.



      Now I am getting error




      "Could not load file or assembly 'IdentityModel, Version=3.10.6.0,
      Culture=neutral, PublicKeyToken=e7877f4675df049f' or one of its
      dependencies. The system cannot find the file
      specified.":"IdentityModel, Version=3.10.6.0, Culture=neutral,
      PublicKeyToken=e7877f4675df049f"




      .



      I added the same version in project. Even public key token is same. I deployed the DLL in GAC using GACUTIL. But not resolved. I am stuck here.







      c# authentication sharepoint dll wsp






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 27 at 9:13









      Fox

      8671 gold badge5 silver badges17 bronze badges




      8671 gold badge5 silver badges17 bronze badges










      asked Mar 27 at 6:16









      MAKMAK

      1068 bronze badges




      1068 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          1














          Add the following key to the section in your web.config:



          <compilation debug="true" targetFramework="4.5" > 
          <assemblies>
          <add assembly="IdentityModel, Version=3.10.6.0,
          Culture=neutral, PublicKeyToken=e7877f4675df049f" />
          </assemblies>
          </compilation>





          share|improve this answer

























          • Thanks. This may work for someone but not worked for me. I deployed the DLL in assembly using GACUTIL.

            – MAK
            Apr 3 at 12:09










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55370907%2fhow-to-fix-identitymodel-dll-not-found%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          Add the following key to the section in your web.config:



          <compilation debug="true" targetFramework="4.5" > 
          <assemblies>
          <add assembly="IdentityModel, Version=3.10.6.0,
          Culture=neutral, PublicKeyToken=e7877f4675df049f" />
          </assemblies>
          </compilation>





          share|improve this answer

























          • Thanks. This may work for someone but not worked for me. I deployed the DLL in assembly using GACUTIL.

            – MAK
            Apr 3 at 12:09















          1














          Add the following key to the section in your web.config:



          <compilation debug="true" targetFramework="4.5" > 
          <assemblies>
          <add assembly="IdentityModel, Version=3.10.6.0,
          Culture=neutral, PublicKeyToken=e7877f4675df049f" />
          </assemblies>
          </compilation>





          share|improve this answer

























          • Thanks. This may work for someone but not worked for me. I deployed the DLL in assembly using GACUTIL.

            – MAK
            Apr 3 at 12:09













          1












          1








          1







          Add the following key to the section in your web.config:



          <compilation debug="true" targetFramework="4.5" > 
          <assemblies>
          <add assembly="IdentityModel, Version=3.10.6.0,
          Culture=neutral, PublicKeyToken=e7877f4675df049f" />
          </assemblies>
          </compilation>





          share|improve this answer













          Add the following key to the section in your web.config:



          <compilation debug="true" targetFramework="4.5" > 
          <assemblies>
          <add assembly="IdentityModel, Version=3.10.6.0,
          Culture=neutral, PublicKeyToken=e7877f4675df049f" />
          </assemblies>
          </compilation>






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 27 at 8:42









          FoxFox

          8671 gold badge5 silver badges17 bronze badges




          8671 gold badge5 silver badges17 bronze badges















          • Thanks. This may work for someone but not worked for me. I deployed the DLL in assembly using GACUTIL.

            – MAK
            Apr 3 at 12:09

















          • Thanks. This may work for someone but not worked for me. I deployed the DLL in assembly using GACUTIL.

            – MAK
            Apr 3 at 12:09
















          Thanks. This may work for someone but not worked for me. I deployed the DLL in assembly using GACUTIL.

          – MAK
          Apr 3 at 12:09





          Thanks. This may work for someone but not worked for me. I deployed the DLL in assembly using GACUTIL.

          – MAK
          Apr 3 at 12:09








          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55370907%2fhow-to-fix-identitymodel-dll-not-found%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript