Avatar billede snippetss Nybegynder
25. april 2007 - 05:15 Der er 12 kommentarer

Error når jeg udgiver website

når jeg udgiver min website (publish) på min udbyders webhotel kan jeg ikke længere få lov til at update data - nogen der har en ide om hvad det kan være for en fejl. Jeg får en fejlmeddelelse om at der skal laves et errordoc ?
Avatar billede dr_chaos Nybegynder
25. april 2007 - 08:25 #1
Du er nok nødt til at vise din exception, så vi har noget mere konkret.
Har du opdateret connectionsstring og alt sådan noget ?
Avatar billede snippetss Nybegynder
25. april 2007 - 23:00 #2
Fejlene jeg får er :


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>
Avatar billede dr_chaos Nybegynder
26. april 2007 - 10:13 #3
Har du sat <configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
i din web.config ?
Avatar billede snippetss Nybegynder
26. april 2007 - 19:29 #4
Min systemconfig er som følger:
<?xml version="1.0"?>
<!--
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
    \Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    <appSettings/>
    <connectionStrings/>
    <system.web>
        <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.

            Visual Basic options:
            Set strict="true" to disallow all data type conversions
            where data loss can occur.
            Set explicit="true" to force declaration of all variables.
        -->
        <compilation debug="true" strict="false" explicit="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>
        <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
        <authentication mode="Windows"/>
        <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
    </system.web>
</configuration>
Avatar billede compilos Nybegynder
26. april 2007 - 19:32 #5
Kan det være denne linje der fejler

<compilation debug="true" strict="false" explicit="true"/>

hvis det er, kan dette vel gøre det.
<compilation debug="true"/>
Avatar billede dr_chaos Nybegynder
02. maj 2007 - 08:38 #6
måske.
prøv lige at ændre:
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>

til

<customErrors mode="Off"/>
og se om du ikke får en bedre exception.
Avatar billede compilos Nybegynder
02. maj 2007 - 09:42 #7
øhh - Jeg tror jeg mente
<compilation debug="false"/>

:-)
Avatar billede dr_chaos Nybegynder
02. maj 2007 - 19:40 #8
Stadigvæk det samme ?
Avatar billede snippetss Nybegynder
03. maj 2007 - 08:48 #9
hej igen,
jeg har omsider fået løst problemet. <customErrors mode="Off"/> var løsningen, men det var ikke nok at sætte det i config filen, indstillingen skulle også sættes på serveren.

tak for hjælpen..
claus
Avatar billede snippetss Nybegynder
03. maj 2007 - 08:49 #10
hvordan tildeler jeg point ?
Avatar billede dr_chaos Nybegynder
03. maj 2007 - 08:51 #11
Jeg skal lægge et svar hvis du vil have det :)
Så kan du accepterer det.
Avatar billede snippetss Nybegynder
03. maj 2007 - 09:41 #12
ok
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
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

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