Now: About Brettle.Web.NeatUpload

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
5/26/2006 1:27:24 PM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload

I am not Guest?---> I'm Romulo!!!  (The previous message was mine )
5/26/2006 1:44:24 PM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload

Now it executes the breakpoints!!! -hurrra!!!-, just I will begin the revision step by step by the code, to see where the null reference of the SiteSetting -or other- object is generated.

Thanks in advance...
5/26/2006 2:23:40 PM
Gravatar
Total Posts 18439

Re: Now: About Brettle.Web.NeatUpload

Excellent! I think you will have much more fun now that you can debug the app
5/26/2006 6:08:50 PM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload

I have a news !!!

Something rare or no?. In line 70 in the figure of the message at 5/26/2006 9:13:13 AM (first page of this thread) the method siteSettings.SiteID.ToString() return -1 ?. It's right ?. After, into UpLoadHttpModule.cs in
  ...
  if ( subWorker.Exception != null ) ----> System.NullReferenceException. (UpLoadHttpModule.cs Line 215)

But the first rare thing is -1 in siteSettings.SiteID

Why happen this?

Thanks in advance...
(Today, saturday in the morning I will continue working)
5/27/2006 1:51:07 AM
Gravatar
Total Posts 18439

Re: Now: About Brettle.Web.NeatUpload

I think you should set a break point in global.asax.cs at the beginning of the GetSiteSettings method and then step through using the F11 key. Something is going wrong while it tries to create your siteSettings object, pay close attention to what host name, and pageid are passed into the constructor of siteSettings from this method and step through every line using F11.

Hope it helps,

Joe
5/27/2006 6:32:10 AM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload

Hi Joe.

Only like a commentary: when I updated mojoportal with svn the file web.config had differences, I will not have altered, in a wrong way, this file and it is causing problems in the initial charge of the application?

Meanwhile I will do that you say me in a previous post.

Thanks again.
5/27/2006 7:00:46 AM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload

Hi again.

The values passed to the constructor siteSettings are:

servername = "localhost"
pageIndex   = 0
pageID       = 0

These given values are correct? , or  which values would have to be?

Thanks in advance...
5/27/2006 7:29:06 AM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload

Other news:

Some tables of database mojoportal are empty !. A few days ago, I have downloaded mojoportal from your site in the version of postgresql, after, I have created database followed instruction of how install mojoportal. It seems to be because the database I am created without all the contents. Ops!. What I have to do now ?. How put the needed content to the tables for mojoportal to work fine ?

Thanks in advance !!!

(I hope you can understand to me that I want to tell you)
5/27/2006 8:12:51 AM
Gravatar
Total Posts 18439

Re: Now: About Brettle.Web.NeatUpload

If you delete the contents of all tables then type a space into web.config and save to force it to restart the application, it should create the default data for you when you request a page. It will fire Application_Start in global.asax.cs which will call mojoSetup.CreateInitialData()

Joe
5/27/2006 9:58:19 AM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload

While the app start up, and after I put a blank into web.config, I get this error:

ERROR: 23502: el valor null para la columna «pagename» viola la restricción not null

Descripción: Excepción no controlada al ejecutar la solicitud Web actual. Revise el seguimiento de la pila para obtener más información acerca del error y dónde se originó en el código.

Detalles de la excepción: Npgsql.NpgsqlException: ERROR: 23502: el valor null para la columna «pagename» viola la restricción not null

Error de código fuente:

Línea 2425:			{
Línea 2426: Connection.Close();
Línea 2427: throw ex;
Línea 2428: }
Línea 2429: }

Archivo de origen: e:\sysdevnet\mojoportal\postgresqldata\dbportal.cs    Línea: 2427

Seguimiento de la pila:

[NpgsqlException: ERROR: 23502: el valor null para la columna «pagename» viola la restricción not null]
mojoPortal.Data.dbPortal.PageSettings_Create(Int32 SiteID, Int32 ParentID, String PageName, String Skin, Int32 PageOrder, String AuthorizedRoles, String EditRoles, String CreateChildPageRoles, Boolean RequireSSL, Boolean ShowBreadcrumbs, Boolean ShowChildPageBreadcrumbs, String PageKeyWords, String PageDescription, String PageEncoding, String AdditionalMetaTags, Boolean UseUrl, String Url, Boolean OpenInNewWindow, Boolean ShowChildMenuPages, Boolean HideMainMenu) in e:\sysdevnet\mojoportal\postgresqldata\dbportal.cs:2427
mojoPortal.Business.PageSettings.Create() in e:\sysdevnet\mojoportal\business\pagesettings.cs:303
mojoPortal.Business.PageSettings.Save() in e:\sysdevnet\mojoportal\business\pagesettings.cs:372
mojoPortal.Business.mojoSetup.CreateHomePage(Int32 siteID, Int32 htmlModuleDefID, Int32 linksModuleDefID, Int32 adminUserID) in E:\SysDevNET\mojoportal\Business\mojoSetup.cs:767
mojoPortal.Business.mojoSetup.CreateInitialData(String templateFolderPath) in E:\SysDevNET\mojoportal\Business\mojoSetup.cs:596
mojoPortal.Web.Global.Application_Start(Object sender, EventArgs e) in e:\sysdevnet\mojoportal\web\global.asax.cs:97
5/27/2006 10:08:52 AM
Gravatar
Total Posts 18439

Re: Now: About Brettle.Web.NeatUpload

Looks like the error is saying that it was trying to put a null value in the pagename field when creating the home page and a null value is not allowed.

The code to create the home page looks like this:

PageSettings homePage = new PageSettings();
            homePage.SiteID = siteID;
            homePage.PageName = ConfigurationSettings.AppSettings.Get("HomePageLink");
            homePage.ParentID = -1;
            homePage.PageOrder = 1;
            homePage.AuthorizedRoles = "All Users;";
            homePage.EditRoles = "Content Publishers;";
            homePage.CreateChildPageRoles = "Content Publishers;";
            homePage.RequireSSL = false;
            homePage.ShowBreadcrumbs = false;
            homePage.PageMetaKeyWords = String.Empty;
            homePage.PageMetaAdditional = String.Empty;
            homePage.PageMetaDescription = String.Empty;
            homePage.PageMetaEncoding = String.Empty;
            homePage.Save();

So I wonder if ConfigurationSettings.AppSettings.Get("HomePageLink"); is coming back null. That value should be in the culture file but maybe it is missing in yours.
You must sign in to post in the forums. This thread is closed to new posts.