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/25/2006 11:44:29 AM
Gravatar
Total Posts 146

Now: About Brettle.Web.NeatUpload

While app is loading de Default.aspx throw this error:

[Exception: Unhandled Exception while processing NeatUpload child request]
Brettle.Web.NeatUpload.UploadHttpModule.Application_BeginRequest(Object sender, EventArgs e) +858
System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

Ufff... It has been a long day…, but I will not stop until having working it




							
5/25/2006 11:48:35 AM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload

Opps !!, the question!.

What can be happening when loading the page that causes this error?
5/25/2006 12:38:58 PM
Gravatar
Total Posts 148

Re: Now: About Brettle.Web.NeatUpload

Are you sure that is the entire error message and stack trace?  NeatUpload processes all requests, so you would see something like that no matter what the underlying error was.

--Dean
5/25/2006 5:26:59 PM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload

Yes, all message is this:

[NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.]
mojoPortal.Web.MasterPage..ctor() +230
ASP.Default_aspx.__BuildControlMPContainer() in C:\WebSites\clinicas\Default.aspx:3
ASP.Default_aspx.__BuildControlTree(Control __ctrl) in C:\WebSites\clinicas\Default.aspx:1
ASP.Default_aspx.FrameworkInitialize() in c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\mojo\e8a30e8a\1b89c284\iftlds9h.0.cs:0
System.Web.UI.Page.ProcessRequest() +84
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

[Exception: Unhandled Exception while processing NeatUpload child request]
Brettle.Web.NeatUpload.UploadHttpModule.Application_BeginRequest(Object sender, EventArgs e) +858
System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

I think: like the first exception is around of NeatUpload... then the solution to the problem must be begin by it.
  
I will be waiting any comment about that...

Thanks in advance



5/25/2006 5:34:00 PM
Gravatar
Total Posts 148

Re: Now: About Brettle.Web.NeatUpload

The NullReferenceException is not caused by NeatUpload and is the real cause of the problem.  I'm not sure what is causing the it.  Joe, might have an idea.

FYI, the output appears the way it does because NeatUpload catches the exception and rethrows it.

--Dean
5/25/2006 5:48:24 PM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload

[NullReferenceException: Reference to object nonestablished like instance of an object]

FYI ?: (what means?)

For other side:
Can you tell me, -in a few words- which is the mission of NeatUload?

Thanks
 
5/25/2006 5:55:40 PM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload


Dean, don't worry about which is the mission of NeatUpload, I can see it into your web site, great !. (FYI?).   

Joe:

If you can say me something about the exception... please?!

Thanks again
5/26/2006 1:56:08 AM
Gravatar
Total Posts 18439

Re: Now: About Brettle.Web.NeatUpload

Rueben,

I suspect it is a problem with your skin. Are you using a built in skin or a custom skin?

What I would do is set a break point in the constructor of ~/Components/MasterPage.cs, step through the code and see what is the null reference.

Maybe you have something missing from your skin.

Hope it helps,

Joe
5/26/2006 4:13:13 AM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload

Hi Joe, (I'm here again...)

You have a right. I can see something more of information. Can you see something that aid in the solution?. I, will continue testing meanwhile...

Referencia a objeto no establecida como instancia de un objeto.

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: System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.

Error de código fuente:

Línea 69: 				SiteSettings siteSettings = (SiteSettings) HttpContext.Current.Items["SiteSettings"];
Línea 70: skinFolder = "~/Data/Sites/" + siteSettings.SiteID.ToString() + "/skins/";
Línea 71: skinName = siteSettings.Skin.Replace(".ascx","") + "/layout.ascx";
Línea 72:
Línea 73: // implement user skins

Archivo de origen: E:\SysDevNET\mojoportal\Web\Components\MasterPage.cs    Línea: 71

Seguimiento de la pila:

[NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.]
mojoPortal.Web.MasterPage..ctor() in E:\SysDevNET\mojoportal\Web\Components\MasterPage.cs:71
ASP.Default_aspx.__BuildControlMPContainer() in E:\SysDevNET\mojoportal\Web\Default.aspx:3
ASP.Default_aspx.__BuildControlTree(Control __ctrl) in E:\SysDevNET\mojoportal\Web\Default.aspx:1
ASP.Default_aspx.FrameworkInitialize() in c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\mojoportalxp\f2b17731\d1fc9148\s9oisflb.0.cs:0
System.Web.UI.Page.ProcessRequest() +83
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

[Exception: Unhandled Exception while processing NeatUpload child request]
Brettle.Web.NeatUpload.UploadHttpModule.Application_BeginRequest(Object sender, EventArgs e) in E:\SysDevNET\mojoportal\NeatUpload\UploadHttpModule.cs:224
System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87


Información de versión: Versión de Microsoft .NET Framework:1.1.4322.2032; Versión de ASP.NET:1.1.4322.2032
5/26/2006 4:25:53 AM
Gravatar
Total Posts 18439

Re: Now: About Brettle.Web.NeatUpload

look in mp_Sites in the skin field. Does it contain the name of a skin that exists?
5/26/2006 4:45:21 AM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload

The field has: subblue,
and this skin exist in :

..\web\Data\Skins\subblue, and the
..\web\data\sites\1\skins\subblue


...whats mistake ?
5/26/2006 6:05:22 AM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload

In the field mp_sites.skin: I changed to p_default, mojo1, and xyz and no matter, the page result with the message is the same...

What other thing could I do to resolve this trouble?

Please...
5/26/2006 6:09:35 AM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload

Opps... in the prev message swap p_default with rasti.
5/26/2006 6:21:22 AM
Gravatar
Total Posts 18439

Re: Now: About Brettle.Web.NeatUpload

I think it might be the siteSettings object that is null but I would have expected the error to occur on the previous line.

I would step through the code and find out exactly what is null. Right after the line where it gets the siteSettings, mouse over the siteSettings and see if its null. If it is then you need to put a break point in global.asax.cs in Application_BeginRequest that is where it puts the siteSettigns into the http context. step through that code and find out why its null.

Hope it helps,

Joe
5/26/2006 7:05:21 AM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload

Thanks Joe.

Excuse me for the question, because I think is only about VS, but when I try to stop the program with breakpoints no work. In other word is like breakpoints not exist.

I will see it
5/26/2006 12:04:46 PM
Gravatar
Total Posts 18439

Re: Now: About Brettle.Web.NeatUpload

In VS you have a dropdown at the top for Release or Debug mode. You have to be in Debug mode for it to stop at break points. You also must have CompilationDebug=true in the web.config.

When you release, you should rebuild in Release mode and set compilationdebug=false in the web.config on a production server.

Hope it helps,

Joe
5/26/2006 12:53:42 PM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload

Thanks for your attention Joe.

Really I don't know what happening. About two things you say me:  'Compilation Debug' in Web.confg and 'Debug' in VS are Ok. And, for other side I see the IIS and flags for debug are ON (in tab Virtual Dir. - Configuration - Debug). In Addition, I put a lot of breakpoint, but the application still go a head without stop.

Please, any question I will be ready to answer, because I need to solve this!

Thanks in advance...
5/26/2006 12:55:31 PM
Gravatar
Total Posts 18439

Re: Now: About Brettle.Web.NeatUpload

In Visual Studio at the top there is a dropdown for Debug or Release, do you have it set to Debug? Not in IIS.
5/26/2006 1:00:24 PM
Gravatar
Total Posts 18439

Re: Now: About Brettle.Web.NeatUpload

Also, try right click the mojoPortal.Web project and choose Properties, then click on Configuration Properties > Debugging

make sure Enable ASP.NET Debugging is set to True and make sure you have the local host url in Start URL maybe something like http://localhost/mojoportal/Default.aspx


Hope it helps,

Joe
5/26/2006 1:20:06 PM
Gravatar
Total Posts 18439

Re: Now: About Brettle.Web.NeatUpload

Thanks a lot

May be, now I am in the right way..., I need to use Windows Authentication, I will see how to activate this and I will continue working....

Thanks again
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.
5/27/2006 10:34:17 AM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload

YYYYEEEEAAAAA !!!!!

I can see the light !!!.
Joe, thank you!. I can see the main page of mojoPortal!. From here, I think that I can to walk with my things.

...but, a last question: In the main menu (top tight) I cannot to see Login, to add new users... may be culture file too ?

Thanks in advance !
5/27/2006 10:47:51 AM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload

I forgot it. Really in my culture file, the line with HomePageLink it was not. Whe I to put this line the app work fine!!!.


Now, I am seeing why I cannot to see the Login link in the main menu.

Thanks Joe.
5/27/2006 12:02:29 PM
Gravatar
Total Posts 146

Re: Now: About Brettle.Web.NeatUpload

Hi Joe.

I'm sorry again.

I cannot to see the Login link in the main menu. I think about my problems are because I update my source code with TortoiseSVN, and I have some conflicted files, and my fixes are not in the right way. Now all work better, at the moment.

Thanks in advance
(And with this I hope to continue more alone... jejeje)
5/27/2006 12:14:46 PM
Gravatar
Total Posts 18439

Re: Now: About Brettle.Web.NeatUpload

make sure the LoginLink is in the layout.ascx for your skin. if it is there then set a breakpoint in page load event for Web/Controls/LoginLink.ascx.cs

Cheers,

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