asp.net<C#> web service Object moved to here.
2012-03-16 09:20
1361 查看
错误:
第一种解决方法:
将cookieless设为true;
问题是这样设置之后cookie就不能用了, 会直接带在地址中.
解释下默认值AutoDetect: 自动检测客户端实际是否支持cookie再来决定使用两种方式中的哪一种(最佳适应)。
第二种: 根据上面错误字面解释就是地址被重定向了. 解决方法 在设置地址的时候加上 “?AspxAutoDetectCookieSupport=1”.
目前我是选择了第二种. 谁有更好的方法请发邮件告知下, 共同交流共同进步!
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="/Admin/WebService/AddAdminInfo.asmx?AspxAutoDetectCookieSupport=1">here</a>.</h2>
</body></html>
到目前为止查了好多资料我只知道这个和 客户端实际是否支持cookie 有关<h2>Object moved to <a href="/Admin/WebService/AddAdminInfo.asmx?AspxAutoDetectCookieSupport=1">here</a>.</h2>
</body></html>
第一种解决方法:
将cookieless设为true;
问题是这样设置之后cookie就不能用了, 会直接带在地址中.
解释下默认值AutoDetect: 自动检测客户端实际是否支持cookie再来决定使用两种方式中的哪一种(最佳适应)。
目前我是选择了第二种. 谁有更好的方法请发邮件告知下, 共同交流共同进步!
相关文章推荐
- WebService Error ---- Object Moved to here
- 【C#】对异步请求处理程序IHttpAsyncHandler的理解和分享一个易用性封装 【手记】走近科学之为什么明明实现了IEnumerable<T>的类型却不能调用LINQ扩展方法 【手记】手机网页弹出层后屏蔽底层的滑动响应 【手记】ASP.NET提示“未能创建类型”处理 【Web】一个非常简单的移动web消息框 【手记】解决EXCEL跑SQL遇“查询无法运行或数据库表无法打开...”
- How to invoke Java web service in ASP.net using C#
- C# ASP.NET Webservice调用外部exe无效的解决方法
- ASP.NET&C#学习笔录4(<authentication mode="Windows|Forms|Passport|None"> )
- asp.net<Web版> ---GridView 数据导出到excel表,系列问题<一>---导出的Excel文件格式与文件扩展名指定的格式不一致
- 泛型中字符串转集合,(T)object,typeOf(T),LIst<T> xxx<T>();c# stringtolist
- asp.net/c# 用<input type="file" />实现文件上传,multipart/form-data
- Introduction to ASP.NET Web Programming Using the Razor Syntax (C#)
- The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the ser
- JsonHelper developed by using Newtonsoft.Json.NET, Deserialize to <T> object , XmlToJson/JsonToXml, QuoteName by using JToken Path.
- asp.net mvc 2 Could not load type 'System.Web.Mvc.ViewPage<dynamic>'错误解决办法
- C# ASP.NET Webservice调用外部exe无效的解决方法
- Use C# to get JSON Data from the Web and Map it to .NET Class => Made Easy! 转
- How to: Configure WCF Service to Interoperate with ASP.NET Web Service Clients
- C# to VB.NET Web Service Proxy Example
- C# 获取客户端信息 /asp.net/WebService/WebForm
- 路由其实也可以很简单-------Asp.net WebAPI学习笔记(一) ASP.NET WebApi技术从入门到实战演练 C#面向服务WebService从入门到精通 DataTable与List<T>相互转换
- asp.net读取Web.config的<appSettings></appSettings>
- 【原创】 ASP.NET + C# + WEBSERVICE 返回表数据和记录数据