Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/04/2008, 23:23
mmendezd
 
Fecha de Ingreso: abril-2008
Mensajes: 4
Antigüedad: 16 años, 1 mes
Puntos: 0
Dreamweaver CS3 + ASP.NET + MySql

Estoy empezando a programar en asp.net. con base de datos mysql en dreamweaver. Trabajo directamente en el servidor remoto.

El caso es que mi conexión a mysql, fué perfecto!... pero cuando "vinculo" la base de datos para crear un "Conjunto de datos"... me generá el siguiente código:


<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="utf-8" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,culture=neutral" %>
<MM:DataSet
id="DataSet1"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING_ccnn") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABASETYPE_ccnn") %>'
CommandText='<%# "SELECT * FROM ccnn.encuesta ORDER BY encid DESC" %>'
Debug="true"
></MM:DataSet>
<MM:PageBind runat="server" PostBackBind="true" />

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
</head>
<body>
<p>MM</p>
<p>&nbsp;</p>
</body>
</html>


Cuando valido el documento actual, me reporta el siguiente error:

- El nombre de etiqueta: "dataset" no se encuentra en las versiones activas actualmente. [XHTML 1.0 de transición] - (Linea 3)
- El nombre de etiqueta: "pagebind" no se encuentra en las versiones activas actualmente. [XHTML 1.0 de transición] - (Linea 12)

Y cuando le hago vista previa F12, me reporta el siguiente error:


Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>



Le agregué al archivo Web.Config el script, pero nada!...

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

y

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>


Espero me puedan ayudar. Estoy en esto ya una semana y he encontrado solución.

Gracias anticipadas a quienes respondan.