Skip to Content
author's profile photo Former Member
Former Member

IP and machine name in browser gets HTTP Status 401 Unauthorized

Hi experts,

I am getting HTTP 401 Error when I try to access /Osoft application within server with IP like http://192.168.1.50/Osoft or http://machinename/Osoft, but when I try to open http://localhost/Osoft I do not get this error on server.

Any ideas?


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

The request failed with HTTP status 401: Unauthorized. 
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.Net.WebException: The request failed with HTTP status 401: Unauthorized.

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: 


[WebException: The request failed with HTTP status 401: Unauthorized.]
   Microsoft.VisualBasic.CompilerServices.Container.InvokeMethod(Method TargetProcedure, Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags) +202
   Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack) +275
   OSoft.Consumers.ZFP.WebBase.Utility.SetWSCredential(String strServiceName, String strMethod, String strParameter, String strContext, String strSecurity) +9306
   OSoft.Consumers.ZFP.WebBase.Utility.GetLastUserApp(CPMUser& mUser, String strAppServerURL, String strSecurity, String strContext, Boolean bServerPathReset) +1419
   OSoft.Consumers.ZFP.WebBase.PageBase.Page_Init(Object sender, EventArgs e) +1906
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnInit(EventArgs e) +99
   System.Web.UI.Page.OnInit(EventArgs e) +12
   OSoft.Consumers.ZFP.WebBase.PageBase.OnInit(EventArgs e) +12
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378

 

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 13, 2011 at 02:55 PM

    Hi,

    it seems that the user that you use to acces is not registered in BPC, please check if the user is registered in the admin console.

    Kind regards

    Roberto

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      I have found solution, PC_MS folder was copied from another instance and web.config file was problematic.

      	<appSettings>
      		<!-- base locations of servers -->
      		<add key="AppServer_URL" value="http://XXX/osoft/app"/>
      		<add key="AppServer_AUTH" value="1"/><add key="UserID" value="***"/><add key="UserPassword" value="***"/></appSettings>
      	<!--system.codedom-->
      	<system.codedom>
      

      Regards,

      Ergin Ozturk

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.