473,799 Members | 2,885 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot execute a program csc.exe when calling a webservice from as

I'm having a problem with webservices:
from times to times I get the following error (incapsulated in a SOAP Exception)

It seems like each time I call a webservice, something is auto-generated and then compiled.
I saw a KB article about a problem with asmx called from aspx: a problem caused by IIS lockdown restricting too many access. But we never used it...
Also we verified that the account that the webservice is running with (the IUSR_machine user since we used impersonation) has execue access to the dir where exe are, and also to temp directories and so on...

In fact the problem happens only a sometimes, not with every call.

The only way to resolve the problem is to recycle the working process.
How can I solve this problem?
Is this a bug with Serializer?

--------------
System.Runtime. InteropServices .ExternalExcept ion - Cannot execute a program. The command being executed was "c:\windows\mic rosoft.net\fram ework\v1.1.4322 \csc.exe" /noconfig @"C:\WINDOWS\TE MP\f8evjsge.cmd line". on System

Error details:

at System.CodeDom. Compiler.Execut or.ExecWaitWith CaptureUnimpers onated(IntPtr userToken, String cmd, String currentDir, TempFileCollect ion tempFiles, String& outputName, String& errorName, String trueCmdLine)

at System.CodeDom. Compiler.Execut or.ExecWaitWith Capture(IntPtr userToken, String cmd, String currentDir, TempFileCollect ion tempFiles, String& outputName, String& errorName, String trueCmdLine)

at System.CodeDom. Compiler.CodeCo mpiler.Compile( CompilerParamet ers options, String compilerDirecto ry, String compilerExe, String arguments, String& outputFile, Int32& nativeReturnVal ue, String trueArgs)

at System.CodeDom. Compiler.CodeCo mpiler.FromFile Batch(CompilerP arameters options, String[] fileNames)

at System.CodeDom. Compiler.CodeCo mpiler.FromSour ceBatch(Compile rParameters options, String[] sources)

at System.CodeDom. Compiler.CodeCo mpiler.FromSour ce(CompilerPara meters options, String source)

at System.CodeDom. Compiler.CodeCo mpiler.System.C odeDom.Compiler .ICodeCompiler. CompileAssembly FromSource(Comp ilerParameters options, String source)

at System.Xml.Seri alization.Compi ler.Compile()

at System.Xml.Seri alization.TempA ssembly..ctor(X mlMapping[] xmlMappings)

at System.Xml.Seri alization.XmlSe rializer.FromMa ppings(XmlMappi ng[] mappings)

at System.Web.Serv ices.Protocols. SoapClientType. .ctor(Type type)

at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol..ctor()

at com.esperia.pub lishing.AdminWS .admin..ctor() in N:\SourceSafe\s .chiaretta\EspP ublishing.NET\W eb References\Admi nWS\Reference.c s:line 30

at com.esperia.pub lishing.NewsIte m..cctor() in N:\SourceSafe\s .chiaretta\EspP ublishing.NET\N ewsItem.cs:line 39ù

--------------------
Nov 21 '05 #1
0 4283

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3639
by: Chris | last post by:
I built small C# Web and Web Service applications in a training class last week. The applications worked in the class, but when I tried to run them again over the weekend, they both bombed. Instead of getting my Web page, or the Web Service page, I get a page full of error text (below). I am hoping the anwser will be obvious to someone. I've tried a few things to address the problem, including
4
7882
by: Chris | last post by:
I posted this in the C# language group, then thought it might be more appropriate in this group. I would not cross-post except I want the answer so badly. I built small C# Web and Web Service applications in a training class last week. The applications worked in the class, but when I tried to run them again over the weekend, they both bombed. Instead of getting my Web page, or the Web Service page, I get a page full of error text...
4
5614
by: AndrewDotHay | last post by:
Periodically, we see an ASPX page fail with this appearing in the logs. Any ideas? It happens about every 3 to 4 hours, requiring a restart of the application domain to resolve it. Is this a COM Interop memory leak of the serialization code? It works great for a while and then crashes. Only thing close to this document thus far is KB #306158, but my issue is just an ASPX page calling some biz logic that uses the Xml.Serialization namespaces....
1
4433
by: Mary Kerrigan | last post by:
I'm tearing out my freakin' hair on this one. Trying to deploy an ASP.NET site on a Windows 2000 Advanced Server. The framework v1.0.3705 was already installed, not by me. When I tried to get to a page that accesses data, I get this error, that begins with: "Cannot execute a program. The command being executed was "c:\winnt\microsoft.net\framework\v1.0.3705\vbc.exe"..." I have searched and searched but could find no solution. I...
3
3569
by: Merav Orion via .NET 247 | last post by:
I have a problem calling webservice from client side javascript. The javascript call the settimeout() method. when the user press submit button it ignore the press and keep refreshing the page. it looks like the data is not transferred to the asp page from the web service. just after going to internet option -> security -> Custom level -> Access data sources across domains -> and check the enable radio -> the problem is fixed. I need a...
3
12887
by: Henrik | last post by:
Hi all,,, I need to get a refferece to a XML-webservice, and get some data from it.... But I can't add it like an web-refference... What options does I else have?? I've been told that i've to use SOAP, to connect to it, but how?? Are there any good documentation for that?? all the examples that i've found, is using web-refference.. Thanks
1
2002
by: Tom | last post by:
After completing my app, I moved it to the production server. It ran ok for two days on the production server. Then, I made a change to the login process, which forced a dynamic compile(I do not pre-compile). At first, I would get the error only on the page I changed but within a couple hours, now I get the error on any page. IIS lockup is not installed.
0
1735
by: Tom | last post by:
I have a .net v2 asp.net problem. I develop on my workstation and deploy to a production server. I use compile on demand, so no pre-compile is done. When I deploy, I first must move in my new or changed pages. Then I must restart IIS. After that, everything is good, and I run for weeks without problems. If something should cause a compile ( like making a change to one of the pages and then requesting the page), the following error will...
2
1540
by: E11esar | last post by:
Hi there. I have written an ASP.Net web page in C# and have also create a corresponding WebService that will return DataSets to the web application as required. This all works fine when I have the Web Service and web site running via their own Visual Studio sessions, but once I publish these projects and load them into respective directories in IIS, I receive the following error when the client web applicatioon makes a call to the Web...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9538
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10473
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10219
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9068
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6804
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5461
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4138
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.