SoloCodigo
CLR: .Net / Mono / Boo / Otros CLR => ASP .NET => Mensaje iniciado por: xGs_Manco en Lunes 28 de Julio de 2008, 23:56
-
Buenas tardes,
Tengo un problema y es que hice una pagina web y en mi PC me funciona perfectamente tanto en el IIS como en el VS 2005.
El problema que tengo ahora es que cuando la subo al servidor(Hosting) no me quiere funcionar y me sale este 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>
Por favor necesito ayuda urgentemente
-
El hosting es pago o lo armaste vos? si es pago quizá te falte:
<identity impersonate="true" userName="localhostusuario" password="pass"/>
Con el nombre de usuario y password por el cual te conectas a travez de ftp a tu sitio.
Saludos!
-
ya respodieron a mi preunta en los foros de msdn
Me toco modificar el web.config y quedo de esta manera.
<?xml version="1.0"?>
<configuration>
<appSettings/>
<connectionStrings>
<add name="conn" connectionString="Persist Security Info=False;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|Maq.mdb;JET OLEDB:DATABASE PASSWORD=sowar77;"/>
<add name="connSql1" connectionString="Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|MaqSQL.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
</pages>
</system.web>
</configuration>