菜鸟问题:从网络读取数据失败,原因:请求因 HTTP 状态 403 失败:Access Denied

cxh7708 2008-06-16 04:17:18
菜鸟问题:请求因 HTTP 状态 403 失败:Access Denied
新接手了C#的程序,不知道怎么配置服务
1.我新装的程序。
2.建了虚拟路径,指向此服务。
3.运行时,出如题所示的提示
...全文
1005 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
cxh7708 2008-06-20
  • 打赏
  • 举报
回复
System.InvalidOperationException: 无法生成临时类(result=1)。
error CS2001: 未能找到源文件“C:\WINNT\TEMP\wsaznb0_.0.cs”
error CS2008: 未指定输入

在 System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, CompilerParameters parameters, Evidence evidence)
在 System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, CompilerParameters parameters, Assembly assembly, Hashtable assemblies)
在 System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
在 System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Evidence evidence)
在 System.Web.Services.Protocols.XmlReturn.GetInitializers(LogicalMethodInfo[] methodInfos)
在 System.Web.Services.Protocols.XmlReturnWriter.GetInitializers(LogicalMethodInfo[] methodInfos)
在 System.Web.Services.Protocols.MimeFormatter.GetInitializers(Type type, LogicalMethodInfo[] methodInfos)
在 System.Web.Services.Protocols.HttpServerType..ctor(Type type)
在 System.Web.Services.Protocols.HttpServerProtocol.Initialize()
在 System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

zhnzzy 2008-06-17
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 cxh7708 的回复:]
我新建了一个网站,试了一下,提示无法在web服务上启动调试,web服务器的配置不正确。
[/Quote]
IIS装的对吗?
zhnzzy 2008-06-17
  • 打赏
  • 举报
回复
Access Denied
----
看看权限够不够
cxh7708 2008-06-17
  • 打赏
  • 举报
回复
我新建了一个网站,试了一下,提示无法在web服务上启动调试,web服务器的配置不正确。
fly_to_sky 2008-06-16
  • 打赏
  • 举报
回复
你试一试把文件放在默认的WwwRoot文件里面怎么样
badtank 2008-06-16
  • 打赏
  • 举报
回复
运行帐号没有权限调用。
首先,需要确定是调用什么资源被拒绝了。
是web form页面,还是调用了其他得东西。
然后再在系统管理中授权就好了。

110,535

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

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