RE: MossMenu Error



Today I found a GREAT blog post that explains exactly how to turn that awful
'Unexpected Error' screen off and let's you see the exception:

In the web.config:

Change
<SafeMode MaxControls="200" CallStack="true"
to
<SafeMode MaxControls="200" CallStack="false"


I found this here:
http://blog.thekid.me.uk/archive/2007/02/15/a-solution-to-quot-an-unexpected-error-has-occurred-quot-in-wss-v3.aspx


--
www.xcomplica.com


"Joe C" wrote:

For those who may run into the same issue, I have found a solution:

First of all, the error was that I was placing the MossMenu outside of the
scope of the DataSource that I was referencing. I didn't realize aspx pages
used scope. Seems that if you want to reference a DataSource that lives
inside an asp:ContentPlaceHolder, you need to have the other control in that
ContentPlaceHolder as well.

How I figured it out: Inside MossMenu I am overriding the OnInit and OnLoad
methods of the base class and doing some simple logging inside a try-catch.
Guess what? I logged an exception in the OnLoad, telling me that my control
couldn't find the datasource I was looking for. Thanks MOSS for eating that
exception.....

Joe
--
www.xcomplica.com


"Joe C" wrote:

Hi Wei Lu,

I understand that the MossMenu code is not supported, that's not my question
however. I am asking how I can get sharepoint to stop eating errors.
Obvously there is an exception being thrown somewhere that MOSS translates
into a nice and friendly and utterly useless "An Unexpected Error Has
Occured" message. Since I can't find anything in the MOSS log files, am I to
assume that I am out of luck? Or is there a way I can make MOSS be more
verbose in its error logging etc.

Regardless of the code I am using (be it my own code or the MossMenu), I
don't see how it's acceptable for MOSS to give me such a useless error
without logging the actual real problem somewhere. I'd be perfectly happy if
I got an error page similar to aspx when I set <customErrors mode="Off" />.

Thanks,

Joe
--
www.xcomplica.com


"Wei Lu [MSFT]" wrote:

Hello Joe,

I understand that you could not get the MossMenu work which is a resource
kit provide from the Sharepoint team.

Due to our support policy, we did not provide the support for the following:

Debugging of source code itself, reading memory dumps or lab setup of
complex scenarios.
Beta product and products that no longer have Extended support from MS.
Third party software or non-HCL hardware.
Resource Kit Utilities.
Licensing issues.
Non-English software or hardware.
Performance issues in a production environment.

I suggest you contact the Sharepoint Team directly to check whether there
are any suggestion.

Thank you for your understanding!

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights
.



Relevant Pages

  • RE: MossMenu Error
    ... Inside MossMenu I am overriding the OnInit and OnLoad ... Obvously there is an exception being thrown somewhere that MOSS translates ... Due to our support policy, we did not provide the support for the following: ... I suggest you contact the Sharepoint Team directly to check whether there ...
    (microsoft.public.sharepoint.portalserver.development)
  • RE: Backup & Monitoring not working!
    ... Error message in Windows Small Business Server 2003: ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... An unhandled exception occurred during the execution of the ...
    (microsoft.public.windows.server.sbs)
  • Re: DropDownList has SelectedValue which in invalid
    ... From your description you want to avoid getting the exception: ... 'ddlAssignedTo' has a SelectedValue which is invalid because it does not ... Microsoft Online Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Cant open Websites With VS2008
    ... Faulting module name: SHELL32.dll, version: 6.1.7100.0, time stamp: 0x49eea6b3 ... If it is Vista or 2008, please open Visual Studio as administrator first. ... please we need the following log and exception ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.general)
  • RE: Strange LocalDataStoreSlot storage has been freed exception
    ... that this exception is generated in the finalizer of LocalDataStoreSlot. ... However using reflector I don't see such an exception being thrown from the ... Microsoft Online Community Support ... nature are best handled working with a dedicated Microsoft Support Engineer ...
    (microsoft.public.dotnet.framework.clr)