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

推荐订阅源

Know Your Adversary
Know Your Adversary
云风的 BLOG
云风的 BLOG
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
B
Blog
罗磊的独立博客
宝玉的分享
宝玉的分享
Vercel News
Vercel News
Martin Fowler
Martin Fowler
N
Netflix TechBlog - Medium
P
Proofpoint News Feed
T
Threatpost
Security Latest
Security Latest
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Stack Overflow Blog
Stack Overflow Blog
I
Intezer
P
Privacy International News Feed
D
Docker
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
M
MIT News - Artificial intelligence
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
L
Lohrmann on Cybersecurity
Google DeepMind News
Google DeepMind News
The Last Watchdog
The Last Watchdog
A
Arctic Wolf
IT之家
IT之家
S
SegmentFault 最新的问题
S
Securelist
博客园 - 叶小钗
N
News and Events Feed by Topic
F
Full Disclosure
Security Archives - TechRepublic
Security Archives - TechRepublic
Engineering at Meta
Engineering at Meta
Hacker News: Ask HN
Hacker News: Ask HN
博客园 - Franky
GbyAI
GbyAI
AI
AI
Y
Y Combinator Blog
WordPress大学
WordPress大学
Latest news
Latest news
Microsoft Security Blog
Microsoft Security Blog
人人都是产品经理
人人都是产品经理
N
News | PayPal Newsroom
The Cloudflare Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
I
InfoQ

博客园 - 阿斌

[导入]シャンハイ(上海) [导入]日语流行口语极短句888个(42) [导入]功能日语句型精解2 [导入]日语流行口语极短句888个(41) [导入]日语流行口语极短句888个(40) [导入]功能日语句型精解1 [导入]日语流行口语极短句888个(39) [导入]日语流行口语极短句888个(38) [导入]加班 [导入]Community Server 1.0 Source Release [导入]CommunityServer 1.1 源码及汉化文件 [导入]CnForums2.x体验 [导入]CommunityServer架构分析ppt [导入]CommunityServer实例分析——注册新用户(1) [导入]写一个给按钮、链接等控件增加快捷键的控件 [导入]CommunityServer系统性能优化 [导入]CommunityServer 2.0 RTM 发布 [导入]CommunityServer2.0 Beta1发布 [导入]Community Server 2.0中如何调试项目?我告诉你! [导入]关于Community Server开发日内容的安排 [导入]Community Server2.0专注细节专题Doc下载(2006-3-9更新) [导入]Community Server2.0专注细节一 邮件提醒按钮实现(上) [导入]Community Server 2.0 (SDK) 发布了 [导入]CommunityServer 2.0中Files 与 Reader 项目的授权机制
[导入]将asp.net1.1的应用程序升级到asp.net2.0的一点心得
阿斌 · 2008-01-04 · via 博客园 - 阿斌

费了好一袋烟工夫把CommunityServer升级到了Asp.Net2.0平台,一点心得:

vs2005可以很方便的帮我们把vs2003开发的asp.net1.1版本项目升级到vs2005开发的asp.net2.0版本,从vs2005里面打开vs2003的解决方案或者项目文件,会有向导帮我们自己完成升级工作。一部分asp.net1.1的项目做完这个工作就足够了。

不过更多的时候不会这么顺利,还要注意一些问题:

  • vs2003开发的asp.net1.1程序,不会检查aspx、aspcx等文件中的语法错误,而vs2005会检查项目中所有的aspx、aspcx等文件中的语法,所以如果有语法错误,会导致编译无法通过。
  • vs2003中,如果用的是默认的代码绑定方式,那么在aspx文件(以aspx文件为例,ascx文件也有这个问题)中申明的服务器端控件,会在aspx文件对应的aspx.cs文件中,生成一个对应的申明,例如aspx中有一个TextBox,ID是MyTextBox,那么在aspx.cs中,会申明一个"protected TextBox MyTextBox;",而在vs2005中,这个申明是多余的,所以升级后要去除这些多余的申明。
  • 如果有程序采用了asp.net1.1下的Membership——使用MemberRole.dll,要升级到asp.net2.0下的Membership,需要做如下工作:
    • 删除所有项目中对"MemberRole.dll"的引用,添加"System.Configration"的引用
    • 改变命名空间ScalableHosting.Profile -> System.Web.Profile;ScalableHosting.Security -> System.Web.Security; 同时添加using System.Configuration;
    • 移除所有MemberRole.dll相关的Membership配置,参照以前的Membership配置,增加asp.net2.0支持的Membership配置,更新Membership的存储过程。
  • CCS1.1 for asp.net2.0的下载:http://www.communityserver.cn/builds


文章来源:http://blog.joycode.com/dotey/archive/2005/12/12/68722.aspx