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

推荐订阅源

cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
C
CERT Recently Published Vulnerability Notes
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed
Security Latest
Security Latest
P
Privacy International News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
AI
AI
Cisco Talos Blog
Cisco Talos Blog
K
Kaspersky official blog
S
Secure Thoughts
PCI Perspectives
PCI Perspectives
Simon Willison's Weblog
Simon Willison's Weblog
D
DataBreaches.Net
GbyAI
GbyAI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
罗磊的独立博客
V
Visual Studio Blog
aimingoo的专栏
aimingoo的专栏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
V
V2EX
Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tenable Blog
T
Threat Research - Cisco Blogs
T
Troy Hunt's Blog
V2EX - 技术
V2EX - 技术
S
Security @ Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
Project Zero
Project Zero
The GitHub Blog
The GitHub Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
L
Lohrmann on Cybersecurity
F
Full Disclosure
H
Help Net Security
博客园 - Franky
Stack Overflow Blog
Stack Overflow Blog
N
Netflix TechBlog - Medium
Engineering at Meta
Engineering at Meta
A
Arctic Wolf
O
OpenAI News
S
Securelist

博客园 - 最坏是单飞

[转载]启用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