AWS - 错误 - 无法解析远程名称:'s3.amazonaws.com'

时间:2013-07-26 05:49:35

标签: amazon-web-services opentok

我使用OpenTok录制和生成视频,它成功完成。还创建存档。但是当从亚马逊下载该视频时,它给出了以下错误消息。 我还捕获了堆栈跟踪。

错误输入:无法解析远程名称:'s3.amazonaws.com'body {font-family:“Verdana”; font-weight:normal; font-size:.7em; color:black;} p {font-family:“Verdana”; font-weight:normal; color:black; margin-top:-5px} b {font-family:“Verdana”; font-weight:bold; color:black; margin-top: -5px} H1 {font-family:“Verdana”; font-weight:normal; font-size:18pt; color:red} H2 {font-family:“Verdana”; font-weight:normal; font-size:14pt ; color:maroon} pre {font-family:“Consolas”,“Lucida Console”,Monospace; font-size:11pt; margin:0; padding:0.5em; line-height:14pt} .marker {font-weight:胆大; color:black; text-decoration:none;} .version {color:grey;} .error {margin-bottom:10px;} .expandable {text-decoration:underline;字体重量:粗体;颜色:海军;光标:手; } @media screen and(max-width:639px){pre {width:440px;溢出:自动;白色空间:预包装;自动换行:break-word; @media screen和(max-width:479px){pre {width:280px; '/'应用程序中的服务器错误。

无法解析远程名称:'s3.amazonaws.com'

System.Web.Mvc.ControllerBase.Execute(RequestContext)上System.Web.Mvc.Controller.ExecuteCore()的System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext,String actionName)中的1个过滤器,ActionDescriptor actionDescriptor,IDictionary2参数) requestContext)位于System.Web.Mvc.MvcHandler的System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext)。&lt;&gt; c_ DisplayClass6。&lt;&gt; c _DisplayClass1.b_ 0()的em> _DisplayClassb.b_ 5() 。&lt;&gt; c _DisplayClass8 1.<BeginSynchronous>b__7(IAsyncResult _) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult 1.End()在System.Web.Mvc.MvcHandler。&lt;&gt; c_ DisplayClasse.b _d()at System System.Web.Mvc.SecurityUtil.Proces上的.Web.Mvc.SecurityUtil.b__0(Action f) System.Web.HttpApplication.CallHandlerExecutionStep.System上的System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult结果)中的System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)中的sInApplicationTrust(Action操作)。 System.Web.HttpApplication.ExecuteStep中的Web.HttpApplication.IExecutionStep.Execute()(IExecutionStep step,Boolean&amp; completedSynchronously) - &GT;

我正在尝试在以下网址上下载我的测试视频:

https://s3.amazonaws.com/tokbox.com.production/12415002/fd5be7ac-0b63-4daa-8430-4fe2e0aefde7/dcbce387-ca13-4b6a-9b04-1b4074dc0042.flv?Signature=gXECOvWqjJKJTBXFEwU4usutV9k%3D&Expires=1374818871&AWSAccessKeyId=AKIAI6LQCPIXYVWCQV6Q

以下是下载视频的功能:

 private Stream getContent(string url)
    {
        //string buffer;

        WebRequest request = WebRequest.Create(url);
        request.Credentials = CredentialCache.DefaultCredentials;
        WebResponse response = request.GetResponse();
        Stream stream = response.GetResponseStream();
        //StreamReader reader = new StreamReader(stream);
        //buffer = reader.ReadToEnd();
        //stream.Dispose();
        //reader.Dispose();
        //return (buffer);
        return stream;
    }

有人对此有所了解吗?

谢谢。

1 个答案:

答案 0 :(得分:0)

此错误表示您运行的服务器无权访问s3.amazonaws.com主机。请尝试以下答案中的建议:https://stackoverflow.com/a/16630653/305340