cancel
Showing results for 
Search instead for 
Did you mean: 

IP and machine name in browser gets HTTP Status 401 Unauthorized

Former Member
0 Kudos

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

 

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186498
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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