草庐IT

STATUS_ACCESS_VIOLATION

全部标签

c# - ASP.net 在尝试将文件上传到我的 Windows Server 2008 R2 Web 服务器时出现错误 "Access to the path is denied."

我有一个asp.netweb应用程序,可以将文件上传到Web服务器上的特定文件夹。在本地一切正常,但是当我将应用程序部署到Web服务器时,我开始收到错误消息“访问路径“D:\Attachments\myfile.doc”被拒绝”。我给“IISAppPool”用户该应用程序在该文件夹的完全权限下运行。我什至给了“Everyone”完全权限,但出现了同样的错误。我将该文件夹添加到防病毒软件的异常(exception)列表中,但结果相同。我开始怀疑WindowsServer2008R2可能需要一些技巧才能使我的上传工作。非常感谢您的帮助。谢谢 最佳答案

c# - 通过 asp.net 访问 Office Word 对象模型导致 "failed due to the following error: 80070005 Access is denied."

我开发了一个网站,允许用户上传office文档,然后使用office对象模型将文档转换为HTML文件,然后在iFrame中显示该文件。当然,我已经包含了对Office.interop.word的引用,并且该站点在我的开发机器上运行良好。当我将它上传到我的生产服务器时,网站运行正常,直到我尝试上传文档。我最初得到一个类似的错误,说“COM对象未注册”。我意识到我的生产服务器上没有安装Word。所以我安装了word,现在当服务器尝试访问word对象模型时,我收到以下错误:检索CLSID为{000209FF-0000-0000-C000-000000000046}的组件的COM类工厂失败,原

c# - 生成错误 : "The process cannot access the file because it is being used by another process"

我有一个C#webforms应用程序,直到今天它一直运行顺畅。现在,突然之间,每次我尝试运行该应用程序时,我都会收到文件锁定错误:Unabletocopyfile"obj\Debug\MyProject.exe"to"bin\Debug\MyProject.exe".Theprocesscannotaccessthefile"bin\Debug\MyProject.exe"becauseitisbeingusedbyanotherprocess.谷歌搜索错误并没有发现明显的错误,即VS认为文件已锁定。绝对锁定文件的是VisualStudio本身,因为当我关闭VS并重新打开它时,项目执行

c# - "Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions"错误

为什么我收到错误:Templatescanbeusedonlywithfieldaccess,propertyaccess,single-dimensionarrayindex,orsingle-parametercustomindexerexpressions在此代码处:@modelIEnumerable@{ViewBag.Title="Index";Layout="~/Views/Shared/_PageLayout.cshtml";}Index@Html.ActionLink("CreateNew","Create")@foreach(variteminModel){@Html.

jquery - 带有 CORS 的 IE9 jQuery AJAX 返回 "Access is denied"

以下适用于所有浏览器除了IE(我正在IE9中测试)。jQuery.support.cors=true;...$.ajax(url+"messages/postMessageReadByPersonEmail",{crossDomain:true,data:{messageId:messageId,personEmail:personEmail},success:function(){alert('markedasread');},error:function(a,b,c){alert('failed');},type:'post'});我有另一个使用dataType:'jsonp'的函

jquery - XMLHttpRequest Origin null 不允许文件 :///to file:///(Serverless) 的 Access-Control-Allow-Origin

我正在尝试创建一个可以通过启动其索引文件在本地下载和运行的网站。所有文件都是本地的,没有使用在线资源。当我尝试使用jQuery的AJAXSLT插件来处理带有XSL模板的XML文件(在子目录中)时,我收到以下错误:XMLHttpRequest无法加载file:///C:/path/to/XSL%20Website/data/home.xml。Access-Control-Allow-Origin不允许Originnull。XMLHttpRequest无法加载file:///C:/path/to/XSL%20Website/assets/xsl/main.xsl。Access-Contro

javascript - 为什么我的 JavaScript 代码会收到 "No ' Access-Control-Allow-Origin' header is present on the requested resource"错误,而 Postman 却没有?

Modnote:ThisquestionisaboutwhyXMLHttpRequest/fetch/etc.onthebrowseraresubjecttotheSameAccessPolicyrestrictions(yougeterrorsmentioningCORBorCORS)whilePostmanisnot.Thisquestionisnotabouthowtofixa"No'Access-Control-Allow-Origin'..."error.It'saboutwhytheyhappen.Pleasestopposting:CORSconfigurationsfo

javascript - 无法加载资源 : the server responded with a status of 500 (Internal Server Error) in Bind function

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。这个问题似乎与helpcenter中定义的范围内的编程无关。.关闭9年前。Improvethisquestion我正在尝试使用Ajax发送调用,但在Chrome中出现错误,但在Firefox中没有错误。但它仍然无法调用该方法。我试图在Firebug中记录我的调用,但在Firebug中没有调用请求。这就是Firefox没有错误的原因。Index.chshtml代码如下functiononLoad(e){vargrid=$(this).data("tGrid");//bindtothecontextmen

javascript - Google Place API - 请求的资源上不存在 'Access-Control-Allow-Origin' header 。因此不允许访问 Origin 'null'

这个问题在这里已经有了答案:HowtouseCORStoimplementJavaScriptGooglePlacesAPIrequest(4个答案)关闭3年前。我正在使用GooglePlaceAPI。我想获得有关类型帮助的建议。所以,我所做的是-varGoogle_Places_API_KEY="AIzaSyAK08OEC-B2kSyWfSdeCzdIkVnT44bcBwM";//Getitfrom-https://code.google.com/apis/console/?noredirect#project:647731786600:accessvarlanguage="en";

javascript - 如何解决 'Redirect has been blocked by CORS policy: No ' Access-Control-Allow-Origin' header'?

我正在使用Vuejs开发一个应用程序。根据我的设置,我需要在设置更改时将变量传递给我的URL。$.get('http://172.16.1.157:8002/firstcolumn/'+c1v+'/'+c1b,function(data){//somecode...});但是当我的应用访问URL时,它会显示以下消息。Failedtoloadhttp://172.16.1.157:8002/firstcolumn/2017-03-01/2017-10-26:Redirectfrom'http://172.16.1.157:8002/firstcolumn/2017-03-01/2017-