How do I resolve the HTTP Error Code 405 in Dreamweaver CS5?

It feels like I've tried everything to get this solved yet the problem remains.

I am trying to establish a connection between Dreamweaver CS5 and my remote database. I have IIS installed and it is running fine. When I go to select "Recordset" under the Database menu in Dreamweaver and hit "Test" to test the connection, it gives me:

HTTP Error Code 405 Method Not Allowed

I have searched high and low for a solution to this and implemented nearly everything I've found, including:

1) Adding my IP address to the allowable IPs in my remote mysql admin panel
2) Changing permissions of the folders on my local machine (IUSR and other groups)
3) Trying to connect to my database in Dreamweaver CS3 - no success.
4) Disabled "Friendly Error Messages" in Internet Explorer to get a better idea of what this error means (to no avail, same error keeps popping up)
5) Made sure I could connect to my database using alternate means - I can through a shell and other programs.
6) Installed a "workaround" given by Adobe on their website. It hasn't worked.
7) Made sure I entered my database information into the appropriate fields correctly. Check.

I don't know what choices or solutions may be left to me.

My specs:

Windows Vista 64-bit Home Premium, Service Pack 2
Dreamweaver CS5
Internet Explorer 8.0.6
Losing hair follicles by the minute.

Can anyone give a helpful, detailed answer as to what may be wrong?

If I've left any details out, I'll be sure to supply them in my next response.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
"HTTP Error Code 405 Method Not Allowed" normally refers to the methods used to retrieve a web page. The article about the 405 error says Adobe engineers are working on it...

Is this a PHP page connecting to MySQL?  I can give you the prototype that works but test it outside of Dreamweaver.  Put in your database details and run it on the server but not thru Dreamweaver.
// DB configuration
$dbsystem = "mysql";    // Your database system
//$dbhost = "localhost";    // Your database server
$dbhost = "yourserver";    // Your database server
$dbuser = "yourusername";      // Your db username
$dbpass = "yourpassword";      // Your db password
$dbname = "yourdbname";      // Your database name
$dbtable = "yourtable";  //"websitelist";

//mysql_connect('localhost', 'mysql_user', 'mysql_password');
$dbh = mysql_pconnect($dbhost, $dbuser, $dbpass);
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<title>Generic dbCheck</title>
<meta name="GENERATOR" content="HTMLKit">
<meta name="author" content="Dave Baldwin" />
echo "$dbhost <br>";
<table border="1" cellpadding="1" cellspacing="1" width="100%">
<caption><font style="font-weight: bold; font-size: 18pt; line-height: 24pt;">Generic dbCheck</font></caption>
<tr bgcolor="#ffffff">
// Formulate Query
// For more examples, see mysql_real_escape_string()
$result = mysql_query("SELECT * FROM $dbtable LIMIT 10");
if (!$result) {
   echo 'Could not run query: ' . mysql_error();

while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
echo '<tr class="locmus">';
echo '<td>'.$row[0].'</td>';
echo '<td>'.$row[1].'</td>';
echo '<td>'.$row[2].'</td>';
//echo '<td>'.$row[3].'</td>';
//echo '<td>'.$row[4].'</td>';
//echo '<td>'.$row[5].'</td>';
//echo '<td>'.$row[6].'</td>';
echo '</td></tr>';


Open in new window

ShootFromtheHipAuthor Commented:
Thanks for that.

Yes, it's a PHP connecting to MySQL.

I tested it successfully on my live (remote) server. What can I conclude from this? What should I do next?
Dave BaldwinFixer of ProblemsCommented:
From other questions here on EE, it seems that some things just don't work right when they are run inside of Dreamweaver.  I would save the files on your server, run them directly from your server with your browser and leave Dreamweaver out of it.  I use a simpler program called HTML-Kit and I never use the viewer/browser inside it because I know it doesn't do it right.
5 Ways Acronis Skyrockets Your Data Protection

Risks to data security are risks to business continuity. Businesses need to know what these risks look like – and where they can turn for help.
Check our newest E-Book and learn how you can differentiate your data protection business with advanced cloud solutions Acronis delivers

ShootFromtheHipAuthor Commented:
Thanks for the feedback. It would be really sweet to somehow get this resolved, even if it means getting other programs that enable me to edit webpages AND have localhost or remote server database capabilities (mySQL). I'm surprised this error has persisted through several major versions of Dreamweaver.

Is there anything else I can try that I haven't done in my original post?
Dave BaldwinFixer of ProblemsCommented:
My only suggestion is to split the tasks.  Use Dreamweaver for design but not for operation and functional testing.  That's what many people do, especially if they are adding some hand coding to the final product.  Use your real web browsers and web servers for testing.  In addition to the live web sites I support, I have web servers on all of my 7 computers in this room.  IIS on two and Apache on the others.  And I have every web browser I can run.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ShootFromtheHipAuthor Commented:
Ok, thanks. I think I'll just have to deal and do what you have said for now.
ShootFromtheHipAuthor Commented:
Sounds like it's just a persistent quirk in Dreamweaver that the developers have yet to address.
Sorry, but this makes no sense.  I have seen demos of using this functionality online and it worked perfectly for them.  (And no, I don't believe that Adobe would have this as an error across several major releases of their product.)  Somewhere there is a disconnect between how DW is configured and how the MySQL server is configured.  Be nice if someone could actually post a solution to the real problem instead of punting and saying "don't do that."
Dave BaldwinFixer of ProblemsCommented:
If you read thru the questions here, you'll see that there are problems like this with every design tool.  Web hosting often has different configurations than the design tools were designed for or that the designers were expecting.  One that has come up a number of times is server permissions.  People have designed sites in Microsoft's Visual Studio that work perfectly on their development machine only to find out that the web host won't allow them permissions that were needed to make it work.

Dreamweaver is often used to start a design that requires hand coding to finish it.  I'm sure the Dreamweaver-MySQL connection works perfectly under a number of circumstances but no design tool is a 100% solution.  Sometimes you have to figure out to make something work in spite of the tools.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.