Avatar billede sf Nybegynder
28. maj 2008 - 13:30 Der er 5 kommentarer og
1 løsning

.net version flyt fra udviklings maskine

X Jeg er igang med at flytt mit asp.net projekt fra udviklings maskinen til en webserver men ca lige meget hvad jeg gør får jeg denne fejl:

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>

hvordan får jeg den til at vis en bedre fejl. der står i mit .net at det er framework 1.1 når jeg går op i hjælp og de siger webserveren køre 1.1 har ellers kunne læse mig til det kunne være en mulig fejl!?

min web.config ser sådan ud:


<?xml version="1.0"?>

<configuration>
    <appSettings/>
    <connectionStrings/>
    <system.web>
     
        <compilation debug="true"/>
        <authentication mode="Windows"/>
    </system.web>
</configuration>
Avatar billede keysersoze Guru
28. maj 2008 - 13:38 #1
Har du sat customErrors som beskeden selv fortæller du kan gøre?
Avatar billede sf Nybegynder
28. maj 2008 - 13:43 #2
har jeg prøvet men hvad skal jeg jeg lave på denne side: mycustompage.htm så den fortæller mig fejlen?
Avatar billede keysersoze Guru
28. maj 2008 - 13:49 #3
den er ikke nødvendig - kun den rigtige mode som foreslået.
Avatar billede sf Nybegynder
28. maj 2008 - 14:11 #4
min webconfig:
compilation
        defaultLanguage="c#"
        debug="true"
    />

    <!--  CUSTOM ERROR MESSAGES
          Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable.
          Add <error> tags for each of the errors you want to handle.

          "On" Always display custom (friendly) messages.
          "Off" Always display detailed ASP.NET error information.
          "RemoteOnly" Display custom (friendly) messages only to users not running
          on the local Web server. This setting is recommended for security purposes, so
          that you do not display application detail information to remote clients.
    -->
    <customErrors  mode="off"  />

    <!--  AUTHENTICATION
          This section sets the authentication policies of the application. Possible modes are "Windows",
          "Forms", "Passport" and "None"

          "None" No authentication is performed.
          "Windows" IIS performs authentication (Basic, Digest, or Integrated Windows) according to
          its settings for the application. Anonymous access must be disabled in IIS.
          "Forms" You provide a custom form (Web page) for users to enter their credentials, and then
          you authenticate them in your application. A user credential token is stored in a cookie.
          "Passport" Authentication is performed via a centralized authentication service provided
          by Microsoft that offers a single logon and core profile services for member sites.
    -->
    <authentication mode="Windows" />

    <!--  AUTHORIZATION
og stadig samme fejl
Avatar billede sf Nybegynder
28. maj 2008 - 14:13 #5
har ændret min webconfig til:
<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
nu køre det
Avatar billede keysersoze Guru
28. maj 2008 - 14:15 #6
super - helt som den første besked fortalte dig :)

Håber det er til at komme videre herfra.
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester