{"id":297,"date":"2005-03-31T02:37:42","date_gmt":"2005-03-31T08:37:42","guid":{"rendered":"http:\/\/jameskovacs.com\/2005\/03\/31\/Report+Manager+Cannot+Find+Root+Folder+After+Installation"},"modified":"2005-03-31T02:37:42","modified_gmt":"2005-03-31T08:37:42","slug":"report-manager-cannot-find-root-folder-after-installation","status":"publish","type":"post","link":"https:\/\/www.jameskovacs.com\/index.php\/2005\/03\/31\/report-manager-cannot-find-root-folder-after-installation\/","title":{"rendered":"Report Manager cannot find root folder after installation"},"content":{"rendered":"<p><DIV>I spent many hours over the past few days trying to get Reporting Services up and running on my new box. I had set up Reporting Services many times before without difficulty, but for some reason, it just didn&#8217;t want to cooperate this time.&nbsp;The setup succeeded, but when I tried to access Report Manager, Report Manager reported 404s &#8211; that it could not find the root folder. (The Report Manager default page appeared. So it wasn&#8217;t an ASP.NET issue.) When I tried to deploy reports to the server, Visual Studio .NET 2003 reported that the web service did not exist. Strangely when I asked for the WSDL using a browser pointed at&nbsp;<A href=\"http:\/\/localhost\/ReportServer\/ReportingService.asmx?wsdl\">http:\/\/localhost\/ReportServer\/ReportingService.asmx?wsdl<\/A>, I received back the expected WSDL. Here&#8217;s what I found in c:\\Program Files\\Microsoft SQL Server\\MSSQL\\Reporting Services\\LogFiles\\ReportServerWebApp__03_28_2005_11_06_50.log:<\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>&#8212; various bits of startup information<\/DIV><br \/>\n<DIV>aspnet_wp!ui!ce4!3\/28\/2005-11:06:52:: e ERROR: The request failed with HTTP status 404: Object Not Found.<BR>aspnet_wp!ui!ce4!3\/28\/2005-11:06:52:: e ERROR: HTTP status code &#8211;&gt; 500<BR>&#8212;&#8212;-Details&#8212;&#8212;&#8211;<BR>System.Net.WebException: The request failed with HTTP status 404: Object Not Found.<BR>&#8212; remainder of stack trace omitted for brevity<\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>So I started poking around the Reporting Service installation troubleshooting guide as well as Google without success. So I put my Reporting Services woes on the backburner for awhile and went on to other tasks. While working on one of these unrelated tasks, I fired up&nbsp;SQL Profiler to capture a trace for an application I was working on.&nbsp;I noticed that SQL Server was reporting the wrong hostname.&nbsp;The folks who had prepped my&nbsp;new box had built it from a&nbsp;Ghost image. They had changed the&nbsp;hostname in the OS, but had neglected to update the hostname in SQL Server&#8217;s system tables.&nbsp;I changed the hostname in the system tables to match the hostname in the OS and suddenly Reporting Services started working!<\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV><STRONG>The moral of this story<\/STRONG>: When SQL Server is setup, it records its hostname in the system tables.&nbsp;If you have any Ghost images including SQL Server, you must change SQL Server&#8217;s hostname after changing the OS&#8217;s hostname. You will experience all&nbsp;kinds of woe if&nbsp;there is a name mismatch between what SQL Server thinks the hostname is and the actual hostname.<\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV><STRONG>Steps to Resolve the Problem<\/STRONG><\/DIV><br \/>\n<DIV>First verify that this is in fact your problem. Launch SQL Query Analyzer and run the following script:<\/DIV><br \/>\n<DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>&#8212; Start script<\/DIV><br \/>\n<DIV>sp_helpserver <\/DIV><br \/>\n<DIV>GO<\/DIV><br \/>\n<DIV>&#8212; End script<\/DIV><\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>Note the hostname that SQL Server reports. If this doesn&#8217;t match your computer&#8217;s hostname, you need to change it. (I&#8217;ll assume that you know your computer&#8217;s hostname or how to find it in My Computer&#8230; Properties.) If the hostnames don&#8217;t match, here&#8217;s a script to correct the problem. You&#8217;ll have to substitute appropriate values for OLDNAME and NEWNAME in the script below. N.B. The parameter &#8216;local&#8217; in sp_addserver is important as it tells SQL Server that this is its hostname rather than the hostname of a linked server.<\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>&#8212; Start script<\/DIV><br \/>\n<DIV>sp_dropserver &#8216;OLDNAME&#8217;<\/DIV><br \/>\n<DIV>GO<\/DIV><br \/>\n<DIV>sp_addserver &#8216;NEWNAME&#8217;, &#8216;local&#8217;<\/DIV><br \/>\n<DIV>GO<\/DIV><br \/>\n<DIV>sp_helpserver<\/DIV><br \/>\n<DIV>GO<\/DIV><br \/>\n<DIV>&#8212; End script<\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>sp_helpserver should now report the correct hostname. Since SQL Server only reads its hostname information at startup, you&#8217;ll have to restart SQL Server for these changes to take effect. Once you&#8217;ve restarted SQL Server, Report Manager should be working again.<\/DIV><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I spent many hours over the past few days trying to get Reporting Services up and running on my new box. I had set up Reporting Services many times before without difficulty, but for some reason, it just didn&#8217;t want to cooperate this time.&nbsp;The setup succeeded, but when I tried to access Report Manager, Report [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-297","post","type-post","status-publish","format-standard","hentry","category-reporting-services"],"_links":{"self":[{"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/posts\/297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/comments?post=297"}],"version-history":[{"count":0,"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/posts\/297\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/media?parent=297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/categories?post=297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/tags?post=297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}