title: SSRS 2014 invalid namespace
body: <p>I am trying to set up forms authentication on Reporting Server 2014. So far I was able to get rid of most of the errors but when trying to log in on <code>reportserver/logon.aspx</code> I get the following error:</p>
  
  <blockquote>
    <p>An error occurred while attempting to get the ReportServer Url. Invalid namespace</p>
  </blockquote>
  
  <p>I applied the following in web.config:</p>
  
  <pre><code>&lt;add key="ReportServer" value="localhost"/&gt; 
  &lt;add key="ReportServerInstance" value="RS_SKOREPORTS"/&gt; 
  </code></pre>
  
  <p>The following is from my <code>reportingservices.mof</code>:</p>
  
  <pre><code>#pragma namespace ("\\\\.\\root\\Microsoft\\SqlServer\\ReportServer\\RS_SKOREPORTS\\V12")
  </code></pre>
  
  <p>I've tried several things like removing the <code>RS_</code> prefix but the error remains.</p>
  
  <p>EDIT:
  Ok, I have come to the point where I know what's wrong by debugging everything, I just don't know how to fix it. My <code>wmiNamespace</code> string is adjusted for report server 2014 as follows: <code>private const string wmiNamespace = @"\\{0}\root\Microsoft\SqlServer\ReportServer\RS_{1}\v12";</code></p>
  
  <p>The weird thing is that when I debug the login process and put a watch on <code>fullWmiNamespace</code> the value it returns is:</p>
  
  <pre><code>"\\\\localhost\\root\\Microsoft\\SqlServer\\ReportServer\\RS_SKOREPORTS\\v10"
  </code></pre>
  
  <p>It looks like report server ignores the changes I made in <code>AuthenticationUtilities.cs</code> and just uses the unmodified version.</p>