1 启动组件服务 dcomcnfg.exe
2 正试图在 OS 加载程序锁内执行托管代码。不要尝试在 DllMain 或映像初始化函数内运行托管代码,这
样做会导致应用程序挂起
把vs2005菜单的 调试->异常->Managed Debuggin Assistants->LoaderLock 的选中状态去掉
如果异常(exception)这一项没有的话,在工具---自定义---命令选项卡---左边选择调试--右边把异常
托到菜单里
快捷键Ctrl+Alt+E,修改Managed Debuggin Assistants->LoaderLock 的选中状态去掉
3 Question:
When I tried loading my project in VS8 today, it gave the following
error:
"could not find the visual sourcesafe internet web service connection
information"
I find this strange as I never set up any sort of web service
connection and was just connecting to a server on another computer in
our local area network. Strangely enough, I am able to access this
database through the Source Safe client software, but VS8 itself can
not connect to the database. If I try to make it search for it, it
always asks for an IP address with the http protocol (to a DNS server
or some other websiter), and a second field called Folder which has the
path to the srcsafe.ini file located on the server machine.
I have been working on my solution for the past few days, and this is
the first time I've encountered this problem. Any help would be great!
Thanks
Answer:
I just had the same problem.
somehow, the vs8 decided to switch to vss internet connection.
what u should do is go to Tools->Options from the visual studio,
then choose source control, and plug-in selection
and switch back to "Microsoft Visual SourceSafe", instead of "Microsoft
Visual SourceSafe (Internet)"
Solution:
打开vs——工具——选项——源代码管理——当前源代码管理插件改为:Microsoft Visual SourceSafe
即可。
4 设为首页:
<a onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';
this.setHomePage(window.location.href);" style="CURSOR: hand">设为首页</a>
<a onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';
this.setHomePage(‘www.baidu.com’);" style="CURSOR: hand">设为首页</a>
5 加入收藏夹:
<a href="javascript:window.external.addFavorite(window.location.href,'本网站');">加入收藏夹
</a>
<a href="javascript:window.external.addFavorite('www.baidu.com','百度');">加入收藏夹 </a>
6 卸载IE8:
C:\WINDOWS\ie8\spuninst\spuninst.exe
7 关闭Windows Server 2003 事件跟踪:
开始 ->运行 ->gpedit.msc ->计算机配置->行政的模板->系统->显示 shutdown 事件追踪者
->设置为 Disable。
如果是中文版,则:gpedit.msc,计算机配置 ->管理模板 ->系统 ->显示关机事件跟踪 ->禁
用。
8 硬盘格式转换
常见的有在CMD下用convert X: /FS:NTFS命令转NTFS的(X=盘符,如C等),LINUX下也有EXT2转EXT3的命
令:
/sbin/tune2fs -j /dev/hdbX
把 /dev/hdb 为设备名,把 X 则是分区号码。
以上命令执行完毕后,请确定把 /etc/fstab 文件中的 ext2 文件系统改成 ext3 文件系统。
以上两条命令几乎不可逆,请慎重使用。
9 Server 2003更改远程连接数量限制
设置个数:开始- 运行- gpedit.msc- 管理模板- Windows组件- 终端服务- 限制连接数量-启用,然后设置个数
超时断开:开始- 运行- gpedit.msc- 管理模板- Windows组件- 终端服务- keep alive
10 Response.Write("<script type='text/javascript'>if (confirm(' 是还是否?')==true){var i='<%=Seti (true)%>';}else{var i='<%=Seti(false)%>';} </script>");
11 遇到不居中的问题,网上找的答案。
DOCTYPE之前写注释或是其他会引起很多怪癖的问题,最突出的就是不居中,解决方式如下:
<style type="text/css">
body { margin:0 auto; text-align:center}
box{margin:0 auto;}
#content{text-align:center}
</style>
用的时候注意根据实际情况修改即可。