本文介绍了无法映射路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


亲爱的*。*


我遇到了错误....


异常详细信息: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)

结束如果

请帮助


上帝保佑



解决方案

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

解决方案


这篇关于无法映射路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-25 10:42