ReportServer and missing System.XML

I have finally made it. After couple of sleepless nights I managed to
successfully install VSTS. I checked and all required services are running
(Analysis, Reporting, SQL and SQL agent). I can open
http://localhost/Reports, however I have an error when I try to open
http://localhost/ReportServer. See the error below:

Server Error in '/ReportServer' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.

Compiler Error Message: CS0234: The type or namespace name 'Xml' does not
exist in the namespace 'System' (are you missing an assembly reference?)

Source Error:
Line 2: <%@ Import Namespace="System.IO" %>
Line 3: <%@ Import Namespace="System.Xml.Serialization" %>
Line 4: <%@ Import Namespace="System.Xml" %>
Line 5: <%@ Import Namespace="System.Xml.Schema" %>
Line 6: <%@ Import Namespace="System.Web.Services" %>

Source File:
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\CONFIG\DefaultWsdlHelpGenerator.aspx
Line: 4

Show Detailed Compiler Output:
c:\windows\system32\inetsrv>
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\csc.exe" /t:library
/utf8output
/R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll"
/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET
Files\reportserver\55a9c3a5\2dd8b450\App_global.asax.zqf6hd1z.DLL"
/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET
Files\reportserver\55a9c3a5\2dd8b450\assembly\dl3\350030b5\8089eb72_de3dc501\ReportingServicesWebServer.DLL"
/out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET
Files\reportserver\55a9c3a5\2dd8b450\App_Web_defaultwsdlhelpgenerator.aspx.cdcab7d2.cb8rx9zv.dll"
/debug- /optimize+ /w:4 /nowarn:1659;1699
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET
Files\reportserver\55a9c3a5\2dd8b450\gmg4atn0.0.cs"
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET
Files\reportserver\55a9c3a5\2dd8b450\gmg4atn0.1.cs"
Microsoft (R) Visual C# 2005 Compiler version 8.00.50215.44
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50215
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

c:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\CONFIG\DefaultWsdlHelpGenerator.aspx(4,18):
error CS0234: The type or namespace name 'Xml' does not exist in the
namespace 'System' (are you missing an assembly reference?)
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\CONFIG\DefaultWsdlHelpGenerator.aspx(7,22):
error CS0234: The type or namespace name 'Services' does not exist in the
namespace 'System.Web' (are you missing an assembly reference?)
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\CONFIG\DefaultWsdlHelpGenerator.aspx(5,18):
error CS0234: The type or namespace name 'Xml' does not exist in the
namespace 'System' (are you missing an assembly reference?)
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\CONFIG\DefaultWsdlHelpGenerator.aspx(6,22):
error CS0234: The type or namespace name 'Services' does not exist in the
namespace 'System.Web' (are you missing an assembly reference?)
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\CONFIG\DefaultWsdlHelpGenerator.aspx(8,22):
error CS0234: The type or namespace name 'Services' does not exist in the
namespace 'System.Web' (are you missing an assembly reference?)

and etc.

Does anyone have a clue what is happening and how it can be fixed?

Thanks,

--
Martin Kulov
http://www.codeattest.com/blogs/martin

MCAD Charter Member
MCSD.NET Early Achiever
MCSD

[4395 byte] By [MartinKulov] at [2008-2-6]
# 1
Martin,
Have you excluded http://localhost/reports and http://localhost/reportserver sites using the STSADM tool?

for more info pls see the post by Akram Hussein:
http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=2882

AkhilaLMSFT at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
# 2
Hi AkhilaL,

I have excluded both addresses during the installation procedure as the documentation says. However I tried all the tips that Akram pointed out and none of them worked out. Do you have any ideas? How comes that the WsdlGenerator can not find System.Xml namespace? This seems to be easy to workaround problem, but I do not know how.

Thanks,
Martin Kulov

http://www.codeattest.com/blogs/martin

MartinKulov at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
# 3
Hi Martin,
We recently discoverd the same problem on our report server when going to http://localhost/ReportServer/ReportService.asmx.
So, we also have the following error:
CS0234: The type or namespace name 'Xml' does not exist in the namespace 'System' (are you missing an assembly reference?)
I checked the GAC, and System.Xml is available, so I guess that's ok.
Have you managed to find out what could be wrong?
Thanks in advance!
Pieter
xplain at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
# 4
Hi Pieter,

I have just posted this problem few days ago. I still do not have any solution from Microsoft and could not have time to investigate further right now. The problem is still open. Does anyone have a clue about this one?

Thanks,
Martin

http://www.codeattest.com/blogs/martin

MartinKulov at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
# 5

Martin,
Please check if the following works for you (from Benjamin's blog):

- fix the ReportService.asmx error with replacing the <assemblies> section in the <system.web> section of the C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\web.config file:

<assemblies>
<clear />
<add assembly="ReportingServicesWebServer" />
<add assembly="mscorlib" />
<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</assemblies>

  • Make sure the web.config files for reportserver and reportmanager have full access:
    Change the following line in both web.config files:
    <trust level="Full" originUrl="" />
    Location: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer
    and: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportManager

  • Now check if http://localhost/reportServer/Reportservice.asmx is working.
  • AkhilaLMSFT at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
    # 6
    Thanks it is working for me.
    KamalKumar at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
    # 7
    Hi AkhilaL,

    Sorry for the delayed response.
    Strange but I thought I tried this before and it did not work out. Now, couple of weeks later it works. The reporting web service is finally running. Now I can continue my struggle.

    Thanks,
    Martin Kulov

    MartinKulov at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
    # 8
    Hi, I past the weekend trying to install TFS. I used a clean win 2003 std installation

    The closer I was is that I have the XML namespace not exists problem. I added the tags to web.config and I now can view the ReportService.aspx .

    The problem is that TFS installation still keeps saying that Reporting services are not installed.

    Any help will be greatly appreciated.

    edabdoub at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
    # 9

    Hi everybody

    i had that problem and solution was very easy for me

    it happend when you have both v1 and v2 .Net frame work on your computer

    1)simply un install both from your computer

    2)repair your web developer 2005( both action on control panel)

    it's gonna work easly

    Satan_chevalier at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...

    Visual Studio Team System

    Site Classified