Error adding content to child site

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
1/4/2009 4:35:06 PM
Gravatar
Total Posts 38

Error adding content to child site

 Hi,

I tried to create multiple sites based on folder names. I set the following Web.config values:

I created a child site through "new site" in "site settings", I added "myfolder" to "Folder site mapping" and created the http://my-domain/myfolder/Default.aspx empty file. If I try to add, for example, "Html Content" through the "Features" tab, server log says:

ERROR mojoPortal.Web.Global - 192.168.74.1-it-IT - /Admin/SiteSettings.aspx?SiteID=2
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Npgsql.NpgsqlException:
column "__siteguid" does not exist
Severity: ERROR
Code: 42703
at Npgsql.NpgsqlState+c__Iterator1.MoveNext () [0x00000]
at Npgsql.ForwardsOnlyDataReader.GetNextResponseObject () [0x00000]
--- End of inner exception stack trace ---
at System.Web.UI.Page.ProcessException (System.Exception e) [0x00000]
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]
at System.Web.HttpApplication+c__Iterator2.MoveNext () [0x00000]
at System.Web.HttpApplication.Tick () [0x00000]

Furthermore, if I visit http://my-domain/myfolder, server returns blank page. How could I fix?

Thanks,

LB

1/5/2009 7:02:12 AM
Gravatar
Total Posts 18409

Re: Error adding content to child site

I confirm this as a bug in the pgsql version of mojoPortal. I've fixed it in my local copy so it will be fixed in svn trunk within a few days and will be fixed in the next release coming soon.

Best,

Joe

1/5/2009 7:29:49 AM
Gravatar
Total Posts 38

Re: Error adding content to child site

Thanks Joe,

and viewing a blank page visiting http://my-domain/myfolder depends on this bug?

1/5/2009 7:31:39 AM
Gravatar
Total Posts 18409

Re: Error adding content to child site

Yes, if the child site has no features all you will have is a blank page.

1/6/2009 3:02:29 PM
Gravatar
Total Posts 38

Re: Error adding content to child site

I see you released 2-2-8-2 version. Does it contain the fix yet?

1/6/2009 3:08:08 PM
Gravatar
Total Posts 18409

Re: Error adding content to child site

It does, but not for Mono. It will be another day or 2 before I can produce a package for Mono due to problems with my machine.

Best,

Joe

1/7/2009 12:31:23 PM
Gravatar
Total Posts 18409

Re: Error adding content to child site

I finally uploaded the package for Mono, but I'm not 100% sure if it works using Mono 2.0.1, it does work using Mono built from svn and should work with the upcoming 2.2 release of Mono.

Best,

Joe

1/9/2009 4:09:38 AM
Gravatar
Total Posts 38

Re: Error adding content to child site

The content that belongs here is too complex to display securely.
1/9/2009 6:07:56 AM
Gravatar
Total Posts 18409

Re: Error adding content to child site

If there is a System.Web.Extensions.dll in the big folder delete it, there should not be one as none is included in tha package. It should use the one in the GAC. I think the Mono 2.0.1 release must have some problems, they are very close to shipping 2.2, maybe that will be better, though at the  moment I'm also getting a different error (but still related to scriptmanager) using Mono built from svn as mentioned in this thread.

Best,

Joe

1/9/2009 8:14:03 AM
Gravatar
Total Posts 38

Re: Error adding content to child site

There are two System.Web.Extensions.dll in GAC:

[root@localhost ~]# gacutil -l System.Web.Extensions
The following assemblies are installed into the GAC:
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Number of items = 2

that seem to conflict. Are both of them needed by mojoPortal? I see line referencing to version 1 in web.config:

1/9/2009 8:23:06 AM
Gravatar
Total Posts 18409

Re: Error adding content to child site

Try commenting out the web.config reference to 1.0 version and see if it helps or not.

Best,

Joe

1/9/2009 8:38:05 AM
Gravatar
Total Posts 38

Re: Error adding content to child site

Same error. So, probably a mono bug, but I cannot find anything related to this on https://bugzilla.novell.com

1/9/2009 8:51:49 AM
Gravatar
Total Posts 38

Re: Error adding content to child site

And if I remove from GAC System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, I get

Parser Error

Description: Error parsing a resource required to service this request. Review your source file and modify it to fix this error.

Parser Error Message: Type not found.

Source Error:

Line 20:
Line 21:
Line 22:
Line 23:


Line 24:

Source File: /var/www/html/mojoportal/App_MasterPages/layout.Master Line: 22

Is System.Web.Extensions, Version=1.0.61025.0 still referenced somewhere else?

1/9/2009 9:02:01 AM
Gravatar
Total Posts 18409

Re: Error adding content to child site

It turns out the references in my MonoDevelop solution were using the 1.0 version and needed to be updated. I'll have a new Mono package available later today.

Best,

Joe

1/9/2009 10:29:30 AM
Gravatar
Total Posts 18409

Re: Error adding content to child site

I just replaced the mono release package with a new one. Can you download the new one and give it a try.

Best,

Joe

1/9/2009 11:20:03 AM
Gravatar
Total Posts 38

Re: Error adding content to child site

Great , it works. I can even add content to child site, but I'm still getting a blank page when visiting http://my-domain/myfolder. I'll do more test later.

1/9/2009 3:07:33 PM
Gravatar
Total Posts 38

Re: Error adding content to child site

Uhm, it seemed to add content to child, indeed an error was generated when clicking on the right arrow to add feature:

ERROR mojoPortal.Web.mojoBasePage - 192.168.74.1-it-IT - /mojoportal/Admin/SiteSettings.aspx?SiteID=2
System.NullReferenceException: Object reference not set to an instance of an object
at mojoPortal.Web.AdminUI.SiteSettingsPage.btnAddFeature_Click (System.Object sender, System.EventArgs e) [0x00000]
at System.Web.UI.WebControls.Button.OnClick (System.EventArgs e) [0x00000]
at System.Web.UI.WebControls.Button.RaisePostBackEvent (System.String eventArgument) [0x00000]
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent (System.String eventArgument) [0x00000]
at System.Web.UI.Page.RaisePostBackEvent (IPostBackEventHandler sourceControl, System.String eventArgument) [0x00000]
at System.Web.UI.Page.RaisePostBackEvents () [0x00000]
at System.Web.UI.Page.ProcessRaiseEvents () [0x00000]
at System.Web.UI.Page.InternalProcessRequest () [0x00000]
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]
ERROR mojoPortal.Web.Global - 192.168.74.1-it-IT - /mojoportal/Admin/SiteSettings.aspx?SiteID=2
System.NullReferenceException: Object reference not set to an instance of an object
at mojoPortal.Web.AdminUI.SiteSettingsPage.btnAddFeature_Click (System.Object sender, System.EventArgs e) [0x00000]
at System.Web.UI.WebControls.Button.OnClick (System.EventArgs e) [0x00000]
at System.Web.UI.WebControls.Button.RaisePostBackEvent (System.String eventArgument) [0x00000]
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent (System.String eventArgument) [0x00000]
at System.Web.UI.Page.RaisePostBackEvent (IPostBackEventHandler sourceControl, System.String eventArgument) [0x00000]
at System.Web.UI.Page.RaisePostBackEvents () [0x00000]
at System.Web.UI.Page.ProcessRaiseEvents () [0x00000]
at System.Web.UI.Page.InternalProcessRequest () [0x00000]
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]

If I select "Blog" and right arrow, nothing happens and refreshing page, I can see "Blog" in selected features. But currentlog.config reports that error (and I keep seeing blank page on http://my-domain/myfolder).

Regards,

LB

1/12/2009 7:21:12 AM
Gravatar
Total Posts 38

Re: Error adding content to child site

Could this be a mojoPortal bug, or maybe it depends from something else?

1/12/2009 7:35:43 AM
Gravatar
Total Posts 18409

Re: Error adding content to child site

This doesn't happen on Windows so I think it must be a Mono bug.

Best,

Joe

1/13/2009 3:58:39 AM
Gravatar
Total Posts 38

Re: Error adding content to child site

Ok, indeed this issue seems to happen even when adding new content to existing page on the master site, however contents are actually added and available. Maybe somthing related to mono's ajax management.

Anyway, mojoPortal seems to not process requests to child site: even if I go to http://localhost/somefolder/Default.aspx or create an empty text file named Default.aspx and go to http://somehost/somefolder, I always get a blank page. How could I verify if mojoPortal correctly processes these requests and, in case, make it processes them rightly?

Thanks,

LB

1/13/2009 7:14:40 AM
Gravatar
Total Posts 18409

Re: Error adding content to child site

I am pretty sure this is also a Mono bug as it works on Windows. I've seen a few cases lately when testing mono where I get thread abort exceptrions and see a blank page, and this is even using the latest mono from svn. I know there was a bug fixed recently in Mono where the url-rewriter wasn't working correctly because on IIS it was re-writing to ~/Default.aspx but on Mono it was seeing just /Default.aspx and this was causing problems for virtual directory sites like localhost/mojo because it was not resolving the path correctly. This could be also causing the problem you are seeing.

I'll try testing the latest Mono again today, if I can get past the thread abort exceptions I was having I will be able to fnd out if the same errors are being logged when adding features to child sites.

Best,

Joe

1/13/2009 10:06:47 AM
Gravatar
Total Posts 38

Re: Error adding content to child site

Has this functionality (multiple sites based on folder name) ever worked with some version of mono?

1/13/2009 10:57:18 AM
Gravatar
Total Posts 18409

Re: Error adding content to child site

Well I admit I don't do exhaustive testing on Mono but yes I believe I have tested that before. For sure host names have worked for a long time, for more than a year back in 2004-2005 I was running mojoportal.com and joeaudette.com out of a single mono installation but later moved back to Windows when 2.0 .NET came out.

Best,

Joe

1/13/2009 2:43:10 PM
Gravatar
Total Posts 18409

Re: Error adding content to child site

I've just tested with the latest Mono r123206 and I'm seeing the same errors anywhere updatepanel is used. I've emailed Marek about it. I was able to get a folder site to display in the browser but there are definitley some bugs when using Mono. I'm seeing 404 errors and incorrect redirects where the foldername part of the path is getting doubled up like /folder1/folder1/ when it should just be /folder1/. I believe this is all Mono bugs not sure if there is a way to workaround them or to find out more clearly what is happening different on Mono.

I'm also seeing errors when it tries to copy files for new sites, it get thread abort exceptions and hangs really bad where you have to killall mono or reboot to get it working again.

Best,

Joe

1/16/2009 10:09:44 AM
Gravatar
Total Posts 18409

Re: Error adding content to child site

I did some testing with the Mono 2.2 release VMWare image, and I was able to produce a build of the latest mojoportal that works without the errors reported in this thread. To do this I had to change it back to use the 1.0 System.WEb.Extensions, as apparently the current bugs are all related to the 3.5 .NET version.

I've uploaded a new release package for Mono mojoportal-2-2-8-2-c-pgsqlreleasefiles-for-mono.zip

It does not have the errors reported about adding features and I even tested it with folder based sub sites using relatedsitemode and it worked fine.

Best,

Joe

9/26/2012 3:14:22 PM
Gravatar
Total Posts 30

Re: Analytics Configuration

Exception type: NullReferenceException

 

Hi,

Getting Error:

Exception message: Object reference not set to an instance of an object.

at sts.Analytics.UI.ConfigurationPage.ShowProfiles()

at sts.Analytics.UI.ConfigurationPage.btnStep1_Click(Object sender, EventArgs e)

at System.Web.UI.WebControls.Button.OnClick(EventArgs e)

at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)

at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)

at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)

at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)

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