我的问题有关web.configs和虚拟目录.我想知道的是,如果我已经建立了一个虚拟目录,例如www.example.com/admin,该站点是否可以连接web.config ... [英] My question regarding web.configs and virtual directories. What i would like to know is if i made a virtual directory for example www.example.com/admin is there anyway to connect the web.config...

查看:73
本文介绍了我的问题有关web.configs和虚拟目录.我想知道的是,如果我已经建立了一个虚拟目录,例如www.example.com/admin,该站点是否可以连接web.config ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只有ASPX(HTML)文件通过虚拟目录运行,但是当连接到数据库时,它找不到web.config连接.
< appsettings>
<添加密钥="xxxx" value =数据源= xxx.xxx.x.xxx \ SQLEXPRESS;持久性安全信息= True;初始目录=数据库名称;集成安全性= true;">

我正在使用此连接

Only ASPX (HTML) file run through virtual directory but when connect to database it doesn''t find web.config connection.
<appsettings>
<add key="xxxx" value="data source=xxx.xxx.x.xxx\SQLEXPRESS; Persist Security Info=True; initial catalog=database_name; integrated security=true;">

I am using this connection

Collapse | Copy Code
<appSettings>
     <add key="xxxxx" value="data source=xxx.xxx.x.xxx\SQLEXPRESS; Persist Security Info=True; initial catalog=database_name; integrated security=true;" />
<add key="CrystalImageCleaner-AutoStart" value="true" />
    <add key="CrystalImageCleaner-Sleep" value="60000" />
    <add key="CrystalImageCleaner-Age" value="120000" />
</appSettings>

推荐答案



使用以下链接在虚拟目录中部署Web应用程序
http://www.advancedinstaller.com/user-guide/tutorial-iis.html [ ^ ]
祝你好运
Hi,

use following links to deploy web application in virtual directory
http://www.advancedinstaller.com/user-guide/tutorial-iis.html[^]
Best Luck


这篇关于我的问题有关web.configs和虚拟目录.我想知道的是,如果我已经建立了一个虚拟目录,例如www.example.com/admin,该站点是否可以连接web.config ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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