ASP错误:无法找到路径的一部分 [英] ASP Error : Could not find a part of the path

查看:109
本文介绍了ASP错误:无法找到路径的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


首先,如果不完美的话,抱歉我的英语;-p


我有asp.net应用程序中的错误。


我有win2003服务器,iis 6.我正在开发视觉工作室

2005,vb。 net,f​​ramework 2

我正在尝试访问存储在C:server2003中的一些二进制文件。如果我用
用C:\来访问它们......那没关系。现在快速访问它们我使用Ramdisk(Y :)工作

如果我使用Y访问它可以正常工作:\ ....


如果我创建一个共享文件夹并尝试使用

\\srv2003 \sharedfolder \来访问它们...它也可以正常工作。但是现在我正在尝试使用网络驱动器地图(Z :)来访问它们,我得到了这个错误:


System.IO.DirectoryNotFoundException :找不到路径的一部分

''Z:\ filename.ext''。

在System.IO .__ Error.WinIOError(Int32 errorCode,String

maybeFullPath)

在System.IO.FileStream.Init(String path,FileMode mode,FileAccess

access,Int32 rights,Boolean useRights, FileShare共享,Int32

bufferSize,FileOptions选项,SECURITY_ATTRIBUTES secAttrs,String

msgPath,Boolean bFromProxy)

在System.IO.FileStream .. ctor(String path,FileMode mode,FileAccess

access,FileShare share)

at Service.GetPersonObject(Int32 IdPerso)

C:\\ \\ inetpub \wwwroot \WebServicePerson \WebServicePers on\App_Code\Service.vb:line

1152


我见过很多话题在这里,它说给予Asp权利用户。

我做到了。有人说要进行冒充申请,我有

太多了


< identity impersonate =" true"的userName = QUOT;使用者"密码=" pwd" />


但我仍然遇到这个问题。有人可以帮助我吗?


实际上我正试图通过地图驱动器访问这些文件来测试通过网络层使用webservices进行
访问。如果我们只使用共享文件夹制作它,那么Windows是否使用相同的

网络层实现?


我'我不耐烦地等待一些帮助;-)

Gianfranco

Hi everybody,

First of all, sorry for my english if it isn''t perfect ;-p

I have an error in an asp.net application.

I have win2003 server, with iis 6. I''m developping with visual studio
2005, vb.net, framework 2

I''m trying to access some binary files stored in C: in server2003. if i
access them with C:\... it''s fine. Now to access them quickly I work
with a Ramdisk (Y:) and it works fine if i access with Y:\....

If I make a shared folder and try to access them with
\\srv2003\sharedfolder\... it works fine too. But now I''m trying to
access them with a Network Drive Map (Z:) and I get this error :

System.IO.DirectoryNotFoundException: Could not find a part of the path
''Z:\filename.ext''.
at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32
bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String
msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share)
at Service.GetPersonObject(Int32 IdPerso) in
C:\Inetpub\wwwroot\WebServicePerson\WebServicePers on\App_Code\Service.vb:line
1152

I''ve seen many topics here where it says to give rights to Asp user.
I''ve made it. Somebody says to make impersonate application and I have
made it too

<identity impersonate="true" userName="user" password="pwd"/>

But i''m still having this problem. Could someone help me?

In fact i''m trying to access these files through a map drive to test
access with webservices throug the network layer. If we make it only
with a shared folder, does windows use the same implementation of
network layer?

I''m waiting some help impatiently ;-)

Gianfranco

推荐答案

使用Windows Server 2003年,您需要提供对网络服务的访问权限。警惕

过度开放安全。


-

Gregory A. Beamer

MVP; MCP:+ I,SE,SD,DBA


***************************

在盒子外面思考!

*************************** >
" Gianfranco"写道:
With windows Server 2003, you need to give access to Network Service. Be wary
of opening up security too much.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"Gianfranco" wrote:
大家好,

首先,如果不是完美的话,对不起我的英语;-p
我在asp.net应用程序中出错。

我有win2003服务器,iis 6.我正在开发视觉工作室
2005,vb.net,框架2

我正在尝试访问存储在C:server2003中的一些二进制文件。如果我用C:\来访问它们,那就没事了。现在快速访问它们我用Ramdisk(Y :)工作
如果我使用Y访问它可以正常工作:\ ....

如果我创建一个共享文件夹并尝试使用
\\srv2003 \sharedfolder \访问它们......它也可以正常工作。但现在我正在尝试使用网络驱动器地图(Z :)访问它们,我收到此错误:

System.IO.DirectoryNotFoundException:找不到部分内容在System.IO.FileStream的System.IO .__ Error.WinIOError(Int32 errorCode,String
maybeFullPath)
上的路径
''Z:\ namename.ext''。
.Init(String path,FileMode mode,FileAccess
access,Int32 rights,Boolean useRights,FileShare share,Int32
bufferSize,FileOptions options,SECURITY_ATTRIBUTES secAttrs,String
msgPath,Boolean bFromProxy)
在System.IO.FileStream..ctor(字符串路径,FileMode模式,FileAccess
访问,FileShare共享)
在Service.GetPersonObject(Int32 IdPerso)中的C:\ Inetpub \ www.root \WebServicePerson \WebServicePers on\App_Code\Service.vb:line
1152

我在这里看到很多主题,它说给Asp用户权利。
我做到了。有人说要进行冒充申请,我也已经做了

< identity impersonate =" true"的userName = QUOT;使用者"密码=" pwd" />

但我仍然遇到这个问题。有人可以帮助我吗?

实际上我正试图通过地图驱动器访问这些文件来测试通过网络层使用webservices进行访问。如果我们只使用共享文件夹制作它,那么Windows是否使用相同的网络层实现?

我正在等待一些不耐烦的帮助; - )

Gianfranco
Hi everybody,

First of all, sorry for my english if it isn''t perfect ;-p

I have an error in an asp.net application.

I have win2003 server, with iis 6. I''m developping with visual studio
2005, vb.net, framework 2

I''m trying to access some binary files stored in C: in server2003. if i
access them with C:\... it''s fine. Now to access them quickly I work
with a Ramdisk (Y:) and it works fine if i access with Y:\....

If I make a shared folder and try to access them with
\\srv2003\sharedfolder\... it works fine too. But now I''m trying to
access them with a Network Drive Map (Z:) and I get this error :

System.IO.DirectoryNotFoundException: Could not find a part of the path
''Z:\filename.ext''.
at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32
bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String
msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share)
at Service.GetPersonObject(Int32 IdPerso) in
C:\Inetpub\wwwroot\WebServicePerson\WebServicePers on\App_Code\Service.vb:line
1152

I''ve seen many topics here where it says to give rights to Asp user.
I''ve made it. Somebody says to make impersonate application and I have
made it too

<identity impersonate="true" userName="user" password="pwd"/>

But i''m still having this problem. Could someone help me?

In fact i''m trying to access these files through a map drive to test
access with webservices throug the network layer. If we make it only
with a shared folder, does windows use the same implementation of
network layer?

I''m waiting some help impatiently ;-)

Gianfranco






谢谢你的回答。我对Server 2003不太满意。我已经尝试改变一些安全性但是总是存在相同的错误。可以

有人告诉我要更改哪个安全政策?


谢谢

Hi,

thanks you for this answer. I''m not very good with Server 2003. I have
tried to change some security but there is always the same error. Could
someone tell me which security policy to change?

thank you


你需要提供对网络服务的访问权。


你能详细说明吗???


干杯


Ollie


" Cowboy(Gregory A. Beamer) - MVP" <否************ @ comcast.netNoSpamM>在消息新闻中写了

:D2 ********************************** @ microsof t.com ...
"You need to give access to Network Services".

Can you elaborate a bit more on this???

Cheers

Ollie

"Cowboy (Gregory A. Beamer) - MVP" <No************@comcast.netNoSpamM> wrote
in message news:D2**********************************@microsof t.com...
使用Windows Server 2003,您需要授予对网络服务的访问权限。对于过度开放安全性要警惕。

- Gregory A. Beamer
MVP; MCP:+ I,SE,SD,DBA

***************************
想一想在盒子外面!
*******************************

" Gianfranco"写道:
With windows Server 2003, you need to give access to Network Service. Be wary of opening up security too much.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"Gianfranco" wrote:
大家好,

首先,如果不是完美的话,对不起我的英语;-p
我在asp.net应用程序中出错。

我有win2003服务器,iis 6.我正在开发视觉工作室
2005,vb.net,框架2

我正在尝试访问存储在C:server2003中的一些二进制文件。如果我用C:\来访问它们,那就没事了。现在快速访问它们我用Ramdisk(Y :)工作
如果我使用Y访问它可以正常工作:\ ....

如果我创建一个共享文件夹并尝试使用
\\srv2003 \sharedfolder \访问它们......它也可以正常工作。但现在我正在尝试使用网络驱动器地图(Z :)访问它们,我收到此错误:

System.IO.DirectoryNotFoundException:找不到部分内容在System.IO.FileStream的System.IO .__ Error.WinIOError(Int32 errorCode,String
maybeFullPath)
上的路径
''Z:\ namename.ext''。
.Init(String path,FileMode mode,FileAccess
access,Int32 rights,Boolean useRights,FileShare share,Int32
bufferSize,FileOptions options,SECURITY_ATTRIBUTES secAttrs,String
msgPath,Boolean bFromProxy)
在System.IO.FileStream..ctor(字符串路径,FileMode模式,FileAccess
访问,FileShare共享)
在Service.GetPersonObject(Int32 IdPerso)中

C :\ Inetpub \wwwroot \WebServicePerson \WebServicePers on\App_Code\Service.vb:lin

e 1152

我在这里看过很多话题它说给Asp用户权利。
我已经成功了。有人说要进行冒充申请,我也已经做了

< identity impersonate =" true"的userName = QUOT;使用者"密码=" pwd" />

但我仍然遇到这个问题。有人可以帮助我吗?

实际上我正试图通过地图驱动器访问这些文件来测试通过网络层使用webservices进行访问。如果我们只使用共享文件夹制作它,那么Windows是否使用相同的网络层实现?

我正在等待一些不耐烦的帮助; - )

Gianfranco
Hi everybody,

First of all, sorry for my english if it isn''t perfect ;-p

I have an error in an asp.net application.

I have win2003 server, with iis 6. I''m developping with visual studio
2005, vb.net, framework 2

I''m trying to access some binary files stored in C: in server2003. if i
access them with C:\... it''s fine. Now to access them quickly I work
with a Ramdisk (Y:) and it works fine if i access with Y:\....

If I make a shared folder and try to access them with
\\srv2003\sharedfolder\... it works fine too. But now I''m trying to
access them with a Network Drive Map (Z:) and I get this error :

System.IO.DirectoryNotFoundException: Could not find a part of the path
''Z:\filename.ext''.
at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32
bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String
msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share)
at Service.GetPersonObject(Int32 IdPerso) in
C:\Inetpub\wwwroot\WebServicePerson\WebServicePers on\App_Code\Service.vb:lin
e 1152

I''ve seen many topics here where it says to give rights to Asp user.
I''ve made it. Somebody says to make impersonate application and I have
made it too

<identity impersonate="true" userName="user" password="pwd"/>

But i''m still having this problem. Could someone help me?

In fact i''m trying to access these files through a map drive to test
access with webservices throug the network layer. If we make it only
with a shared folder, does windows use the same implementation of
network layer?

I''m waiting some help impatiently ;-)

Gianfranco



这篇关于ASP错误:无法找到路径的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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