子Web配置中的会话状态设置 [英] Session State Setup in Sub Web Config

查看:60
本文介绍了子Web配置中的会话状态设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我将这段代码放在子Web配置中,则这段代码会出现问题.我不能将其放在根Web配置上.

This piece of code is having issues if I put this one on a sub web config. I cannot put this one on the root web config.

<configuration>
    <system.web>
    <sessionState mode="InProc" timeout="10" cookieless="UseUri" ></sessionState>
    </system.web>
</configuration>



这是我产生的错误使用超出应用程序级别注册为allowDefinition ="MachineToApplication"的节是错误的.此错误可能是由于虚拟目录未在IIS中配置为应用程序引起的."


任何人都知道如何工作吗?

谢谢



This is the error that i produce "It is an error to use a section registered as allowDefinition=''MachineToApplication'' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS."


anyone knows on how can this work?

thanks

推荐答案

如果我将子文件夹设置为IIS中的应用程序,则缺少主题;如果我将主题复制到子文件夹中,即使主页位于子文件夹中
If i set the sub folder as app in IIS, themes are missing, If i copy the themes inside the sub folder, master pages are missing even though the master page are inside the sub folder


这篇关于子Web配置中的会话状态设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆