Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 27th, 2003, 01:45 PM
Registered User
 
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default C# & XmlWebServices

Dear all,
I have a big big problem...
I have to work with xml web services written in C#...
trying to test the simplest web service "Hello world"
I got this error message :
System.InvalidOperationException: Unable to generate a temporary class (result=1).
error CS2001: Source file 'C:\WINDOWS\TEMP\nggk6w2y.0.cs' could not be found
error CS2008: No inputs specified

   at System.Xml.Serialization.Compiler.Compile()
   at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings)
   at System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[] mappings)
   at System.Web.Services.Protocols.XmlReturn.GetInitial izers(LogicalMethodInfo[] methodInfos)
   at System.Web.Services.Protocols.XmlReturnWriter.GetI nitializers(LogicalMethodInfo[] methodInfos)
   at System.Web.Services.Protocols.MimeFormatter.GetIni tializers(Type type, LogicalMethodInfo[] methodInfos)
   at System.Web.Services.Protocols.HttpServerType..ctor (Type type)
   at System.Web.Services.Protocols.HttpServerProtocol.I nitialize()
   at System.Web.Services.Protocols.ServerProtocolFactor y.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

I reinstalled Visual Studio including Windows Components without
problems , and again didn't work

please , help...:(
 
Old October 1st, 2003, 04:17 PM
Authorized User
 
Join Date: Jul 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to merediths
Default


Check the permissions, I would wager that the service your Web Application is running under does not have appropriate rights to the folder mentioned in the error (or possibly some other folder).

Question: are you using 'code behind' pages (i.e. you have an actual binary under the web-root) or are you just trying to run a .aspx with inline code? If it is the latter case, ASP.NET will convert your .aspx file into a C# file and compile it in a temp directory behind the scene. If it can't open that temp directory, it won't work, though the path doesn't seem quite right for that particular issue ( I seem to recall the tempdir path being something along the lines of:
\\<server>\c$\WINNT\Microsoft.NET\Framework\v1.0.3 705\Temporary ASP.NET Files\<project>


Quote:
quote:Originally posted by hunter11
 Dear all,
I have a big big problem...
I have to work with xml web services written in C#...
trying to test the simplest web service "Hello world"
I got this error message :
System.InvalidOperationException: Unable to generate a temporary class (result=1).
error CS2001: Source file 'C:\WINDOWS\TEMP\nggk6w2y.0.cs' could not be found
error CS2008: No inputs specified

at System.Xml.Serialization.Compiler.Compile()
at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings)
at System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[] mappings)
at System.Web.Services.Protocols.XmlReturn.GetInitial izers(LogicalMethodInfo[] methodInfos)
at System.Web.Services.Protocols.XmlReturnWriter.GetI nitializers(LogicalMethodInfo[] methodInfos)
at System.Web.Services.Protocols.MimeFormatter.GetIni tializers(Type type, LogicalMethodInfo[] methodInfos)
at System.Web.Services.Protocols.HttpServerType..ctor (Type type)
at System.Web.Services.Protocols.HttpServerProtocol.I nitialize()
at System.Web.Services.Protocols.ServerProtocolFactor y.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

I reinstalled Visual Studio including Windows Components without
problems , and again didn't work

please , help...:(





Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript && keeps turnig into &amp;&amp; ayrton Pro VB.NET 2002/2003 3 June 27th, 2005 03:34 PM
send & recive mails from exchange & lotus sever zaheersharief Pro VB 6 1 May 16th, 2005 06:55 AM
Linux & KDE & C++ & QT & MYSQL & Kdevelop Munnnki Linux 0 January 2nd, 2005 05:41 PM
XML from a DB recordset (removal of &lt;&gt;) Thodoris XML 3 July 13th, 2004 12:28 AM
sql & join tables & find a field in multiple table trangd Beginning PHP 2 January 29th, 2004 07:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.