I am evaluating VS.Php. When I try to run (by pressing F5) a php file, it gives me the following errors:
*************************
1st message:
webserver.exe - Application Error
The application failed to initialize properly (0xc0000142). Click on OK to terminate the application.
2nd message:
Unable to start program 'C:\Program Files\Jcx.Software\Vs.Php\2010\webserver.exe'.
The process has been terminated.
Refresh the process list before attempting another attach.
*************************
How I get the error:
1. WinXP Pro 32-bit SP3 Clean install.
2. Downloaded and installed VS.Php 2.9 for Visual Studio 2010 (web installer). Installer installed Visual Studio 2010 Shell, .NET 4.0 Framework, and VS.Php 2.9.
3. Created a very simple php file.
4. Press F5.
5. Error comes up.
I tried this on two separate installs with the same problem. Any ideas?
juanc says:
Do you have the .Net 2.0 framework installed?
Spitfire says:
Yes.
juanc says:
In the advanced debug settings, there is an option to attach the debugger to the web server. In this case we launch Apache directly.
Could you please try that and let me know if it works for you?
sammirata says:
I am having the exact same problem. If I switch that flag in the advanced settings, apache.exe crashes instead of webserver.exe
Any more suggestions?
Thanks,
Sergio
juanc says:
Can you launch webserver.exe directly or do you get an error (crash) too?
c0y0te says:
I have the same problem here. I tried it with win xp sp3 and win7 x64 and i had the exact same problem. When I try to launch webserver.exe directly it says "Invalid use of VS.Php built-in web server".
I hope to find a solution quickly because my trial time is almost finished and I still could not test this version with vs2010.
BTW It's working perfectly with vs2008 in both SO.
Thanks for your time...
sammirata says:
Yes, I can start it directly without crashes. It gives me a normal popup: "Invalid use of ...."
BTW: I paid for this product and cannot use for debugging. I installed it on two different machines to make sure the problem was not on my side and in both I get the same crash.
JCX should have been all over this by now!!!!!!
juanc says:
Have you tried the latest build:
http://svn.jcxsoftware.com
We believe this issue has been fixed.
Thanks,
Juan
igosevski says:
Hi guys,
latest build (6308) is still not working as expected. I'm still getting the unable to load webserver.exe error. UAC is turned off. I'm trying this on Win 7 64bit Ultimate and VS2010.
Regards,
Ivan
juanc says:
I'm not really sure why this is happening since I can't reproduce this problem.
What Visual Studio components do you have installed? C++, C#, etc? I'm trying to figure out what is different between our environments.
Juan
igosevski says:
Hi,
I installed all of the 2010 VS components. The Visual Studio version is 10.0.30319.1. Extra I have installed the AnkhSVN. The VS.php is in trial period and also the Windows 7 Ultimate is in trial period. As Anti-Virus I have the Avira Free edition.
I hope this will help.
Regards,
Ivan
irephin says:
Hi,
I'm having the same problem. I uninstalled VS.PHP to try and install a later build (someone mentioned 6308?). But I couldn't find any builds later than what I had (I can't remember what it was, but I believe 6290). I was also on a trial version. If you have a build you'd like tested, let me know and I can install.
Anyway, here's my setup, in case it helps:
Windows 7 Ultimate x64 (activated)
Microsoft .NET Framework Version 4.0.30319 RTMRel
Microsoft Visual Studio 2010 (Version 10.0.30319.1 RTMRel)
* Installed Version: Premium
* Microsoft Office Developer Tools 01021-532-2002102-70718
* Microsoft Visual Basic 2010 01021-532-2002102-70718
* Microsoft Visual C# 2010 01021-532-2002102-70718
* Microsoft Visual C++ 2010 01021-532-2002102-70718
* Microsoft Visual F# 2010 01021-532-2002102-70718
* Microsoft Visual Studio 2010 Code Analysis Spell Checker 01021-532-2002102-70718
* Microsoft Visual Studio 2010 Team Explorer 01021-532-2002102-70718
* Microsoft Visual Web Developer 2010 01021-532-2002102-70718
* Crystal Reports Templates for Microsoft Visual Studio 2010
* GhostDoc 2.5.9166.0
* JetBrains ReSharper 5 C# Edition build 5.0.1659.36 on 2010-04-13T02:19:06
* Microsoft Visual Studio 2010 SharePoint Developer Tools 10.0.30319
dulfe says:
I also have that problem... and I have:
VS.php 2,9,2,6321 for 2010
Windows 7 (x64)
Visual Studio 2010 Pro
Visual Studio Installation Path: C:\Program Files (x86)\Microsoft Visual Studio 10.0
VS.php Installation Path: E:\Program Files (x86)\Jcx.Software\VS.Php\2010
.NET Framework Installed: 1.1, 2, 3.5, 4
Microsoft Visual Studio 2010
Version 10.0.30319.1 RTMRel
Microsoft .NET Framework
Version 4.0.30319 RTMRel
Installed Version: Professional
Microsoft Office Developer Tools
Microsoft Visual Basic 2010
Microsoft Visual C# 2010
Microsoft Visual C++ 2010
Microsoft Visual F# 2010
Microsoft Visual Studio 2010 Team Explorer
Microsoft Visual Web Developer 2010
CodeRush for Visual Studio 10.1
Crystal Reports Templates for Microsoft Visual Studio 2010
DXCore for Visual Studio 10.1
Microsoft Visual Studio 2010 SharePoint Developer Tools 10.0.30319
Refactor! for Visual Studio 10.1
VS.Php 2.9 for Visual Studio version 2,9,2,6321.
XtraReports package 1.0
We really need this fixed or a workaround.
I just paid for this upgrade and it does not work!... the version for 2008 worked fine.
juanc says:
The workaround is to go into the debug->advanced settings and enable Apache debugging.
Juan
hoogeboom says:
Im evaluating VS.php with Visual studion 2010 , When I try to debug a very simple command line script the following error occurs
php.exe - Application error
The application failed to initialize properly (0x0000142). Click OK to terminate the application
Running PHP.exe directly gives no error:
c:\program files (x86)\jcx.software\vs.php\2010\php 5.3\php.exe" -f index.php
Hello World!
How do I get VS.php to work properly?
Environment:
Visual studio 2010 ultimate edition
Windows Xp x64
.NET 4.0
juanc says:
What kind of project are you using?
mobragauk says:
Same here.
Since I upgraded to VS.PHP 2.9 and VS 2010 nearly a month ago, I haven't been able to debug.
If I configure to "Builtin mode" the error is "Unable to start program [MyProgramFiles]\Jcx.Software\VS.Php\2010\webserver.exe".
If I configure to "External mode", and start my Wamp server beforehand, I get "The application failed to initialize properly (0xc0000142). Click on OK to terminate the application."
I'd really appreciate some help with this, please.
Mo
juanc says:
Have u tried the latest build from here?
svn.jcxsoftware.com
Juan
kall says:
Since you say that you tried it with two separate installs there really aren't many other options to find a solution to the problem. You should change the downloading source and try all the steps again. Also I think you should check all the file extensions inside the program and make sure everything is in perfect order.
MOBIUS1234 says:
Any update on this issue. I'm seeing exactly the same problem, running on Windows 7 64 bit, with a fresh install of VS 2010.
If I try to run with the default debug settings I get 'Unable to start program 'C:\Program Files (x86)\Jcx.Software\VS.Php\2010\WebServer.exe'
Looking for a workaround I tried to change the project settings to switch Debug Mode to use 'Local IIS Web Server' (which is already set up and working standalone). I go through the IIS configuration wizard, but when I click finish I get an error dialog saying 'Illegal characters in path.' (though there's nothing in any of the paths that are set up that look illegal)
MOBIUS1234 says:
I got built in debugging working - I downloaded the latest build, and also changed the install directory to be c:\Program Files\... rather than the default c:\Program Files (x86)\... Not sure which fixed the issue.
I'm still not able to debug using IIS, but at least I'm half way there
juanc says:
Using DbgView, could you please run the wizard again and capture the traces to why you are running into this issue?
Thanks,
Juan
bitcrazed says:
Your build page is screwy and doesn't list the dbg build for VS2010 until you view a specific build's details.
Am installing the DBG build now and will see if I can capture a debug trace.
bitcrazed says:
Tried installing the latest debug build, but it fails to load as VS starts:
Here's what DbgView had to say:
00000000 0.00000000 [308] Constructing a new instance of SVsWindowManager
00000001 0.76367718 [308] >> MSEnv extensibility IClassFactory::LockServer(TRUE), lock count: 1
00000002 0.78920722 [308] Package 'vs.php' failed to load.
00000003 7.90108490 [308] Package 'vs.php' failed to load.
00000004 10.79914570 [308] Entering constructor for: Microsoft.VisualStudio.ComponentModelHost.HostPackage
00000005 10.79958439 [308] Entering Initialize() of: Microsoft.VisualStudio.ComponentModelHost.HostPackage
00000006 30.41046906 [308] >> MSEnv extensibility IClassFactory::LockServer(TRUE), lock count: 2
00000007 30.41156197 [308] >> MSEnv extensibility IClassFactory::LockServer(TRUE), lock count: 3
00000008 30.41227531 [308] >> MSEnv extensibility IClassFactory::LockServer(FALSE), lock count: 2
00000009 30.92451286 [308] >> MSEnv extensibility IClassFactory::LockServer(FALSE), lock count: 1
juanc says:
regarding error: 0xc0000142
Can you check with depends.exe and see if there are any errors reported?
http://www.dependencywalker.com/
Juan
bp_cw says:
It reports ieshims.dll & wer.dll missing on my system......
juanc says:
that's not the issue then...
patard says:
Hello,
I got the same problem. It's impossible to debug, in any way.
Using VS.PHP V2.10 (built 6700) in my Visual Studio 2010 SP1.
If I choose "built-in", webserver.exe crashes.
If I choose "external", BrowserLauncher crashes.
So, I ask myself the reason why I bought this software....
Thank you for a better answer.
Best regards.
Kac says:
Same problem here. No news?
edit: Just noticed something strange:
If I set in Project->Propertis-> ... Debugging Type -> PHP debugging, BrowserLuncher crashed,
but
if is set PHP/JavaScript debugging, Internet Explorer start to opening (!?) and hangs and massage is:
Unable to start program 'http://127.0.0.1:80/index.php?XDEBUG_SESSION_START_1
(Debug Apache is true and Apache is running at 80)
Hope this help.
Regards
juanc says:
I wish I was able to reproduce this problem so I could fix it. I haven't been able to.