title: ASP web service connection to SSAS
body: <p>I have a ASP web service. I'm using  IIS 7.5 on windows server 2008 R2. When I try to connect to SSAS, I get the following error.</p>
  
  <p>Microsoft.AnalysisServices.OperationException: Either the user, NT AUTHORITY\IUSR, does not have access to the Adventure Works DW 2008R2 database, or the database does not exist.</p>
  
  <p>Can someone fix it?</p>
  
  <p>This is how I connect to SSAS.</p>
  
  <pre><code>Server con = new Server();
  con.Connect("Datasource=localhost; Initial Catalog=Adventure Works DW 2008R2;");
  XmlaResultCollection result = con.Execute(xmla);
  </code></pre>
  
  <p>Thank you for any answer.</p>