NullReferenceException during my first setup launch...

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
9/4/2009 7:14:29 AM
Gravatar
Total Posts 6

NullReferenceException during my first setup launch...

Windows 2003

Mysql

MojoPortal 2.3.1.6

 

During the first Setup/Default.aspx launch i receive this error:

---------------------------------------------------------------------------------------------------------------

Riferimento a un oggetto non impostato su un'istanza di oggetto.

Descrizione: Eccezione non gestita durante l'esecuzione della richiesta Web corrente. Per ulteriori informazioni sull'errore e sul suo punto di origine nel codice, vedere l'analisi dello stack.

Dettagli eccezione: System.NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.

Errore nel codice sorgente:

Durante l'esecuzione della richiesta Web corrente è stata generata un'eccezione non gestita. Per informazioni sull'origine e la posizione dell'eccezione, vedere l'analisi dello stack dell'eccezione riportata di seguito.

Analisi dello stack:

[NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.]

Brettle.Web.NeatUpload.MultiRequestUploadModule.get_UploadPath() +38

Brettle.Web.NeatUpload.UploadHttpModule.Application_BeginRequest(Object sender, EventArgs e) +309

System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68

System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

---------------------------------------------------------------------------------------------------------------

 

Anyone can help me?

thanks a lot

9/4/2009 8:06:43 AM
Gravatar
Total Posts 18439

Re: NullReferenceException during my first setup launch...

Hi,

I cannot read the error details so I'm not sure what the problem is. Possibly you are hosted in Medium Trust and need to configure accordingly.

Make sure also that you have .NET 3.5 SP1 installed.

Hope it helps,

Joe

9/4/2009 8:46:47 AM
Gravatar
Total Posts 6

Re: NullReferenceException during my first setup launch...

Thanks... i use the medium trust web.config file and it seems to go on... but now i receive this notify during the sistem verify:

--------------------------------------------------------------------------------------

Riscontrati problemi di privilegi del File system.

An Error Occurred:Impossibile trovare una parte del percorso 'D:\Inetpub\webs\pilonicobadiolacom\Data\Sites\1\GalleryImages\test.config'.

Source:mscorlib

Stack Trace in System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) in System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) in System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) in System.IO.StreamWriter.CreateFile(String path, Boolean append) in System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) in System.IO.StreamWriter..ctor(String path, Boolean append) in System.IO.File.CreateText(String path) in mojoPortal.Web.mojoSetup.TouchTestFile(String pathToFile) in mojoPortal.Web.UI.Pages.SetupHome.GetFolderDetailsHtml() in mojoPortal.Web.UI.Pages.SetupHome.ProbeSystem() in mojoPortal.Web.UI.Pages.SetupHome.Page_Load(Object sender, EventArgs e) in System.Web.UI.Control.OnLoad(EventArgs e) in System.Web.UI.Control.LoadRecursive() in System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

--------------------------------------------------------------------------------------

 it seems the routine don't find a part of the path  'D:\Inetpub\webs\pilonicobadiolacom\Data\Sites\1\GalleryImages\test.config'...

the path doesn's exist cause my web folder isn't called "pilonicobadiolacom" but "pilonicobadiola.com"... what's the problem?

thanks again and sorry for my english ;-)

 

9/4/2009 9:03:19 AM
Gravatar
Total Posts 18439

Re: NullReferenceException during my first setup launch...

Hi,

That is the correct file system path, its not the same as an url. The problem is that the /Data folder is not writable by the web process. Its trying to create the test file there to test if it has correct file permissions but it does not. You need to make the /Data folder and all its child folders and files writable by the web process. Sometimes in medium trust it is also needed to make the App_Data folder also writable.

Hope it helps,

Joe

9/4/2009 9:07:30 AM
Gravatar
Total Posts 6

Re: NullReferenceException during my first setup launch...

the folder containing my web site is called pilonicobadiola.com... the data folder, the app_data folder and all the subfolders are read/write/exec... :|

9/4/2009 9:15:49 AM
Gravatar
Total Posts 18439

Re: NullReferenceException during my first setup launch...

 

I would create the folder if it does not exist at /Data/Sites/1/GalleryImages

Hope it helps,

Joe

9/4/2009 9:27:11 AM
Gravatar
Total Posts 6

Re: NullReferenceException during my first setup launch...

I create manually the folder and i set it read/write/exec... but now the routine say to me that the data folder isn't writable... the data and all the subfolders and all the files are writable...

9/4/2009 9:38:58 AM
Gravatar
Total Posts 18439

Re: NullReferenceException during my first setup launch...

It does not lie. you may think it is writable but it is not writable by the web process user.

Hope it helps,

Joe

9/4/2009 9:40:56 AM
Gravatar
Total Posts 6

Re: NullReferenceException during my first setup launch...

i knot he don't lie... but with my filemanager I only can set it Writable Readable Executable... :|

9/4/2009 9:46:44 AM
Gravatar
Total Posts 18439

Re: NullReferenceException during my first setup launch...

Does your file manager list the user? Usually permissions are associated with a user. There are usually different users for ftp and web process. Whatever user the web process runs as is the user who needs permission to write but does not have it. If the file manager can't set permissiosn for the web process user then you may need to ask your host to make those folders writeable.

Hope it helps,

Joe

9/4/2009 9:49:56 AM
Gravatar
Total Posts 6

Re: NullReferenceException during my first setup launch...

thanks... I'll try ;-)

You must sign in to post in the forums. This thread is closed to new posts.