Hi,

I am a beginner, and i dont know about debuging, so please can u help me in easy way.

I tried that WebXel shopping Cart which ASP.NET (VB) I went thru it all, and I could understand it, but sure not all the code, but I faced many problems while running it.
I could run some of the pages that it has but not all, the reasons are:

When you press F12 in dreamweaver to see the page in ur browser, it browser the page normally. but when u click on the left banner on "Home Page" it open a dialogue box
asking you if u want to SAVE or OPEN or CANCEL (same 1 when u try to download
a file)
I open the HomePage on Dreamweaver MX 2004 it open normally under design or code,
but when I try again to browse it, it gave me same dialogue box, I dont know whats
wrong.

another reason, is some pages (if you click on the left banner at "Load Saved Cart" which is LoadCart.aspx , it give me RunTime Error and ask me to Debug it, which I dont know about debug and those stuff

I got the IIS installed and running, and tested
the DB is set up as well.
thats what i do have on my system:

Win XP Pro + all update installed
Dreamweaver MX 2004
.Net Framework 1.1
MDAC 2.8
IIS5 and IIS 6 Manager
MS Access (Office XP Pro).

any idea?

Thank you

Tina

Dani AI

Generated

Two distinct issues are described in the thread: the browser showing a Save/Open dialog when following an .aspx link, and a runtime error that asks to debug. Both are common and have different root causes.

The Save/Open dialog usually means the page is not being executed by ASP.NET — the server is serving the file as a download. Verify the page is requested over HTTP (for example ) rather than opened from the file system. As observed, Dreamweaver often previews files without sending them through IIS. Configure Dreamweaver’s Testing Server to use IIS (set server model to ASP.NET and the URL prefix to your localhost site), and make sure the site folder is set up in IIS as an Application with Execute permissions set for scripts. If IIS is not handing .aspx to ASP.NET, register ASP.NET with IIS by running the appropriate aspnet_regiis.exe for your framework version (from the Framework\v1.1... folder) as Administrator, then check the .aspx mapping under the virtual directory’s Configuration -> Mappings.

For the runtime error and debugging: enable site-wide detailed errors so the actual exception and stack trace appear in the browser (then turn it off for production). Put these settings in web.config:

<system.web>
  <compilation debug="true" />
  <customErrors mode="Off" />
</system.web>

Also check the Windows Event Viewer (Application log) and the IIS logs for additional details. Since the sample uses Access, confirm the web process account can read/write the .mdb (on IIS 5.x ASPNET account is common; on IIS 6+ it may be NETWORK SERVICE) and that the correct OLEDB provider is used.

Background notes: ’s point about starting with simpler tooling is valid for learning, and ’s comments about code-behind highlight that the file must be hosted and executed by ASP.NET to work correctly. Follow the checks above in order: preview via HTTP, verify IIS app and handler mappings, enable detailed errors to capture the stack trace, then fix permissions or connection-string/provider issues revealed by that trace.

Recommended Answers

All 5 Replies

to be honest, you really need to sit down witha woob like Wrox ASP.NET for beginers, and user a basic editor like asp matrix, which is freely downloadable from www.asp.net

as for the debuf.. at the top of the page.. make sure in the <%@ language=C#%> you include
<%@ language=C# debug=True%>
jack

Do the pages that you're trying to edit have codebehind? I don't think Dreamweaver can edit ASP.NET pages with Codebehind.

You can do Code behind with DW MX 2004, but it requires some implementation of some code to make it work. Since I am at work (non-IT job) and not at home I can't give that exact line of code, but I will check on it asap.

But don't hold me on this. Just know that you can create VB.net and C# classes in DW MX.

Here is an example of what I was meaning:

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Products.aspx.vb" Inherits="NorthLogin.Products"%>

This is place in the HTML code of the aspx page.

since you are just starting out i recomend downloading asp.net matrix from asp.net

its a good basic editor, and does not add a lot of messy code like dreamweaver

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.