title: ildasm Reference Internal Classes in third Party DLL
body: <p>Grreting guys, </p>
  
  <p>A problem is bothering me for a few days and I thought may be it's time I share it with the community. </p>
  
  <p>I need to make changes to an old project in the corp. This Dll references a third party dll and uses an Internal Class in that DLL. The referenced Dll had this file declared as a friend or InternalVisibleTo was set to this file name and publicToken.</p>
  
  <p>Now, I want the referenced dll to allow me to access it's Internal contents but in my project I get the error "'BlaBla' is inaccessible due to its protection level" which clearly states that it wont allow me to access an Internal class from a new Dll.</p>
  
  <p>Solutions I have tried so far:</p>
  
  <ol>
  <li><p>Used Ildasm on the referenced DLL and in the il file in the InternalVisibleTo section for my file, I removed the whole PublicTokenKey. Ilasm it again but no success.</p></li>
  <li><p>Made a new Strongly Typed name for my dll same as the name it had before, but it didn't work.</p>
  
  <blockquote>
    <p>ilasm foo.dll /dll</p>
  </blockquote></li>
  </ol>
  
  <p>So now I am left here unable to go any further. I really appreciate any helps or discussions related to this matter.</p>
  
  <p>PS: I want to share a question very similar, which I followed line by line and it didn't work 
  <a href="https://stackoverflow.com/a/12202623/861489">https://stackoverflow.com/a/12202623/861489</a></p>