web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Business Portal - Server Error in '/' Application.

(0) ShareShare
ReportReport
Posted on by 1,080

Hi,

We have client encountered this error (see below) they're using business portal 5.1, also I recreated this error in my test web server but unable to find the problem and solution of the error. I notice that this server error occurs if the account session in the business portal (Purchase Requests) is being idle (more than 10 minutes not sure exact time) and when you continue clicked any link under purchase request the error occurs.

Is there any additional setup that I need to configure?

Anyone know this error and have solution , I greatly appreciate if you can help me. :)

 

 

Server Error in '/' Application.


--------------------------------------------------------------------------------

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed.
Details: To enable the details of this specific error message to be viewable on the local server machine, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off". <!-- Web.Config Configuration File -->

<configuration>

<system.web>

<customErrors mode="RemoteOnly"/>

</system.web>

</configuration>
 


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL. <!-- Web.Config Configuration File -->

<configuration>

<system.web>

<customErrors mode="On" defaultRedirect="mycustompage.htm"/>

</system.web>

</configuration>
 

 

Thanks,

Ronie

*This post is locked for comments

I have the same question (0)
  • Rob Bernhardt Profile Picture
    on at

    Ronie,

    We need more information to even start diagnosing.  Open your web.config for the particular SharePoint site.  The path would be something like the following:  d:\inetpub\wwwroot\wss\VirtualDirectories\80.  Change CustomErrors to False and CallStack to True, and run through your scenario again.  You should get more detail after doing this.

    Thanks

    Rob

  • Ronie Profile Picture
    1,080 on at

    Hi Rob,

    Thanks for the quick reply. I changed the CustomErrors to False however I can't find CallStack from web.config file.

    Below is the error when I changed the  CustomErrors to False.

    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.]

      Microsoft.Dynamics.Requisition.Setup.SetupCompany.set_CompanyID(Int16 value) +292

      Microsoft.Dynamics.Requisition.Setup.SetupCompanyVirtualCollection.InsertByID(Int16 companyID) +87

      Microsoft.Dynamics.Requisition.UI.Transaction.RequisitionDoc.InitializeCompanySetup(Boolean forceInit) +123

      Microsoft.Dynamics.Requisition.UI.Transaction.RequisitionDoc.InitializeUserAccess() +166

      Microsoft.Dynamics.Requisition.UI.Transaction.RequisitionDoc.Page_Load(Object sender, EventArgs e) +546

      System.Web.UI.Control.OnLoad(EventArgs e) +131

      System.Web.UI.Control.LoadRecursive() +65

      System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427

    --------------------------------------------------------------------------------

    Version Information: Microsoft .NET Framework Version:2.0.50727.4016; ASP.NET Version:2.0.50727.4016

  • Rob Bernhardt Profile Picture
    on at

    Ronie,

    Check out this KB and see if it helps:  mbs2.microsoft.com/.../kbdisplay.aspx.

    Thanks

    Rob

  • Ronie Profile Picture
    1,080 on at

    Hi Rob,

    Thanks for the KB link, the error occurs only once the session in the business portal (under purchase request page) being idle.

    I my additional investigation - 1.) In the purchase request page if you let the page idle for 20 minutes or more then after 20 minutes you clicked random link (Sample: Edit Request) in the Purchase Request page then the error appears. 2.) I also tried do something in the Purchase Request page to keep the session active for a long time but I didn't encountered the error.

    If I'm not wrong based on mine own investigation the error occurs only once the Internet Explorer is idle and not being used for a long time (20 minutes or more) under Purchase Request page.

    I don't know yet this time if where I'm going to start to fix the error. Is this error need additional configuration in my side to fix? or this is business portal error that need to fix by Microsoft?

    I noticed that this error occurs not only in BP 5.1 but also in BP 5.0 and  I didn't yet try the lower version.

    Hope you can help me cause our client is following up on me about this error.

    Thanks,

    Ronie

  • Verified answer
    Rob Bernhardt Profile Picture
    on at

    Ronie,

     

    I believe the "issue" you're experiencing is due to a configuration setting in IIS.  If you choose your site in IIS, you can configure how long the session lives before it times out.  I've included a screenshot below.

    Thanks

    Rob

  • Ronie Profile Picture
    1,080 on at

    Hi Rob,

    You're great. I tried to change the Time out and didn't encounter the error it seems that the error is due to the expired session.

  • Rob Bernhardt Profile Picture
    on at

    Excellent, thanks for reporting back.

  • Ronie Profile Picture
    1,080 on at

    Hi Rob,

    I have one more problem. Hope you can help me again.  Last month I successfully configured the Business Portal 5.1 and being used for testing. I just notice as of writing this post that I can't access the Business Portal Home | Site Actions | Site Settings and Business Portal Home | Site Actions | Site Permissions even I'm using the administrator account (System Account).

    Error

    File Not Found.

    Troubleshoot issues with Microsoft SharePoint Foundation.

    Correlation ID: 428414cd-104c-4358-92a8-fd7b52686ed0

    Date and Time: 7/25/2012 9:27:28 PM

    Go back to site

  • Rob Bernhardt Profile Picture
    on at

    Ronie,

    Richard Wheeler just ran into the same problem.  The link to his post is below.  I've also included the link that he used to resolve his issue.

    community.dynamics.com/.../158904.aspx

    http://social.technet.microsoft.com/Forums/en-US/portals/thread/60db38b3-5ad8-4fd8-981e-f1a4c755c151

    Thanks

    Rob

  • Ronie Profile Picture
    1,080 on at

    Hi Rob,

    I tried what's says in the links but still the cannot access the site settings and site permission.

    Below are the Alternate Access Mapping in my web server

    For Business Portal - http://gpserver:88

    For Central Administration - http://gpserver:27428

    And the host name is gpserver and the domain is gp2010.com

    I tried steps below:

    • go to Central Administration | Alternate Access Mapping
    • I Select an Alternate Access Mapping Collection ( for Business Portal)\
    • Then add internal URL
    • in the URL protocol, host and port box, I enterned the new internal URL http://gpserver.gp2010.com
    • In the Zone list, I select Default
    • Then save

    Still can't access, then delete created internal url then proceed the step below

    • go to Central Administration | Alternate Access Mapping
    • I Select an Alternate Access Mapping Collection ( for Central Administration)
    • Then add internal URL
    • in the URL protocol, host and port box, I enterned the new internal URL http://gpserver.gp2010.com
    • In the Zone list, I select Default
    • Then save

    Still can't access

    Is my configuration is incorrect or incomplete?

    Need your help.

    Thanks,

    Ronie

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
mtabor Profile Picture

mtabor 1

#2
Victoria Yudin Profile Picture

Victoria Yudin 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans