How to change Web.Config to allow PHP handling in VS 2013
Posted: March 17th, 2014, 9:23 pm
I am working on editing the WordPress 3.8.1 code in Visual Studio 2013 with Update 1. Over time I want to be able to write C#.NET plugins for WordPress. I have "PHP Tools for Visual Studio" installed. My current web.config file contents is:
When I run the website and navigate to the index.php I get an error relating to the fact that .php files are not being handled.
What do I need to add the web.config file such that the .php files are handled properly and yet still be able to run in debug mode using the PHP Tools for Visual Studio? Or is there some other setting I need to change?
(Also posted to SO - http://stackoverflow.com/questions/2246 ... tudio-2013)
- Code: Select all
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
</system.web>
</configuration>
When I run the website and navigate to the index.php I get an error relating to the fact that .php files are not being handled.
HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
What do I need to add the web.config file such that the .php files are handled properly and yet still be able to run in debug mode using the PHP Tools for Visual Studio? Or is there some other setting I need to change?
(Also posted to SO - http://stackoverflow.com/questions/2246 ... tudio-2013)