iis 配置administrator帐号后 报错

szoyhq 2011-12-05 12:41:48
服务器是server 2003 iis 6

项目中使用了flashpager用来处理上传后的文件 转换为swf文件提供在线预览

小弟只知道iis必须给超级管理员的方式才能实现功能

iis 应用程序池 的标识中 配置administrator帐号后 运行网站报错 Service Unavailable

(听说是windows server 2003 的安全策略不允许iis使用超级管理员? 我要怎么做呢 )

小弟是新手 刚出来工作没经验 公司也小 什么都要自己来 服务器我真不懂

先谢谢各位了
...全文
123 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
给需要写入的文件夹添加EveryOne用户,并且设置写入权限
szoyhq 2011-12-05
  • 打赏
  • 举报
回复
自己顶
szoyhq 2011-12-05
  • 打赏
  • 举报
回复
设置了everyone 读写 还是不行呀,

源码
public void ConvertToSWF_(string filePath)
{
if (filePath.Substring(filePath.LastIndexOf(".") + 1) == "jpg")
{
return;
}
filePath = MapPath(filePath);
string swfFilePath = filePath.Substring(0, filePath.LastIndexOf(".")) + ".swf";
System.Diagnostics.Process pc = new System.Diagnostics.Process();
string flashPrinterPath = AppDomain.CurrentDomain.BaseDirectory;
flashPrinterPath = flashPrinterPath.Substring(0, flashPrinterPath.Length - 2);
flashPrinterPath = flashPrinterPath.Substring(0,flashPrinterPath.LastIndexOf("\\"))+"\\FlashPaper\\FlashPrinter.exe";
pc.StartInfo.FileName = flashPrinterPath;
pc.StartInfo.Arguments = string.Format("{0} -o {1}", filePath, swfFilePath);
pc.StartInfo.CreateNoWindow = true;//不创建窗口
pc.StartInfo.UseShellExecute = false;//不使用系统外壳程序启动
pc.StartInfo.RedirectStandardInput = false;
pc.StartInfo.RedirectStandardOutput = false;
pc.StartInfo.RedirectStandardError = true;
pc.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
pc.Start();
pc.WaitForExit();
pc.Close();
pc.Dispose();
}

iis运行此方法 进程正常启动, 但是进程的cpu不动 卡在 pc.WaitForExit(); 直到超时
yoyo_573 2011-12-05
  • 打赏
  • 举报
回复
IIS指定的文件夹 右键,设置权限EveryOne 读写

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧