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

推荐订阅源

S
Securelist
C
Cybersecurity and Infrastructure Security Agency CISA
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Security Affairs
Hacker News: Ask HN
Hacker News: Ask HN
L
Lohrmann on Cybersecurity
PCI Perspectives
PCI Perspectives
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cyber Attacks, Cyber Crime and Cyber Security
Recent Commits to openclaw:main
Recent Commits to openclaw:main
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MyScale Blog
MyScale Blog
月光博客
月光博客
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
Martin Fowler
Martin Fowler
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recorded Future
Recorded Future
The GitHub Blog
The GitHub Blog
Webroot Blog
Webroot Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
TaoSecurity Blog
TaoSecurity Blog
P
Proofpoint News Feed
Google DeepMind News
Google DeepMind News
F
Full Disclosure
U
Unit 42
Jina AI
Jina AI
博客园 - 司徒正美
阮一峰的网络日志
阮一峰的网络日志
L
LINUX DO - 最新话题
宝玉的分享
宝玉的分享
大猫的无限游戏
大猫的无限游戏
The Hacker News
The Hacker News
The Last Watchdog
The Last Watchdog
T
Troy Hunt's Blog
腾讯CDC
T
Threatpost
H
Hacker News: Front Page
P
Palo Alto Networks Blog
博客园 - 聂微东
Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
Help Net Security
Help Net Security
L
LINUX DO - 热门话题
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Spread Privacy
Spread Privacy

博客园 - Michael Peng

用马尔科夫模型做拼写检查 商业软件编程很无聊(转载) VS2010 Debugger bug 编程之初 编程之美 1.4买书问题常数时间空间解法 vc2010 std::tr1 bind库捉虫记 在vs中获得当前所有快捷键代码 最近的一些面试感悟 这两天被vs2010的std::tr1::bind郁闷了 error C2065: '__LINE__Var' : undeclared identifier 写错名字了 啰嗦几句,关于动机,学习与批评,架构和代码风格 金山卫士代码批评 24点计算 部门开始做技术talk 数据库的坏味道 --《Refactoring Database: Evolutionary Database Design》读书笔记 偷天换日 初识rails ruby解数独问题
用vs2010编译kigg 3.0遇到的问题
Michael Peng · 2010-12-25 · via 博客园 - Michael Peng

今天玩kigg时碰到了一些问题,在google帮助下总算搞定了,在这里记录下解决步骤,供日后参考,也给碰到相似问题的朋友一些参考.

  1. kigg用的.NET 3.5, 需要升级到.NET 4.0.因为vs会调用.NET 4.0版的ASP.net compiler,会出现冲突, 还有一个办法是在kigg.web.csproj中指定ASP.NET Compiler路径
    <AspNetCompiler VirtualPath="temp" PhysicalPath="$(ProjectDir)\..\Web" ToolPath="C:\Windows\Microsoft.NET\Framework\v2.0.50727" />
  2. 有些类是用LinkDemand修饰的,需要去掉,否则运行时会报错.这是为了快速运行起来,没有深究背后的安全性. 比如jQueryScriptManager和reCAPCHA类等
  3. 在Web.config System.Web节中加入 <P>&lt;httpRuntime requestValidationMode="2.0"/&gt;</P> 因为.net 4.0中对HTTP Request validate的处理发生了一些变化,为了和以前的模式保持兼容.否则输入的内容中含有<xxx></xxx>的内容时校验会抛异常.
  4. 把Source\SharedFiles里的文件拷贝到app_data目录下.
  5. 如果你没有配置email,请如下注释掉Email exception listener
    <add switchValue="All" name="FullException">
    <listeners>                    
    <!--
    <add name="EmailExceptionListener"/>                  
      -->
    <add name="TextFileExceptionListener"/>
    </listeners>
    </add>

参考资料

  1. Visual Studio 2010 compile ASP.NET 3.5 website using .NET4's aspnet_compiler.exe
  2. Link Demands
  3. HttpRuntimeSection.RequestValidationMode Property
  4. HttpRequestValidationException after upgrading to .NET 4.0