最近碰的的一些问题及心得

1,FxCopCmd.exe返回错误代码65。
    这是VS运行代码分析产生的错误,原因是存放solution的文件夹是只读,不可写,将文件夹的只读属性去掉,即可解决此问题。
2,先装vista,后装win2003实现双启动的解决方法。
       1, 进入2003系统,以administrator身份运行cmd;
       2, 插入Vista安装盘,运行: (CD-ROM):\boot\bootsect -nt60 all ;
       3, 进入X:\windows\system32\目录(X为Vista的系统盘);
       4, 备份BCD文件,运行bcdedit /export "e:\BCD_Backup\BCD" ;
       5, 运行bcdedit -create {ntldr} -d "Windows XP" ;
       6, 运行bcdedit -set {ntldr} device partition=x: (x: 为ntldr文件所在的盘);
       7, 运行bcdedit -set {ntldr} path \ntldr ;
       8, 运行bcdedit -displayorder {ntldr} -addlast ;
       9, 重启计算机,出现双启动菜单。故障排除.
3,SQL Server 2005连接不上的几个原因
        1.计算机名被修改了。
        2.动态端口不是1433。
        3.远程连接没有打开。
4,当网站崩溃时自动跳转到错误页面
    过修改应用程序的 <customErrors> 配置标记的“defaultRedirect”属性,使之指向自定义错误页的 URL,可以用自定义错误页替换所看到的当前错误页。

<!-- Web.Config 配置文件 -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
 

posted @ 2007-11-16 15:27  麒麟趾  阅读(235)  评论(0)    收藏  举报