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

推荐订阅源

T
The Blog of Author Tim Ferriss
S
Securelist
D
Docker
The Register - Security
The Register - Security
GbyAI
GbyAI
Recorded Future
Recorded Future
Engineering at Meta
Engineering at Meta
Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
罗磊的独立博客
博客园 - 【当耐特】
F
Full Disclosure
WordPress大学
WordPress大学
腾讯CDC
小众软件
小众软件
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
SecWiki News
SecWiki News
L
Lohrmann on Cybersecurity
I
InfoQ
MyScale Blog
MyScale Blog
量子位
Cyberwarzone
Cyberwarzone
博客园 - 三生石上(FineUI控件)
The Hacker News
The Hacker News
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
博客园_首页
H
Help Net Security
K
Kaspersky official blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Webroot Blog
Webroot Blog
Blog — PlanetScale
Blog — PlanetScale
V
Vulnerabilities – Threatpost
Y
Y Combinator Blog
The Cloudflare Blog
P
Proofpoint News Feed
V
Visual Studio Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tailwind CSS Blog
爱范儿
爱范儿
P
Privacy International News Feed
Security Archives - TechRepublic
Security Archives - TechRepublic
The GitHub Blog
The GitHub Blog
C
Cybersecurity and Infrastructure Security Agency CISA
B
Blog RSS Feed

博客园 - 最坏是单飞

[转载]启用IIS的Gzip压缩功能 javascript判断IFRAME是否加载完成 - 最坏是单飞 - 博客园 Cookie注入是怎样产生的 判断记录是否存在 exists 和 top 1 要比 count 快 国外网站设计与浏览习惯 从一个错误提示引出SQL中in和or的问题。 CSS中 link与@import的区别 firefox3.0上安装google toolbar的问题 ASP.NET中常用的26个优化性能方法 INSERT 失败,因为下列 SET 选项的设置不正确: 'ARITHABORT' 背英语单词的捷径 提高sql server性能的几种方法 Windows下配置Apache支持PHP windows Server mysql的root密码忘记修复方法 select时尽可能少使用as对性能很有好处 sb.5252.ws恶意注入解决方法 asp调用存储过程返回值为空解决方案 - 最坏是单飞 - 博客园 如何在SQL Sever中建立索引? 验证视图状态 MAC 失败
解决ASP.NET中Type.GetType方法总返回空的问题 - 最坏是单飞 - 博客园
最坏是单飞 · 2008-03-08 · via 博客园 - 最坏是单飞

 今天做练习的时候用到了Type.GetType方法。。
可是他总返回null。。
Type.GetType总是返回NULL;  
   
后来查看,web项目中的引用,发现么有引用对应的项目。。

所以,应用程序无法在web项目中找到对应的dll。。

添加一个引用就解决了。。。。
额。。。不知道怎么说通顺些
举个例子
如:Type.GetType("System.String") //这个是没问题的,因为System.String在mscorlib.dll中
下边我要获取MyProject.Data.SqlServerDAL
Type.GetType("MyProject.Data.SqlServerDAL") //这样写是不成立的,我们要指定它数据的dll文件

Type.GetType("MyProject.Data.SqlServerDAL,MyProject.Data")//这样写就对了

如果发现还是不行,还有一种可能就是web项目中没有引用MyProject.Data,所以无法找到dll文件
添加新的引用就可以了

网上还有其他解决方法

如果上边几步都无法解决的话,可以看看这个

  http://community.csdn.net/Expert/topic/3082/3082827.xml?temp=.5779535  
  http://community.csdn.net/Expert/topic/2652/2652469.xml?temp=.2308466