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

11-02 22:23