Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

GP2013 Web Client Unexpected error

Posted on by Microsoft Employee

Hi, after installing the Web Client, I get an unexpected error when trying to Sign In.  

This is what I see in the event log when trying to sign in.. Have someone seen this error before?

An error occurred while creating a session: '

Date: 05/07/2013 2:37:46 PM

SessionId: dufaisab_2013-7-5_14-37-46-492_HR-FIN-V

ProcessId: 0

ProcessUsername: cstmcorp\dufaisab

TenantName: GPWebApp

ApplicationDirectory: C:\Program Files (x86)\Microsoft Dynamics\GP2013\

DexInitializationFile: C:\Program Files (x86)\Microsoft Dynamics\GP2013\Data\Dex.ini

SetFile: C:\Program Files (x86)\Microsoft Dynamics\GP2013\Dynamics.set

Exception Details: System.ComponentModel.Win32Exception (0x80004005): The directory name is invalid

  at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)

  at Microsoft.Dynamics.GP.Web.Services.Session.SessionProcess.StartableSessionProcess.TryToStartProcess()

  at Microsoft.Dynamics.GP.Web.Services.Session.SessionProcess.StartableSessionProcess.Start()

  at Microsoft.Dynamics.GP.Web.Services.Session.Service.SessionCreator.CreateSession(SessionCreationContext creationContext, Uri runtimeServiceBaseAddress, SessionUserInfo sessionUserInfo)

'.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GP2013 Web Client Unexpected error

    Having an issue somewhat like this - user only gets it for one of the four companies that he does work in - it happens when trying to approve PO's via workflow process

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GP2013 Web Client Unexpected error

    Its working...  ;-)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GP2013 Web Client Unexpected error

    Hi again,

    Arggghhh... I think I've found my problem... I do not have the GP Desktop client installed (with the web client runtime) on my IIS server.  I should have looked with both eyes open as it is clearly mentionned in the documentation (d'oh)...   I'll let you know of the outcome.

    Many thanks for your help troubleshooting.

  • Steve Kubis Profile Picture
    Steve Kubis on at
    RE: GP2013 Web Client Unexpected error

    The only thing I see that's different on your installation is the machine name. Personally, I've never used any special characters in the machine name. Your machine name contains dashes. I don't know whether that's a problem...it's just a difference I can see.

    There are a couple of things you can try to see if you can get more information about the issue. First, show the hidden folders on the system. When you log in, you should see folders in the C:\ProgramData\Microsoft Dynamics\GPSessions\Data\ folder. This is where temporary data is written for each session, and where the web client may be having issues writing to a directory.

    The second thing to do is to turn on logging for the web client. Page 78 of the Web Client Installation and Administration Guide (for SP1) tells you how to do that. You'll need to update the TenantConfiguration.xml file to turn on logging. The logging can be extensive, but may give you an idea of what's actually happening when the error occurs.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GP2013 Web Client Unexpected error

    PS.. The 2 GP servcies are up and running..  

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GP2013 Web Client Unexpected error

    I tried with URL hr-fin-v.ad.technomuses.ca/GP..   I no longer get a certificate error but I still get the same error message recorded on my server:  the directory name is invalid.. (see below).  

    PS.. The 2 GP services

    An error occurred while creating a session: '

    Date: 09/07/2013 10:10:53 AM

    SessionId: dufaisab_2013-7-9_10-10-53-185_HR-FIN-V

    ProcessId: 0

    ProcessUsername: cstmcorp\dufaisab

    TenantName: GPWebApp

    ApplicationDirectory: C:\Program Files (x86)\Microsoft Dynamics\GP2013\

    DexInitializationFile: C:\Program Files (x86)\Microsoft Dynamics\GP2013\Data\Dex.ini

    SetFile: C:\Program Files (x86)\Microsoft Dynamics\GP2013\Dynamics.set

    Exception Details: System.ComponentModel.Win32Exception (0x80004005): The directory name is invalid

    ......

    and I'm still getting the following error in the webmanagementconsole when I click on configure:  The required URL to the Session Central Service was not valid.  The URL is --> hr-fin-v.ad.technomuses.ca/SessionCentralService

    This error does not generate anything on the server that I could find...  

    Many thanks for your help..

  • Steve Kubis Profile Picture
    Steve Kubis on at
    RE: GP2013 Web Client Unexpected error

    When you log in to the Dynamics GP web client site, do you get a security certificate error? You need to use the fully-qualified domain name for the machine in every place that it's needed, such as when you supply the URL to access the web client.

    That means you should be using hr-fin-v.ad.technomuses.ca/GP

    to access the web client. That should also be the full name that you saw when you chose the security certificate for the Session service.

    If the names aren't consistent, you'll see security certificate errors, and the login won't be successful.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GP2013 Web Client Unexpected error

    Hi again,

    When I go in my webmanagementconsole and I click on 'Session Management' and then click on the 'configure' button, it gives me this message:  The required URL to the Session Central Service was not valid or being reconfigured.  Then it lists my url which is --> hr-fin-v.ad.technomuses.ca/SessionCentralService

    If I try to acces that URL directly, it loads a page about Windows© Communication Foundation service.

    The only think I notice is that that URL uses ad.technomuses.ca while to access GP, the URL I enter is https://hr-fin-v/GP/Views/LogOn.aspx. (ad.technomuses.ca is our AD domain name)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GP2013 Web Client Unexpected error

    Hi,

    Thank you very much for your reply.. I'm running the GP2013 web client installation from the SP1 package and the installation does not ask for the installation path so it must be installing in the default location.  I did the Single machine installation..  

    I've just removed and reinstall the WebClient and IIS is pointing to C:\program files\Microsoft Dynamics\GP Web Client\GPWeb.   Got the same error... ;-(

  • Steve Kubis Profile Picture
    Steve Kubis on at
    RE: GP2013 Web Client Unexpected error

    What path did you choose to install the GP web client? Did you use the default location in the GP Web Client installer, or did you pick a different path? When a new session is created, some data is written to a session folder that is located inside of the GP Web client installation location you specified. If this path is too long (greater than 255 characters, if I recall correctly) then the files can't be created. If that's the case, then you need to install the web client into a location with a shorter path.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans