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

推荐订阅源

S
Security @ Cisco Blogs
罗磊的独立博客
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
美团技术团队
T
Tailwind CSS Blog
博客园 - 三生石上(FineUI控件)
博客园 - Franky
G
Google Developers Blog
Jina AI
Jina AI
Stack Overflow Blog
Stack Overflow Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
V
Visual Studio Blog
腾讯CDC
S
SegmentFault 最新的问题
Recent Announcements
Recent Announcements
博客园 - 叶小钗
Microsoft Security Blog
Microsoft Security Blog
雷峰网
雷峰网
L
LangChain Blog
Vercel News
Vercel News
Forbes - Security
Forbes - Security
PCI Perspectives
PCI Perspectives
N
News | PayPal Newsroom
S
Security Affairs
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - 司徒正美
J
Java Code Geeks
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Hacker News: Ask HN
Hacker News: Ask HN
Schneier on Security
Schneier on Security
A
About on SuperTechFans
Attack and Defense Labs
Attack and Defense Labs
Google Online Security Blog
Google Online Security Blog
aimingoo的专栏
aimingoo的专栏
MongoDB | Blog
MongoDB | Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
酷 壳 – CoolShell
酷 壳 – CoolShell
Cloudbric
Cloudbric
B
Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Proofpoint News Feed
D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
B
Blog RSS Feed
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
N
News and Events Feed by Topic

博客园 - 阿斌

[导入]シャンハイ(上海) [导入]日语流行口语极短句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