Foros del Web » Programación para mayores de 30 ;) » .NET »

Dreamweaver CS3 + ASP.NET + MySql

Estas en el tema de Dreamweaver CS3 + ASP.NET + MySql en el foro de .NET en Foros del Web. 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 ...
  #1 (permalink)  
Antiguo 05/04/2008, 23:23
 
Fecha de Ingreso: abril-2008
Mensajes: 4
Antigüedad: 16 años
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.
  #2 (permalink)  
Antiguo 08/04/2008, 04:29
Avatar de andriuch  
Fecha de Ingreso: abril-2004
Mensajes: 65
Antigüedad: 20 años
Puntos: 0
Re: Dreamweaver CS3 + ASP.NET + MySql

Le pones <customErrors mode="Off"/> y sigue saliendo exactamente el mismo error??? Es raro, eso es que no esta cogiendo tu Web.config. Dónde esta tu servidor remoto? en internet? o en local?



Una duda, porque no usas el Visual Studio??
  #3 (permalink)  
Antiguo 08/04/2008, 14:20
 
Fecha de Ingreso: abril-2008
Mensajes: 4
Antigüedad: 16 años
Puntos: 0
Re: Dreamweaver CS3 + ASP.NET + MySql

Gracias andriuch, por responder...

Mira, le puse en la cabecera del archivo que me genera el error .

<% @ Page Language = "C #" Debug = "true"%>

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

Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.

:: problemas de acceso a la base de datos... le escribí al administrador del hosting... esperaré su respuesta... O si no es eso... a ver que pasa...


A tu pregunta: Mi servidor remoto está en internet.

Y acoto, que el archivo Web.config lo actualizo siempre en el servidor remoto.

Sobre lo de visual studio, siempre he usado el dreamweaver para todas las aplicaciones...
  #4 (permalink)  
Antiguo 20/08/2008, 12:38
 
Fecha de Ingreso: agosto-2007
Mensajes: 7
Antigüedad: 16 años, 8 meses
Puntos: 0
Respuesta: Dreamweaver CS3 + ASP.NET + MySql

Veamos si esto ayuda, sigue estos pasos, en el servidor o equipo host de tus páginas: Inicio -> Panel de Control (Vista Clásica) -> Herramientas Administrativas -> Servicios de Internet Information Server -> Sitios Web -> Sitio Web Predeterminado -> click derecho sobre la carpeta que alberga tus páginas -> propiedades -> luego en el botón Crear (en la parte inferior donde dice configuración de aplicación) y luego click en el botón Aceptar

Ronald Avendaño
[email protected]
Dreamweaver CS3 - ASP. NET Developer
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta

SíEste tema le ha gustado a 1 personas (incluyéndote)




La zona horaria es GMT -6. Ahora son las 07:30.