Webservice stub class not compiling

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Nick Gilbert (news_at_nickgilbert.com)
Date: 10/26/04


Date: Tue, 26 Oct 2004 13:20:46 +0100

Hi,

I'm having problems using Flash Remoting with Web Services for ASP.NET
and I've narrowed the problem down to csc.exe when it tries to compile
the stub class.

Flash Remoting (flashgateway.dll) is calling the following command line
to compile the stub class:

"csc.exe" /out:ExampleWebService.dll /t:library ExampleWebService.cs

If I run that command manually, it correctly generates the DLL and the
application works, so why can't it generate the DLL file when it
compiles it automatically? What's the difference between me running it
from the command line and Flash running it as the ASPNET user?

We then did some more research and have found that csc.exe is producing
the following error while trying to compile the file:

fatal error CS2021: File name
'\\?\C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.rsp...' is too
long or invalid

I've searched for this error everywhere and I can't see that anyone else
has ever encountered it. I've even tried reinstalling .NET in case my
installation was messed up. Where is csc.exe getting the above string
from? (ie where do I look to fix it, and what should it be?)

I can't work out what this error means. I expect it relates to the
extraneous characters on the front of the path but I don't know why
that's happening or why those characters are there.

Do you know how I can fix this problem?

Thanks,

Nick...



Relevant Pages

  • Re: Webservice stub class not compiling
    ... who is flash remoting? ... > I've narrowed the problem down to csc.exe when it tries to compile the ... > Flash Remoting is calling the following command line to ... > extraneous characters on the front of the path but I don't know why that's ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Webservice stub class not compiling
    ... > who is flash remoting? ... It is a macromedia thing, but the problem is with the csc compiler as ... string text4 = @"ExampleWebService"; ... >> I've narrowed the problem down to csc.exe when it tries to compile the ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Problem in calling c programs and compiling them in tcl/tk
    ... Are you using Tcl's glob command to do this? ... using exec gcc filename.c and later exec ./a.out filename.c. ... the execution of a command that might generate a Tcl error. ... i can call a c program and compile it? ...
    (comp.lang.tcl)
  • RE: Console Application Testing
    ... vbc.exe could be accessed in Visual Studio Command ... If you want to compile the project in command prompt with vbc.exe, ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Macro prompt
    ... I'm sorry, Pcman, I don't think I can help here. ... If you want to test the action of clicking a command button on a form, I suggest you test it by clicking the command button on the form, not by trying to run the Click event code from within the VBE window. ... Steve Schapel, Microsoft Access MVP ... options pop-up menu the the "Compile" section has already checked off Compile ...
    (microsoft.public.access.macros)