Colocando o site no servidor

13/04/2006

0

Olá pessoal....

Criei um site de simples, de teste, e ao roda-lo do servidor, digitando a url, recebi este erro:
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>


criei um web.config com o seguinte codigo:
<?xml version="1.0"?>
<!-- Web.Config Configuration File -->

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

e recebi outro erro:
Server Error in ´/´ Application. -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load type ´_Default´. Source Error: Line 1: <¬@ Page Language=´C#´ AutoEventWireup=´true´ CodeFile=´Default.aspx.cs´ Inherits=´_Default´ ¬> Line 2: Line 3: <!DOCTYPE html PUBLIC ´-//W3C//DTD XHTML 1.0 Transitional//EN´ ´http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd´> Source File: c:\home\newtonneto\www\infogarage\Default.aspx Line: 1


bom... estou perdido... não sei mais o que fazer.... alguem pode me dar uma luz???

desde já agradeço!!


Newtonneto

Newtonneto

Responder

Posts

21/04/2006

It3r

Olá Newton...

Vá no iss (internet information services) -> sites da web -> procure a pasta do seu site, clique de direita -> propriedades -> na aba diretório clique em criar.

Provavelmente irá funcionar...


Qualquer coisa, posta de novo...


Espero ter ajudado.


Responder

24/04/2006

Newtonneto

eu nao estou usando o iis, estou colocand o site num servidor q eu pago (hostnet). Eu consegui colocar uma página sem este código no inicio dela:
<¬@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" ¬>


coloquei desta forma:
<¬@ Page Language="C" ¬>


assim funcionou.... o q eu tirei íra fazer falta no futuro??


Responder

Que tal ter acesso a um e-book gratuito que vai te ajudar muito nesse momento decisivo?

Ver ebook

Recomendado pra quem ainda não iniciou o estudos.

Eu quero
Ver ebook

Recomendado para quem está passando por dificuldades nessa etapa inicial

Eu quero

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários, consulte nossa política de privacidade.

Aceitar