本文介绍了无法访问Web应用程序中的网络共享的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我有两个具有相同应用程序的Web服务器.由于此上传文件已移至单独的服务器,因此我需要实现负载平衡器.

两个Web服务器是服务器1"和服务器2".

对于服务器1"应用程序,我将文件上传到服务器2"共享路径中.当我从服务器1"访问服务器1"应用程序时,它工作正常.当我从服务器2"访问服务器1"应用程序时,将引发错误.

当我给出<identity impersonate="true" username="user" password="pwd" />...时,它工作正常.不假冒我该怎么做?

Hi All,
I have two web servers with same application. I need to implement load balancer, due to this upload files are moved into separate server.

Two web servers are "server 1" and "server 2".

For "server 1" application, i upload the files in "server 2" shared path. When I access the "server 1" application from "Server 1", it is working fine. When I access "server 1" application from "server 2", it throws an error.

When I give <identity impersonate="true" username="user" password="pwd" />... it is working fine. Without impersonate how I do this ?

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.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   capcom.CapCom.Closelog()
   capcom.CapCom.ProcessMulRequest(String RQxml)
   CAPRC.WebForm1.PostTransaction() in D:\ADIB\CAPRC\Engine.aspx.vb:1317
   CAPRC.WebForm1.Page_Load(Object sender, EventArgs e) in D:\ADIB\CAPRC\Engine.aspx.vb:812
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Page.ProcessRequestMain() +750



--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2443; ASP.NET Version:1.1.4322.2470

推荐答案


这篇关于无法访问Web应用程序中的网络共享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 22:57