Visualizzazione dei risultati da 1 a 3 su 3

Discussione: pubblicazione

  1. #1

    pubblicazione

    codice:
     
    Devo pubblicare sul web un progetto che funziona benissimo in locale, ma quando lo pubblico avviene qs:
    dalla mia pagina index.html ho un collegamneto ad una pagina user.aspx che mi da l'errore seguente
    
    Server Error in '/' Application.
    --------------------------------------------------------------------------------
    
    Object reference not set to an instance of an object. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    
    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
    
    Source Error: 
    
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
    
    Stack Trace: 
    
    
    [NullReferenceException: Object reference not set to an instance of an object.]
       Personalization.UserState..ctor(String UserId, String dsn) in E:\DNA\samples\QuickStart\aspplus\samples\portal\VB\personalization\Personalization.vb:130
       Personalization.UserStateModule.OnEnter(Object Sender, EventArgs E) in E:\DNA\samples\QuickStart\aspplus\samples\portal\VB\personalization\Personalization.vb:52
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
    
     
    
    
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300

    a cosa è dovuto?

  2. #2
    non capisco...sembra che sia il file web.config a dare problemi


    codice:
    <?xml version="1.0" encoding="utf-8" ?> 
    <configuration>
      <configSections>
        <sectionGroup name="system.web">
          <section name="dsnstore" type="System.Configuration.NameValueSectionHandler,System,Version=1.0.5000.0,Culture=neutral,PublicKeyToken=b77a5c561934e089" />
        </sectionGroup>
      </configSections>
    
      <system.web>
        <customErrors mode="RemoteOnly"/>
    
        <compilation debug="true" defaultLanguage="vb"/>
    
          <authorization>
            <allow users="*" /> 
            
           
          </authorization>
          <authentication mode="Forms" />
    
        <httpModules>
          <add name="Portal Personalization" type="Personalization.UserStateModule,Personalization" />
        </httpModules>
    
        <dsnstore>
          <add key="portaldb" value="server=(local)\NetSDK;database=portal;Integrated Security=SSPI" />
          <add key="pubs" value="server=(local)\NetSDK;database=pubs;Integrated Security=SSPI" />
        </dsnstore>
    
        <globalization requestEncoding="UTF-8" responseEncoding="UTF-8" />
      </system.web>
    </configuration>
    cosa c'è di errato?


    please un aiutino!

  3. #3
    Utente di HTML.it L'avatar di cassano
    Registrato dal
    Aug 2004
    Messaggi
    3,002
    authentication mode="Forms"
    non manca il redirect alla pagina di login ???

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.