Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
ASP.NET 1.0/1.1
Errore Application con un controllo ascx.
lunedì 12 novembre 2007 - 14.47
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
roberta123
Profilo
| Newbie
23
messaggi | Data Invio:
lun 12 nov 2007 - 14:47
Ciao a tutti,
utilizzando VS.Net 2003 ho il seguente problema con un controllo A.ascx che è utilizzato dalla pagina B.aspx nella quale viene richiamato come
<@ Register TagPrefix ….> e poi <uc1:A ….>. In locale tutto funziona correttamente ma quando ho pubblicato sul server mi appare il seguente messaggio:
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:
Line 31: private static bool __initialized = false;
Line 32:
Line 33: public A_ascx() {
Line 34: if ((ASP.A_ascx.__initialized == false)) {
Line 35: ASP.A_ascx.__initialized = true;
Source File: c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\......... Line: 33
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
sitoweb2007.pub.A..ctor() +55
ASP.A_ascx..ctor() in c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\...:33
ASP.B_aspx.__BuildControlmioticket() in D:\Dati\www.sitoweb.it\pub\B.aspx:14
ASP.B_aspx.__BuildControlTree(Control __ctrl) in D:\Dati\www.sitoweb.it\pub\B.aspx:1
ASP.B_aspx.FrameworkInitialize() in c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\......:0
System.Web.UI.Page.ProcessRequest() +85
System.Web.UI.Page.ProcessRequest(HttpContext context) +18
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407
Qualcuno ha qualche idea su cosa possa essere successo.
Grazie.
Torna su
Stanze Forum
Elenco Threads
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?
Dopo esserti registrato potrai chiedere
aiuto sul nostro
Forum
oppure aiutare gli altri
Consulta le
Stanze
disponibili.
Registrati ora !