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

推荐订阅源

I
InfoQ
G
Google Developers Blog
Engineering at Meta
Engineering at Meta
月光博客
月光博客
博客园 - 聂微东
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
有赞技术团队
有赞技术团队
A
About on SuperTechFans
Microsoft Azure Blog
Microsoft Azure Blog
Blog — PlanetScale
Blog — PlanetScale
U
Unit 42
T
Tailwind CSS Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
云风的 BLOG
云风的 BLOG
S
SegmentFault 最新的问题
F
Fortinet All Blogs
H
Help Net Security
J
Java Code Geeks
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
L
LangChain Blog
Martin Fowler
Martin Fowler
N
Netflix TechBlog - Medium

博客园 - RubyPDF

content-disposition attachment filename 在Firefox和IE中得到不同的结果 - RubyPDF Google Voice开始发送邀请函 ASP.NET空间使用SQLite遇到的麻烦 PDF数字签名免安装版本发布-Portable PDF Digital Signature(Portable PDF Signer) Dreamhost 开始提供免费空间了 SQLite Manager Sqlite使用中的几点体会。 Thinkpad T60 Fan Error及重新启动windows后画面静止 PdfCrypt 1.0 for Windows 发布 XMP Remover:批量删除PDF 文档的XMP data 软件正版化要靠政府,不能靠国产软件 FCrackZip 1.0 Windows 版本发布 破解MS Word 的只读密码限制 PDFCrack 0.11 Windows 版本发布 Chrome 的又一个bug? OpenOffice 3增加PDF导入和编辑功能 AspSpider 终止提供免费空间服务了。 比尔盖兹在某个大学毕业典礼上的演讲中,对毕业生提出十一项极为睿智的人生建议 在博客页首添加搜索功能
服务器端动态序列化与Unable to generate a temporary class报错
RubyPDF · 2008-08-27 · via 博客园 - RubyPDF

在一虚拟主机上安装Blogengine.NET 1.4.5,运行时碰到如下问题,

Unable to generate a temporary class (result=1).
error CS2001: Source file 'C:"WINDOWS"TEMP"8ubtaj9z.0.cs' could not be found

error CS2008: No inputs specified 

网上给的答案基本一致,修改ASPNET的权限,没有错,这个在自己有管理权限的机器上很容易,但虚拟主机提供商可不愿意给你这个权限,那怎么办?

因为这个问题,两次询问虚拟主机提供商的客户服务,第一次的回答很干脆,就是无法运行这类程序,因为权限问题。空间已经买了,不死心,又问另外一个客服,在他的提示下,得到了(google 出来的)想要的答案。

那就是在web.config的<system.web>之前添加,

<system.xml.serialization>
<xmlSerializer tempFilesLocation="c:\yourfolder\temp""/>

</system.xml.serialization>

P.S.

客服给的方案是:The proper way is to specify the tempFilesLocation in xmlSerializer Tag. It has been stated in Microsoft's hotfix.

很多webservice都会生成临时类文件(序列化),所以也会碰到同样的问题。

原来知道答案后可以搜索到更多相关信息了,如 Server side dynamic serialization