WebService: system. invalidoperationexception: temporary classes cannot be generated.

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.