惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
罗磊的独立博客
SecWiki News
SecWiki News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Schneier on Security
IT之家
IT之家
博客园 - 聂微东
T
The Exploit Database - CXSecurity.com
Recorded Future
Recorded Future
大猫的无限游戏
大猫的无限游戏
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Vercel News
Vercel News
G
GRAHAM CLULEY
D
DataBreaches.Net
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
SegmentFault 最新的问题
博客园_首页
雷峰网
雷峰网
T
Tenable Blog
Spread Privacy
Spread Privacy
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
Cisco Talos Blog
Cisco Talos Blog
V
Visual Studio Blog
J
Java Code Geeks
博客园 - Franky
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
C
CERT Recently Published Vulnerability Notes
T
Threatpost
Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
T
The Blog of Author Tim Ferriss
V
Vulnerabilities – Threatpost
Recent Announcements
Recent Announcements
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
U
Unit 42
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
K
Kaspersky official blog
有赞技术团队
有赞技术团队
B
Blog
腾讯CDC

博客园 - 雨帘

农村出身的80后身处都市的十大尴尬 HP大中华区总裁孙振耀退休感言(转) 转——如何让上司支持自己的想法 WMS部分互操作完成 支持WMS GeoMapNet开发日志——导出 地图缓存的研究 Research on Tile Map 西湖的残冬 新型统计图 SVG的WebGIS实例 大地经纬度和国家标准坐标转换 建立在不同的数据库引擎的Sql问题,无思路 三层设计模式初步分离 IMS服务自动注册功能实现 聚合(Aggregation)和组合(Composition)的区别 VML脚本产生 脚本操作table 为什么我的ActiveSync连接不上模拟器
Personal ArcSDE不支持IIS6的使用
雨帘 · 2007-10-28 · via 博客园 - 雨帘

    现在由于微软提供了SQL Server 2005 Express的免费版本的数据库,所以ESRI也在这个数据库的基础上开发了Personal ArcSDE来提供免费的SDE功能。
    当然这样确实对提高SDE的使用有好处,只是SQL Server 2005 Express和Personal ArcSDE都具有限制,而且Personal ArcSDE还有编辑和使用的人数限制。
    现在由于项目的要求,在Window Server 2003下使用Personal ArcSDE,而部分需要进行对SDE数据库进行编辑的功能则是采用Arc Engine来连接SDE数据库,当然所有的版本是用9.2的。但是连接的还是采用常用的方式DBMS的验证方式,这个也是ESRI建议使用的方式,如下:

            IPropertySet pPropertySet = new PropertySetClass();
            pPropertySet.SetProperty("SERVER", SrvName);
            pPropertySet.SetProperty("INSTANCE", string.Format("sde:sqlserver:{0}\\sqlexpress", SrvName));
            pPropertySet.SetProperty("DATABASE", DBName);
            pPropertySet.SetProperty("USER", UserName);
            pPropertySet.SetProperty("PASSWORD", Password);
            pPropertySet.SetProperty("VERSION", Version);
            pPropertySet.SetProperty("AUTHENTICATION_MODE", authenticateMode);

            IWorkspaceFactory pWorkspaceFactory = new SdeWorkspaceFactoryClass();
            IWorkspace pWorkspace = null;
            EventLog log = new EventLog("Application");
            log.Source = "Application";
            try
            {
                log.WriteEntry("Start to open SDE");
                pWorkspace = pWorkspaceFactory.Open(pPropertySet, 0);
                log.WriteEntry("Success");
            }
            catch (Exception ex)
            {
                log.WriteEntry("Exception:" + ex.Message);
                throw ex;
            }
    如果将这个代码运行在2003的IIS6下,这个就会无法连接,同时连接一次后,其他页面就不会再有反应了,因为这个时候负责处理的进程W3wp.exe已经被杀死,并重启,所有连接的各类信息已经全部丢失,所以Web的服务器没有了响应。
    如果在Visual Studio.Net 2005下使用调试时将启用VS自带的Web服务器的模拟进程,而这个进程却可以绕过了W3wp的安全检测,或者将IIS6配置成隔离模式下运行,而不是应用程序模式,因为应用程序模式的安全性高很多,而且性能也高些。这个需要在IIS网站的属性的服务面板上进行设置。
    在XP的系统中,由于采用的进程是Aspnet_wp.exe.进程来处理.net的Web应用程序,这个就不会发生以上的问题。