无法映射路径 [英] Failed to map the path
本文介绍了无法映射路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的*。*
我遇到了错误....
异常详细信息:System.InvalidOperationException:无法映射路径'/'。
如果不是IsPostBack则
会话("重置" ;)= True
Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("〜/ Web.Config")
Dim section As SessionStateSection = DirectCast(config.GetSection(" system.web / sessionState")) ,SessionStateSection)
尺寸超时为整数= CINT(section.Timeout.TotalMinutes)* 1000 * 60
ClientScript.RegisterStartupScript(Me.GetType()," SessionAlert"," SessionExpireAlert(QUOT;&安培; timeout&");",True)
结束如果
请帮助
上帝保佑
解决方案
嗨朋友,
两条建议给你尝试:
1请确保应用程序池标识具有对网站路径的正确授权。
或
2如果在IIS中出现问题,重新启动IIS在其他情况下解决了同样的问题。
运行命令提示符类型: iisreset
尝试后让我知道结果。
祝你有愉快的一天:)
祝你好运,
陈伟伟
Dear *.*
I Got an Error....
Exception Details: System.InvalidOperationException: Failed to map the path '/'.
If Not IsPostBack Then Session("Reset") = True Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~/Web.Config") Dim section As SessionStateSection = DirectCast(config.GetSection("system.web/sessionState"), SessionStateSection) Dim timeout As Integer = CInt(section.Timeout.TotalMinutes) * 1000 * 60 ClientScript.RegisterStartupScript(Me.GetType(), "SessionAlert", "SessionExpireAlert(" & timeout & ");", True) end if
Please Help
God Bless
解决方案
Hi friend,
Two suggestions for you to try :
1 Please make sure that the App Pool identity has the correct authorization to the site's path.
Or
2 Restarting IIS solved the same issue in others’ case if something fails in IIS.
Run Command Prompt type: iisreset
Let me know the result after your trying.
Have a nice day:)
Best regards,
Fletch
这篇关于无法映射路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文