转:http://blog.csdn.net/fuyajun001/archive/2010/05/06/5563567.aspx

 

软件环境:

      Windows 7 旗舰版

      Microsoft Visual Studio 2008

      Microsoft SQL Server 2008

----------------------------------------------------------------------------

发布步骤:

      1、打开项目的Properties.

      2、打开Security属性页,选择单选框This is a full trust application.

      3、打开Signing属性页,选择复选框Sign the assembly.选择一个证书,一般选择项目自己生成的,密码可以设置或者不设置。

      4、保存发布。

-----------------------------------------------------------------------------

部署步骤:

      1、在IIS配置站点或者虚拟目录,(略)

      2、打开Visual Studio 2008 Command Prompt命令窗口,运行下面的命令:

            caspol -m -ag 1 -url "<你的发布地址>/*" FullTrust -exclusive on

           

            然后输入Y(YES),回车。

-----------------------------------------------------------------------------

注意事项:

      1、<你的发布地址>不能用LOCALHOST.

      2、客户机也要运行命令 caspol -m -ag 1 -url "<你的发布地址>/*" FullTrust -exclusive on.

      3、数据库连接字符串不能采用信任连接,应该用账号密码。

      4、根据操作系统的不同,可能要为发布目录设置用户权限。


本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/fuyajun001/archive/2010/05/06/5563567.aspx

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/fuyajun001/archive/2010/05/06/5563567.aspx

 

相关文章:

  • 2021-07-28
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-12-08
  • 2022-01-01
猜你喜欢
  • 2022-02-19
  • 2021-04-12
  • 2021-06-28
  • 2022-12-23
  • 2021-05-17
  • 2021-06-18
  • 2021-10-04
相关资源
相似解决方案