当我在数据库中上传图像时,我发现了一个错误 [英] when i am uploading the images in database i am geting an error

查看:84
本文介绍了当我在数据库中上传图像时,我发现了一个错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI


当我在数据库中上传图片时我发现错误



这是错误Plz给我解决方案



访问路径''D:\ InetPub \vhosts\solventjobs.com \ mycarzs \ CarImages\Bmw 11_060113105307.jpg''被拒绝。



HI
when i am uploading the images in database i am geting an error

This is the error Plz give me solution

Access to the path ''D:\InetPub\vhosts\solventjobs.com\mycarzs\CarImages\Bmw 11_060113105307.jpg'' is denied.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access to the path 'D:\InetPub\vhosts\solventjobs.com\mycarzs\CarImages\Bmw 11_060113105307.jpg' is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in File Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.











谢谢






Thankyou

推荐答案

Internet服务器使用低权限帐户运行。通常,它必须写入或删除任何文件。因此,您必须更改文件夹D:\ InetPub \vhosts\solventjobs.com \ mycarzs \ CarImages及其中的所有文件的访问权限。
The Internet Server runs with an account with low privileges. Generally, it must write or delete any files. Consequently, you must change the access rights for the folder "D:\InetPub\vhosts\solventjobs.com\mycarzs\CarImages" and any files there in.


这篇关于当我在数据库中上传图像时,我发现了一个错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆