读书人

webform GetDownloadFileUrl() 解

发布时间: 2012-06-22 16:16:32 作者: rapoo

webform GetDownloadFileUrl()

#if defined PBWEBFORM then
string s
s = GetDownloadFileUrl("c:\aaa.txt", false)
mle_1.text += "~r~n" + s
shl_1.url = s //shl_1: static hyperlink
#end if
行啊 想不通啊 PB 例子太少了!!!!
System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)

[解决办法]
应该是权限不够,你是不是先安装的.net framework再装的iis,这样的话系统中没有.net or iis的匿名客户,一般来说iis要在.net framework之前安装,你可以通过修复安装.net framework来创建这些用户
getdownloadfileurl是获得当前会话对应的临时目录中的文件url

读书人网 >PB

热点推荐