Web Service Methods Return “System.InvalidOperationException: Unable to Generate a Temporary Class”

Issue:
 
Once I configure the SQL Server 2005 Reporting Service, I used to configure the SSRS report server application pool run under the Microsoft Dynamics AX 2009 .Net Business Connector account.
 
But once I configured it on our client server, I have got an issue in the beneath when I browse the report manager website e.g. http://localhost/reports.
 

System.Web.Services.Protocols.SoapException: Server was unable to process request. —> System.InvalidOperationException: Unable to generate a temporary class (result=1). error CS2001: Source file ‘C:\WINDOWS\TEMP\es2ezscp.0.cs’ could not be found error CS2008: No inputs specified   at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)   at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)   at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)   at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Evidence evidence)   at System.Web.Services.Protocols.SoapServerType..ctor(Type type, WebServiceProtocols protocolsSupported)   at System.Web.Services.Protocols.SoapServerProtocol.Initialize()   at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)   at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)   — End of inner exception stack trace —

Solution:

Add the user account running the Report Server Application Pool to the security group in the C:\Windows\Temp and give the List Content Folder/write access to it. 

 
Advertisements
This entry was posted in Microsoft SQL Server Reports Service (SSRS). Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s