Click to See Complete Forum and Search --> : Getting Asp.NET pages to work in Dreamweaver?


TonyLoco23
07-13-2011, 03:37 PM
Hi,

I am trying to get aspx (VB) pages to work in Dreamweaver 8. I understand I am supposed to have a web.config file in my root directory, but what am I supposed to write in the web.config file?

The only tutorials I have seen online say that the web.config file is supposed to get automatically generated when you create a new .Net page in your site, but that is not happening for me.

I tried to simply copy and paste another web.config file from another website but that did not work, so how do I create the web.config file? And is there anything else I need to do?

I notice that there is an ASP.NET tab in the properties of my virtual directory in IIS (I have IIS 6). But I have no clue how to use it. I assume that if I do something with that tab it will generate the web.config file for me, but what do I need to do?

TonyLoco23
07-14-2011, 09:56 AM
I am surprised noone has responded yet as this should be quite a basic question to answer.

Maybe I need to give more information:

I have .NET 2.0 and the .NET SDK 2.0 installed on my computer (maybe this is the problem, does Dreamweaver 8 work with ASP.NET 2.0?)

When I copy a basic web.config file from an existing and working .NET website that I made in Visual Studio 2005, I get the following error when I try to preview a simple "Hello World" Default.aspx page in Dreamweaver:

"Server Application Unavailable"

If the problem is that ASP.net 2.0 does not work with Dreamweaver 8, then I suppose the only solution would be to uninstall .NET 2.0 and reinstall .NET 1.0 or something like that?

Ribeyed
07-19-2011, 02:30 PM
Hi,

I'm not a dreamweaver user so I'm not sure of it's behaviour when creating a new asp.net site however here is a tutorial for running aspx pages in dreamweaver 8, see if that gives you any help.

http://www.webdesign.org/html-and-css/tutorials/asp-net-in-dreamweaver-8.7367.html

Curiosity question to you :), if you have Visual studio then why develop with dreamweaver?

regards

Ribs

TonyLoco23
07-19-2011, 03:48 PM
Thank you Ribeyed, bizarely I could not get it work on my office computer but it works fine on my home computer even without a web.config file.


Curiosity question to you :), if you have Visual studio then why develop with dreamweaver?


I like Dreamweaver a lot, it is super fast and it is great for preparing CSS and making templates and stuff.

Visual Studio slows my computer down to the point where I spend half my day working and the other half waiting for Visual Studio to respond.

The only single advantage I see with Visual Studio is the debugging tools, I like being able to put line breaks in my code and use the immediate window to find out what different variables are holding etc. But this only seems to work with server side code, it won't let me debug JavaScript so it is hardly worth it.

ryanbutler
07-20-2011, 12:30 PM
Bottom line, DW isn't meant for use with ASPX pages. ASPX pages are server side development pages that need Visual Studio. When you create a solution with Visual Studio, you get a web.config file and all the necessary configuration settings to run your pages through Visual Studio.

Getting those same files to run on a prod server should be relatively simple. DW won't debug JS either, you would need Firebug at the least.

UnderGroundDev
07-24-2011, 11:00 PM
I always create my html/css in dreamweaver and then pull it into visual studio.. dreamweaver sucks for aspx pages and visual studio sucks for html/css especially if you are using multiviews