System. invalidoperationexception: unable to generate a temporary class Temporary class cannot be generated (Result = 1 ).
Error cs2001: source file & #39; C: \ WINDOWS \ temp \ qdn330ew. 0.cs; cocould not be found
Error cs2008: no inputs specified
At system. xml. serialization. compiler. Compile (Assembly parent, string NS, xmlserializercompilerparameters xmlparameters, evidence)
At system. xml. serialization. tempassembly. generateassembly (xmlmapping [] xmlmappings, type [] types, string defaultnamespace, evidence eviters, xmlserializercompilerparameters parameters, assembly, hashtable assemblies)
At system. XML. serialization. tempassembly .. ctor (xmlmapping [] xmlmappings, type [] types, string defaultnamespace, string location, evidence evispace) at system. XML. serialization. xmlserializer. frommappings (xmlmapping [] mappings, type)
At system. Web. Services. Protocols. xmlreturn. getinitializers (logicalmethodinfo [] methodinfos)
At system. Web. Services. Protocols. httpservertype... ctor (type)
At system. Web. Services. Protocols. httpserverprotocol. initialize ()
At system. Web. Services. Protocols. serverprotocolfactory. Create (type, httpcontext context, httprequest request, httpresponse response, Boolean & abortprocessing)
Solution: Find c: \ windows \ Temp and add sufficient permissions to the user in the temp folder, as shown in figure