http://www.blueidea.com/bbs/archivecontent.asp?id=1349234

解决方案 »

  1.   

    1. 建立一个空白解决方案blank solution,如:d:\MyProject\MyProject.sln2. 在d:\MyProject下建一个Web Application的根目录d:\MyProject\WebMis并设为http://localhost/WebMis的虚拟目录3. 在WebMis目录下根据模块分别新建目录,如:d:\MyProject\WebMis\Login和d:\MyProject\WebMis\CheckOut4. 在VS.net中根据模块新建web application,如:http://localhost/WebMis/Login和http://localhost/WebMis/CheckOut 5. 新建后Login和CheckOut两个目录自动被设置为虚拟目录6. 在WebMis项目中添加Login和CheckOut的项目引用7.在IIS管理器中删除Login和CheckOut的虚拟目录8. 删除各项目的global.asax(除根项目)9. 除去个项目的web.config(除根项目)中的如下代码:
    <authentication mode="Windows" />
    <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />
    或删掉web.config(若不需要在各目录中进行配置)10. 编译后,即可运行。
      

  2.   

    我按上面的方法试过了,可是还是不行!
    session还是传不过去