Zend Studio for Eclipse-- Run/Debug a PHP Web Page is not working - zend-studio

I am using Zend Studio for Eclipse 6.1.
I have all the AMP stack installed.
However, when I load the ExampleProject in Zend Studio for Eclipse, and right click on a script, choose run as-PHP web page, I got a "The Page cannot be found" error.
This is the setting I set in Eclipse,
http://lh6.ggpht.com/_SDci0Pf3tzU/SajMHPj1-9I/AAAAAAAAEjk/itoOfggAuSs/s400/zend%20debugger%20error.jpg
and this is the error.
http://lh5.ggpht.com/_SDci0Pf3tzU/SajMHIMoCTI/AAAAAAAAEjs/5Oca5QrVPgE/s400/the%20page%20cant%20be%20found.jpg
However, when I run as PHP script, I didn't encounter any error at all.

Your Apache is running but seems that the URL doesn't match with your server public folder, and that it's giving you the error you show, a 404 Page Not Found.
Check if your project source files are in the right place, normally in the htdocs folder.

I have fully figured out how to debug PHP webpage in Zend Studio for Eclipse.
Here's the link.

Related

Blazor WebAssembly publish failed

I'm trying to publish a Blazor WebAssembly App, targeting .NET 5.0.
I created a new Web Deploy publish profile from Visual Studio 2019, using the default settings:
The site is published to IIS, but the browser is displaying a 500.19 - Internal Server Error: "The requested page cannot be accessed because the related configuration data for the page is invalid."
There's a strange path for web.config, which is starting with "\\?\":
\\?\C:\inetpub\wwwroot\__ClientBlazor\web.config
I've tried any of the suggestions I've found on similar threads, but none of them solve the problem.
Could it be a specific bug of VS publish wizard on Blazor projects?
Turns out that it was an url-rewrite problem, which is addressed by this IIS Url Rewrite extension.
Simply install the extension and the republish the app, it will work.
BUT other errors will then be raised, like the following:
404 on every css and javascript resources (see this and that for further details and a really weird solution).

Visual Studio 2013 / Webmatrix 3 - Can not run website and The name 'WebSecurity' does not exist in the current context

I've got a Website I originally wrote in Webmatrix 1 based on the Starter Site demo, but I have always used Visual Studio to edit it as you can debug from there.
The website works fine still, but I recently got a new laptop and it has the latest versions of Webmatrix and VS, and now I can not run the website locally, I get "Page can not be displayed" and also I am getting errors "The name 'WebSecurity' does not exist in the current context". If I specify the full name "WebMatrix.WebData.WebSecurity" then it compiles fine but will still not display the page.
I created a new Starter Site using Webmatrix 3 and it works fine (Websecurity works and website can be run and debugged locally). I have checked in _AppStart and web.config and I can not see anything obvious.
Does anyone have any idea how I can get my old website working in the new tools? Specifying the names fully is not the end of the world but I could really do with being able to run it so I can debug.
Thanks a lot,
Dave.
I have no real clue, but your original web site was developed under an ASP.Net Webpages version that probably is not installed on your new computer. As to the fix, if you haven't done it already, create a new site with web matrix (or visual studio...you can make asp.net web pages site with VS now I believe) and copy your code in and tweak where it bombs. I think the differences in ASP.Net web page versions are very minimal but there might be some gotchas. Good luck.

Visual Studio keeps requesting missing web components

When I open a particular mvc 3 website project in VS 2010 I get the following message:
The Web Project "X" requires missing web components to run with Visual Studio. Would you like to download and install them using the Web Platform Installer now?
ASP.NET Web pages with Razor syntax.
When I click yes
The web platform installer shows with the message that "0" items need to be installed.
My other mvc 3 projects do not show this behavior
Not a major inconvenience, but still...
thoughts any one?
I got the same error after reinstalling my computer.
I came to this conclusion, VS needs IISExpress to load my additional project. The addition projects has a webservice and it can run locally. Even if my endpoints points to a local address it still needs the IISExpress (standard IIS 7.5 does not respond the endpoint request) to open from VS (im running VS2010).
So after installing IISExpress i could reload my project in VS.
C.,
That shouldn't happen, and it would be interesting to figure out why. In the meantime, you should be able to turn this off by unchecking the "Package Restore" checkbox in Visual Studio's Options dialog. (Select "Package Manager" in the tree view to find it.)
If it's happening only for specific projects, you can solve this more surgically by removing the packages.config file for the affected project. In fact, if you want to do root cause analysis, you should look into why that file exists and how it got there.
HTH,
Clay

How do I remove or disable PHP editor in Aptana Studio 3?

I am trying to install Aptana as an Eclipse plugin for Zend Studio because the HTML/Javascript editor is so much better in Aptana, but I still want Zend Studio to handle PHP. I am receiving an "Unsupported content type in editor" message when I try to edit PHP files. It appears that Aptana is trying to take over my PHP editing. I am not sure if the message is Aptana complaining because the Zend Studio is opening the file or Zend Studio complaining because Aptana wants the file. Obviously, a conflict exists as if I make the Aptana editor the default for PHP or uninstall the Aptana plug in, the message goes away.
I am wondering if I can just completely disable or remove the PHP Plugin from Aptana Studio 3 and see if that solves the issue?
looks like if you install Eclipse Indigo and then add the Aptana 3 addon then you go to the Project Natures in the project preferences you can see a few options:
PHP
Rails
Ruby
Web
org.eclipse.php.core.PHPNature
Disable the first PHP option and rebuild your project. It will work. And you have the zend codeintel as well.
Unfortunately, the Aptana3 plugin does that. It does the same thing with PDT and it's most annoying since there Aptana plugin does other things so beautifully. It would be nice if you could elect which editor to use and have both handle PHP files just fine, but it seems that having more than one editor in Eclipse assigned to PHP causes conflicts. And unfortunately, there is no way to remove just the PHP component from the Aptana Studio plugin.
You could install the Aptana Studio 2, which does not have the PHP editor (I understand) and/or you could install the stand-alone version of Aptana Studio 3 to do the things that you want to do with it and leave the plugin out out of your Eclipse installation, but that's not so ideal, I guess. I'd also love to see a better resolution to multiple PHP editors working nicely in Eclipse (and being able to set one -- i.e., for now, not Aptana -- as primary default).
#Lowell - It's not Aptana Studio fault ;-) Unfortunately, it's a WST issue that is opened forever and not being attended. Since PDT and Zend Studio depends on WST, this problem surface when there is another product that sets up the content-types as they should in Eclipse.
See more details at: https://jira.appcelerator.org/browse/APSTUD-3185 (this one is for the CSS editor, but it's the same with other editors that share same file-extensions. See Max Stepanov's explanation on the bottom).
Removing the project natures that were contributed by Aptana is a partial workaround. You can right-click your PHP project and select Properties, navigate to the Project Natures item and un-check the 'PHP' nature. After that, you will be able to open the PHP files with Zend Studio's editor. However... it's only a partial workaround because you'll still need the Zend's PHP Nature there in order to have Zend's project management work correctly (e.g. indexing, content-assist etc.).
So... a close-to-complete workaround would be to create a PHP project using Zend PHP project wizard (not Aptana's). Then, after the project was created, follow the natures instructions above and add the Aptana's Web nature to enable the HTML, JS and CSS goodies.
Hope that helps...

"Unable to connect to the ASP.NET Development Server" message in Visual Studio 2010

I just checked out an ASP.NET MVC 3 web project using TortoiseSVN. I opened it in vs2010 and successfully built it. But when I try to run the project, vs2010 gives me an error with the following message "Unable to connect to the ASP.NET Development Server". When I open the development server dialog via icon in notification area and try to browse through the link in this dialog a web page opens with "HTTP Error 403 - Forbidden".
This looks quite odd, as when I create a new MVC project in the same solution and try to run it, it runs normally. This problem occurs only with the aforementioned project.
Please share any ideas.
This worked for me:
Open web.config
Remove everything in the <system.web> section
Run the project (it should work now)
Undo your web.config changes and you should be good to go.
Try to change assigned port in project properties-> Web-> set specific port instead of auto assign.

Resources