首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

webform GetDownloadFileUrl() 問題解决方案

2012-06-22 
webform GetDownloadFileUrl()問題#if defined PBWEBFORM thenstring ss GetDownloadFileUrl(c:\aaa.tx

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

热点排行