知易行难

Archive for November, 2006

Microsoft.Web.Extensions.Design.dll 引用错误问题

Nov 27, 2006

Tags

在开发机器上运行正常的一个ASP.NET站点,发布至测试服务器后出错,提示无法加载Microsoft.Web.Extensions.Design.dll。该站点使用了ASP.NET AJAX 1.0 Beta 2ASP.NET AJAX Control Toolkit,其中AJAX Beta 2安装了core ASP.NET 2.0 AJAX Extensions和ASP.NET 2.0 AJAX Futures November CTP,Control Toolkit为1.0.61106.0版本。

问题原因

这个问题由两个原因引起:

  1. ASP.NET AJAX Control Toolkit引用了Microsoft.Web.Extensions.Design.dll;
  2. core ASP.NET 2.0 AJAX Extensions安装时,如果目标机器上安装了VS,则会安装Microsoft.Web.Extensions.Design.dll,否则不安装。

开发机器必定安装了VS,AJAX Beta 2安装目录下(默认为C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025)及GAC中有Microsoft.Web.Extensions.Design.dll。因此开发机器上跑使用了Control Toolkit的站点不会发生任何问题。而测试服务器没有安装VS,就over了。

解决方案

解决方案有两种:

  1. 升级ASP.NET AJAX Control Toolkit至最新的1.0.61121.0版本;该版本去掉了对Microsoft.Web.Extensions.Design.dll的(错误)引用; or
  2. 拷贝一个Microsoft.Web.Extensions.Design.dll至站点的bin目录。

Beijing Aquarium

Nov 18, 2006

Tags


Visited Beijing Aquarium this afternoon. Although the aquarium is not as huge as I had thought, it’s really a wonderful under-the-sea journey (I’m a Finding Nemo fan).

See alll the fotos on flickr.

The aquarium is located right inside the Beijing Zoo. The ¥100 ticket not only is for the aquarium visiting, but also gives visitors the right to take a look around the zoo. Yeah I tried to say hi to those animals after I came out of the aquarium but only to notice that most of them were so shy or lazy to show them off and make the visitors happy in such a season. I found a FAT cat, which made me believe a cat in the real world could be big as Garfield. A little fox drew my attention. I thought I should take a picture ’cause I guessed finally I found out the source of the Firefox’s icon.

fox

PS: please excuse my poor photo taking skill.

Welcome to bj man!

Nov 15, 2006

Tags

Luers and another WPS guy 小炒张 are flying here in Beijing on a business trip this afternoon. How long are they gonna stay I don’t know but we’re definitely going to meet and have a long talk, and most importantly, eat something:)

So who the hell are these two guys? Well, back in 2003 when I went to WPS and started my career as a software engineer (3 months before I graduated from college), 小炒张 and 知了 kindly shared their apartment with me. Two years later before I left Kingsoft Zhuhai, I spent a lot of time living with Luers in his own house (of course not in the same room^-^).

BTW, Tell ya an industry secret, these two guys are core developers of ET, the Excel competitor as part of the WPS Office.

Let’s warmly welcome them to the great capital!

Firefox下带UpdatePanel页面的刷新问题

Nov 13, 2006

Tags



遇到了这样一个问题:在一个asp.net页面上使用UpdatePanel(ASP.NET AJAX为Beta 2版本),当在Firefox下浏览时,如果手动刷新(refresh)页面,会出现“the state information is invalid for this page and might be corrupted.”错误。在IE下无此问题。

问题的原因:有可能为Firefox缓存了页面的JavaScript等内容,造成刷新页面后ViewState被破坏。

解决方法:显式去掉缓存。在Page_Load方法中,加入

Response.Cache.SetNoStore();

墙头草

Nov 5, 2006

Tags

颐和园墙头随风摇摆的“狗尾草” 。

墙头草

Life in Beijing

Nov 1, 2006

Tags

I’ve been temporarily living and working in Beijing for almost 3 months. The main purpose of a four-month trip here is to help my friends and their company refactor their online book business site welan.com, which was built on Windows with Asp technology.

To be honest, I DO NOT like Beijing a bit. Okay I HATE this city! The dusty air and the damn traffic drive me into crazy every day. I really dislike those bus conductors - I admit they’re hard-working and they make a living - I guess most of them don’t know what politeness is and how annoyed we passenger feel when they shout at us ordering us to move to someplace … “not so crowded”. I always wonder why the hell a bus should needs two conductors.

Crossing the Haidianqiao on foot is the experience you won’t forget easily. Buses, cars, bikes and walkers come in all directions at the same time. The traffic lights seem to have nothing to do with this system. If I had ever stopped to read those advertisements 办证 on the ground, I’m afraid I would have already lost my life.

Stop complaining.

I’ve met and made new friends here. We have good time working together. I feel lucky to have a chance to see how an online book store is running.

As planned, I’m gonna go back home in the middle of Dec. Now that it’s a plan that won’t be changed, the only part of the decision that’s hard to make is when exactly I’m setting off. Tired of answering this question over and over again, I double checked the calendar and guessed the time would be Dec 17th - 20th.

For the one I really don’t want to leave, I must say the unknown future can always be fought.

Archives: Monthly or