extending error logging?

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.
11/23/2007 2:22:37 AM
Gravatar
Total Posts 13

extending error logging?

Hi everyone,

I've (more or less) successfully installed mojoportal on my hosting env. Most of the pages work fine, some however, throw nice exceptions. When I look into the error log, I get this:

[2007-11-22 20:13:16,593 [1] ERROR mojoPortal.Web.Global [2007-11-22 20:14:20,437 [1] ERROR mojoPortal.Web.Global

Which isn't very helpful. Can I extend this error message, with a detailed exception message? Keep in mind, that I'm not very fluent in log4net :-)

This is one of the errors I get on one of the pages:

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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
mojoPortal.Web.AdminUI.PageProperties.PopulateLabels() +53
mojoPortal.Web.AdminUI.PageProperties.Page_Load(Object sender, EventArgs e) +274
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061

This is another page:

  Server Error in '/' Application.
--------------------------------------------------------------------------------

 

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Unknown server tag 'portal:mojoOpenIdLogin'.

Source Error:


Line 35: <mp:SiteLabel id="SiteLabel4" runat="server" ForControl="OpenIdLogin1" CssClass="settinglabelFixedHeight" ConfigKey="ManageUsersOpenIDURILabel"></mp:SiteLabel>
Line 36: <div>
Line 37: <portal:mojoOpenIdLogin ValidationGroup="oid" UriValidatorEnabled="false" ID="OpenIdLogin1" runat="server" CssClass="openid_login" />
Line 38: <asp:Label ID="lblLoginFailed" runat="server" EnableViewState="False" Visible="False" />
Line 39: <asp:Label ID="lblLoginCanceled" runat="server" EnableViewState="False" Visible="False" />

Source File: /Secure/UserProfile.aspx Line: 37


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

 

 

This last error has to do with OpenId. I removed the dll from the bin, and disabled openid in web.config.. Any ideas?

11/23/2007 4:18:29 AM
Gravatar
Total Posts 46

Re: extending error logging?

Hi Twinsen, In the medium trust docs http://www.mojoportal.com/mediumtrust.aspx it suggests removing the openId login control from the login page. Cheers, Rob
11/23/2007 4:25:39 AM
Gravatar
Total Posts 13

Re: extending error logging?

I did read that doc, and removed it from the login page. Thx for your input tho' ;)

11/23/2007 5:48:10 AM
Gravatar
Total Posts 18439

Re: extending error logging?

Hi,

I acknowledge there are some issues with the current packaged release under medium trust. I was able to help someone else by packaging up the latest code for them. Which db are you using? I'm not really ready to make the next official release but if you like I can package up a preview release of the current code that should solve the openid medium trust issue.

The first error looks like a null reference about a resource file. My guess is either you have configured the default culture to something other than english and the resource file for the chosen language is missing some keys or else maybe all the resource files did not get uploaded to your site under the App_GlobalResources folder. If you set the default culture to something other than english, you must make sure you have a complete translation of all the keys.

Best,

Joe

11/23/2007 9:11:10 AM
Gravatar
Total Posts 13

Re: extending error logging?

I'd love a preview package! I'll send you my ftp location/login through the 'contact me' module.

Hope this works!

About the error messages, you could be right. I had lots of problems uploading the many files, I got disconnected a bunch of times. It could be possible, that some resource files are missing, I'll check it tonight. Thx for the tip!

11/23/2007 9:14:21 AM
Gravatar
Total Posts 13

Re: extending error logging?

btw, I'm using MySQL, thought you should know!

11/24/2007 6:30:42 AM
Gravatar
Total Posts 13

Re: extending error logging?

Ok, thank you for the new files Joe!

However, I still get this error:

Server Error in '/' Application.
--------------------------------------------------------------------------------

 

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Unknown server tag 'portal:mojoOpenIdLogin'.

Source Error:


Line 1: <%@ Control Language="C#" AutoEventWireup="false" CodeBehind="OpenIDLoginControl.ascx.cs" Inherits="mojoPortal.Web.OpenIdLoginControl" %>
Line 2:
Line 3: <portal:mojoOpenIdLogin ID="OpenIdLogin1" runat="server" CssClass="openid_login"
Line 4: RequestCountry="Request" RequestEmail="Require" RequestGender="Request"
Line 5: RequestPostalCode="Request" RequestTimeZone="Request"
 

Source File: /Controls/OpenIDLoginControl.ascx Line: 3


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

 

I can't add the OpenId dll, because of the permission issues, and I disabled the use of openid in the web.config..

11/24/2007 9:19:56 AM
Gravatar
Total Posts 18439

Re: extending error logging?

I don't think you replaced all the files. If you had upload errors try uploading a folder at a time. Also make sure you use the Web.config file I sent and re-apply your customizations (if any) don't try to use the previous one.

Hope it helps,

Joe

11/24/2007 9:29:17 AM
Gravatar
Total Posts 13

Re: extending error logging?

You might be right on the uploading part, I got disconnected quite often. I'll start again from scratch :-)


I'll let you know how it works out!

11/25/2007 7:58:05 AM
Gravatar
Total Posts 13

Re: extending error logging?

Works like a charm!

I now upload one folder at a time, no errors this time.. Seems I can't hammer this FTP server with uploading the whole project at once..

Only thing that doesn't work yet is the filemgr, I think the hosting env doesn't allow me to use this part of the project.

Thx for all your help!

11/25/2007 8:04:22 AM
Gravatar
Total Posts 18439

Re: extending error logging?

Hi,

Glad its working! I have found myself that File Manager is broken under medium trust if the hosted environment is IIS7 (ie. windows vista) but works for me in IIS6 on Win 2003 as long as NeatUpload is disabled.

Might be related to the unfixed bug in IIS7 noted here:

http://www.brettle.com/neatupload

If you want to vote for MS to fix it, visit here:

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=308352

Best,

Joe

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