473,378 Members | 1,434 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

vshost

Hello

Newbie in asp net here. I have been struggling with a problem for
weeks, and after analyzing logs I found something new. The problem in
short:

I have a web app, not done in .net. It is apache/php stuff. A few php
pages make call to stand alone apps developed in c#. The c# apps makes
operations on the windows media services, doing stuff like creating/
removing publishing points.

Everything works well. But sometimes, maybe after 1 day, or 2 days, or
a week, it happens that the php script that calls the c# app hangs
upp. The script seems to run the c# app infinitely, without getting
the return value from the app.

The truth is that if I run the c# app from command line, it always
works, even after the php-problem has showed up. But, after the
problem has showed up, from php I cannot make call to any otther c# at
all. Even a simple hello world c# app will not work. The only
sollkution then is to restart the apache server. Then everything will
work again until next time the php-call to c# app will hang up again.

No one could help me in the php/apache groups, no one knows what this
is about. So I have put log everywhere, both in the php scripts, and
in the c# apps.

The c# apps called from php, always execute without problems, and they
never go in a catch statement. And they also log that they return
something to the caller. I really dont understand where the problem
is.

The new thing I have discovered is the following:

When the php stopped working (but remember that the only thing that
doesnt work is the call to any exe-file, all the other pages work
wiothout problems), I had a look at the task manager. Well, I saw that
among the running processes there was one that had the same name as
the exe file that was the last to be executed from php. BUT, the name
of the file is somthing like:

appname.vshost.exe

What have I done? As I am a newbie, When I created my c# apps in the
developement place (like C:\projects\mycapp) and tested that they
worked, then I went to the folder C:\projects\mycapp\mycapp\bin
\Release and copied all the files that were created in that directory.
Then moved all these files into my webserver root. Soin the server
root, I had these files, for the mycapp-project:

mycapp.exe
mycapp.vshost.exe
mycapp.vshost.pdb

Why? Well, I dont know. Probably because I am a newbie in visual
studio, and just thought it was a good idea to move all the generated
files.

Thats it. My question is: what are vshost.exe files? Does anyone know
why, when the php hangs up, I can see an vshost.exe file in the task
manager? Why is it still running? Should I remove all these files, and
only have app.exe for every project, in the webserver? Thank you.
Jan 1 '08 #1
3 3705
Well, it didnt help. I removed all the vshost's and pdb's. But it
still happens that the calling php script hangs up when executing a c#
app.

The problem is that the c# app that eventually will make php to hang
up executes without problems. I can see it in the log files. At the
end of the try statement, the c# app returns a value. This is done
with Console.Writeline();

However, when php hangs up, it seems like (checking in the log) that
php waits forever for getting back the return value (the
cnosole.writeline).

After the php has hanghed up, if I try to run an app through the
command line, it executes without problems, and even prints the
console.writeline in the command windows. But if I call a dummy c#
app, like cnosole.writeline("hello world"); then it will wait for
ever, and never return the string.
Jan 1 '08 #2
I don't know how you managed to get a call to a "vshost" executable other
than that you errantly deployed a debug build of whatever it is that you are
calling.
Ensure that you make a release build and also that nothing with "vsHost" is
deployed, and that it is tested and it works.

-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
"wa*****@hotmail.com" wrote:
Well, it didnt help. I removed all the vshost's and pdb's. But it
still happens that the calling php script hangs up when executing a c#
app.

The problem is that the c# app that eventually will make php to hang
up executes without problems. I can see it in the log files. At the
end of the try statement, the c# app returns a value. This is done
with Console.Writeline();

However, when php hangs up, it seems like (checking in the log) that
php waits forever for getting back the return value (the
cnosole.writeline).

After the php has hanghed up, if I try to run an app through the
command line, it executes without problems, and even prints the
console.writeline in the command windows. But if I call a dummy c#
app, like cnosole.writeline("hello world"); then it will wait for
ever, and never return the string.
Jan 2 '08 #3
As I said before, the problem was not vshost. I have recompiled all
the apps, and only deployed, for every app, the exe file and the
required dll's.

It is very frustating. I have put log everywhere, but no traces are
showed there. The apps never go in the catch statement. The apps
always work from command line. But for some reason the exec call from
php hangs upp at some point.

No one in the php/apache group understands why this happens, and
cannot give me some good explanation. No one here that thinks to know
why all this is happening?
Jan 5 '08 #4

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

Similar topics

2
by: Terry Olsen | last post by:
While running my application, either in or out of the debugger, after a while the message box pops up that says "MyApp.vshost.exe has encountered a problem and needs to close." What does the...
10
by: Brett Romero | last post by:
I have a VS.NET 2005 solution with 10 projects. I have unbinded all projects, closed and reopened the solution. When I build, via Nant, I copy all of the PDB and DLLs to the EXE bin/debug folder....
3
by: simon.duvall | last post by:
Hey all, Was referencing various COMs, and tried using the Windows Genuine Advantage 1.0 Type Library. There's a cool method called GetMachineDetails() that I wanted to try, but for some...
1
by: Pucca | last post by:
I'm getting the follow error message randomly and then my application crashes. How can I locate the bug code and how can I fix this? Managed Debugging Assistant 'DisconnectedContext' has...
2
by: John A. Bailo | last post by:
I upgrade a Windows Service VS.2003 project to VS.2005 I noticed two new files. MyProject.vshost.exe MyProject.vshost.config What are these? Do I need copy them to the target to run my...
2
by: William LaMartin | last post by:
I have Visual Studio 2005 installed on both a desktop computer and a laptop computer. Everything is fine on the desktop machine. On the laptop if I either create a new VB.Net project or try to...
5
sid0404
by: sid0404 | last post by:
Hi I am new to the visualstudio.net I am trying to develop an application which requires me to send data to a HTML webpage - http://patft.uspto.gov/netahtml/PTO/search-bool.html and the user...
1
sid0404
by: sid0404 | last post by:
Hi I have created a web application which retrieves the data from the webstie, but since the data is too much to grab so occasionally i get the response time out exception as the reason for the...
0
by: Burton Roberts | last post by:
This is my first Windows Client - WCF program. I'm generally following the pattern shown in Beth Massi videos and developing with VS2008 and SQL Server 2008. I have completed a simple application...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.