Καλώς ορίσατε στο dotNETZone.gr - Σύνδεση | Εγγραφή | Βοήθεια
σε

 

Αρχική σελίδα Ιστολόγια Συζητήσεις Εκθέσεις Φωτογραφιών Αρχειοθήκες

Προβλημα μετά το ανεβασμα των αρχείων στον Server.

Îåêßíçóå áðü ôï ìÝëïò Lambros. Τελευταία δημοσίευση από το μέλος AngelsGR στις 02-06-2008, 14:35. Υπάρχουν 2 απαντήσεις.
Ταξινόμηση Δημοσιεύσεων: Προηγούμενο Επόμενο
  •  07-05-2008, 13:26 41845

    Προβλημα μετά το ανεβασμα των αρχείων στον Server.

    Εχω ένα προβλημα.Ενω όλα λειτουργούν κανονικά όταν τρεχω το Site μου στον ΙΙS του υπολογιστή μου, τώρα που ανέβασα τα αρχεία σε έναν Server,μου βγάζει το εξής πρόβλημα:

    -->

    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>

    δεν μπορώ να καταλάβω τον λόγο..

    Το web.config ειναι το εξής:

    <?xml version="1.0"?>
    <configuration>
     
      <system.net>
        <mailSettings>
          <smtp>
            <network
                 host="MailServer"
                 port="25"
                 userName="User"
                 password="Password" />
          </smtp>
        </mailSettings>
       
      </system.net>
      
      <connectionStrings>
      <add name="Data" connectionString="Server=localhost;User ID=root;Password=admin;Persist Security Info=True;Database=Data;character set=greek" providerName="MySql.Data.MySqlClient"></add>
      
      </connectionStrings>
     
     <system.web>


            <roleManager enabled="true" />
            <compilation debug="true" strict="false" explicit="true">
       <assemblies>
        <add assembly="MySql.Data, Version=5.2.1.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/></assemblies></compilation>
      <pages>
       <namespaces>
        <clear/>
        <add namespace="System"/>
        <add namespace="System.Collections"/>
        <add namespace="System.Collections.Generic"/>
        <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>

    <authentication mode="Forms" />

    <customErrors mode="off"/>

     </system.web>
    </configuration>

    Μπορεί να βοηθήσει κανεις;

  •  14-05-2008, 13:38 41984 σε απάντηση της 41845

    Re: Προβλημα μετά το ανεβασμα των αρχείων στον Server.

    Αν η εφαρμογή σου δουλεύει σε local mode και δεν παίζει στον server, πρέπει να δεις τι βασικές διαφορές υπάρχουν σε θέματα υποδομής (π.χ. write permissions σε folders, execute permissions, κλπ) αν και το πιο κλασσικό είναι να έχεις ξεχάσει κάποιο local connection string.

    Μια και είσαι σε share-hosted περιβάλλον υποθέτω και όχι απόλυτα δικό σου server, είναι πολύ πιθανόν το

    <add name="Data" connectionString="Server=localhost;User ID=root;Password=admin;Persist Security Info=True;Database=Data;character set=greek" providerName="MySql.Data.MySqlClient"></add>

    να μην παίζει γιατί ο remote database host να μην ακούει στο "localhost".

    Anyway, το βασικό θέμα σου σε πρώτο επίπεδο είναι να μπορέσεις να δεις το error message. Βλέπω ότι έχεις βάλει <customErrors mode="off"/>, ενώ το καλό ASP.NET προτείνει <customErrors mode="Off"/>. Άλλαξε το σε σωστό capitalization και θα δεις τι φταίει.


     


    The people of the straight land have really got it made, a warm friendly sleep from the craddle to the grave
  •  02-06-2008, 14:35 42581 σε απάντηση της 41845

    Απ: Προβλημα μετά το ανεβασμα των αρχείων στον Server.

    μηπως χρησιμοποιεις καποιο εξωτερικο αρχειο, καποιο DLL?? Για παραδειγμα αν χρησιμοποιεις Ajax θα πρεπει να ανεβασεις και τα DLL που θελει ο Ajax.
Προβολή Τροφοδοσίας RSS με μορφή XML
Με χρήση του Community Server (Commercial Edition), από την Telligent Systems