473,657 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Please help - weird problem

Hi,
While trying to create new directory i recieve the following error
message:
"System.IO.Dire ctoryNotFoundEx ception: Could not find a part of the path
"\\premfs16\sit es".
The path exists, even when i check the path
with the code: Directory.Exist s(...) the result is true.

Here is the code:
http://www.adeo.co.il/test.aspx

Notice that in the line before the code throws exception
i create new file to the same path and no error
occurs - only when trying to create directory
the error appears.

Any idea?

Nov 19 '05 #1
5 1271
Yoni,

This is a security problem. You need to grant read permission for
\\premfs16\site s to the ASP.NET user.

Eliyahu

"???? ???????" <@discussions.m icrosoft.com> wrote in message
news:B9******** *************** ***********@mic rosoft.com...
Hi,
While trying to create new directory i recieve the following error
message:
"System.IO.Dire ctoryNotFoundEx ception: Could not find a part of the path
"\\premfs16\sit es".
The path exists, even when i check the path
with the code: Directory.Exist s(...) the result is true.

Here is the code:
http://www.adeo.co.il/test.aspx

Notice that in the line before the code throws exception
i create new file to the same path and no error
occurs - only when trying to create directory
the error appears.

Any idea?

Nov 19 '05 #2
So how do you explain that the code succeeded creating
a file (which needs to read the same path...) and only
creating a directory failed?

"Eliyahu Goldin" wrote:
Yoni,

This is a security problem. You need to grant read permission for
\\premfs16\site s to the ASP.NET user.

Eliyahu

"???? ???????" <@discussions.m icrosoft.com> wrote in message
news:B9******** *************** ***********@mic rosoft.com...
Hi,
While trying to create new directory i recieve the following error
message:
"System.IO.Dire ctoryNotFoundEx ception: Could not find a part of the path
"\\premfs16\sit es".
The path exists, even when i check the path
with the code: Directory.Exist s(...) the result is true.

Here is the code:
http://www.adeo.co.il/test.aspx

Notice that in the line before the code throws exception
i create new file to the same path and no error
occurs - only when trying to create directory
the error appears.

Any idea?


Nov 19 '05 #3
Yoni,

Probably file creating doesn't require read permission but directory
creating does. I don't know exactly how all these permissions work.

Security and permission setting is a complicated matter. You don't really
need to understand fully the theoretical background. For your immediate
problem it's enough to know how other people solved the same problem. If you
wish to investigate - you are welcome to invest your time in that.

Eliyahu

"???? ???????" <@discussions.m icrosoft.com> wrote in message
news:6E******** *************** ***********@mic rosoft.com...
So how do you explain that the code succeeded creating
a file (which needs to read the same path...) and only
creating a directory failed?

"Eliyahu Goldin" wrote:
Yoni,

This is a security problem. You need to grant read permission for
\\premfs16\site s to the ASP.NET user.

Eliyahu

"???? ???????" <@discussions.m icrosoft.com> wrote in message
news:B9******** *************** ***********@mic rosoft.com...
Hi,
While trying to create new directory i recieve the following error
message:
"System.IO.Dire ctoryNotFoundEx ception: Could not find a part of the path "\\premfs16\sit es".
The path exists, even when i check the path
with the code: Directory.Exist s(...) the result is true.

Here is the code:
http://www.adeo.co.il/test.aspx

Notice that in the line before the code throws exception
i create new file to the same path and no error
occurs - only when trying to create directory
the error appears.

Any idea?


Nov 19 '05 #4
The problem is much more sophisticated.
My web site host at shared hosting company.
No hosting company will allow users to have read
permissions on their root directory.
So what you are actually saying is that you can not
open directories on web sites which hosts on shared servers.
Is that correct?

"Eliyahu Goldin" wrote:
Yoni,

Probably file creating doesn't require read permission but directory
creating does. I don't know exactly how all these permissions work.

Security and permission setting is a complicated matter. You don't really
need to understand fully the theoretical background. For your immediate
problem it's enough to know how other people solved the same problem. If you
wish to investigate - you are welcome to invest your time in that.

Eliyahu

"???? ???????" <@discussions.m icrosoft.com> wrote in message
news:6E******** *************** ***********@mic rosoft.com...
So how do you explain that the code succeeded creating
a file (which needs to read the same path...) and only
creating a directory failed?

"Eliyahu Goldin" wrote:
Yoni,

This is a security problem. You need to grant read permission for
\\premfs16\site s to the ASP.NET user.

Eliyahu

"???? ???????" <@discussions.m icrosoft.com> wrote in message
news:B9******** *************** ***********@mic rosoft.com...
> Hi,
> While trying to create new directory i recieve the following error
> message:
> "System.IO.Dire ctoryNotFoundEx ception: Could not find a part of the path > "\\premfs16\sit es".
> The path exists, even when i check the path
> with the code: Directory.Exist s(...) the result is true.
>
> Here is the code:
> http://www.adeo.co.il/test.aspx
>
> Notice that in the line before the code throws exception
> i create new file to the same path and no error
> occurs - only when trying to create directory
> the error appears.
>
> Any idea?
>


Nov 19 '05 #5
Well, I don't think you need read permissions for the root directory, only
for those under yours. Speak to your host and ask again on security
newsgroups.

Good luck,

Eliyahu

"???? ???????" <@discussions.m icrosoft.com> wrote in message
news:06******** *************** ***********@mic rosoft.com...
The problem is much more sophisticated.
My web site host at shared hosting company.
No hosting company will allow users to have read
permissions on their root directory.
So what you are actually saying is that you can not
open directories on web sites which hosts on shared servers.
Is that correct?

"Eliyahu Goldin" wrote:
Yoni,

Probably file creating doesn't require read permission but directory
creating does. I don't know exactly how all these permissions work.

Security and permission setting is a complicated matter. You don't really need to understand fully the theoretical background. For your immediate
problem it's enough to know how other people solved the same problem. If you wish to investigate - you are welcome to invest your time in that.

Eliyahu

"???? ???????" <@discussions.m icrosoft.com> wrote in message
news:6E******** *************** ***********@mic rosoft.com...
So how do you explain that the code succeeded creating
a file (which needs to read the same path...) and only
creating a directory failed?

"Eliyahu Goldin" wrote:

> Yoni,
>
> This is a security problem. You need to grant read permission for
> \\premfs16\site s to the ASP.NET user.
>
> Eliyahu
>
> "???? ???????" <@discussions.m icrosoft.com> wrote in message
> news:B9******** *************** ***********@mic rosoft.com...
> > Hi,
> > While trying to create new directory i recieve the following error
> > message:
> > "System.IO.Dire ctoryNotFoundEx ception: Could not find a part of
the path
> > "\\premfs16\sit es".
> > The path exists, even when i check the path
> > with the code: Directory.Exist s(...) the result is true.
> >
> > Here is the code:
> > http://www.adeo.co.il/test.aspx
> >
> > Notice that in the line before the code throws exception
> > i create new file to the same path and no error
> > occurs - only when trying to create directory
> > the error appears.
> >
> > Any idea?
> >
>
>
>


Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
3794
by: Wolfgang Kaml | last post by:
Hello All, I have been researching newsgroups and knowledgebase all morning and not found a solution that would solve the problem I have. I am having an ASP or ASPX web page that implement a counter functionality and read/insert some data in a MS Access database on that Windows 2003 server. The weird part is, as long as the web page is very short in size, I can hit the refresh button and Internet Explorer will reload the page and display...
6
1405
by: Unicorn | last post by:
I can only say this is a weird problem! I will be sitting there typing away in the code window, when the whole IDE just vanishes without a trace. I get no error messages and no indication, it is just gone. One second I am typing in the IDE and the next I am in whatever application was behind it on the desktop and my keystroke are going to that active application. There is nothing in the application or security logs to indicate...
1
1525
by: Jeffrey Melloy | last post by:
I recently noticed that in my web app, a \n wasn't getting converted to a <br />. (The problem turned out to be that for this particular record, it was a \r). When I checked out the record in psql, I got some weird behavior. What shows up in the web: amoth4:it is o.o jm:Speaking of being a sounding board, will you test something? jm:Ot
13
1975
by: Dmitry Tkach | last post by:
Hi, everybody! Here is a weird problem, I ran into... I have two huge (80 million rows each) tables (a and b), with id as a PK on both of them and also an FK from b referencing a. When I try to run a query like: select * from a, b where a.id >= 7901288 and a.id=b.id limit 1; The query takes *forever*.
1
1401
by: Ot | last post by:
I have two different solutions that use xml serialization to create xml from a given class. The class is defined identically in both solutions. I copied the code for both the class and the code that does the serialization from the first solution to the second. The first solution works just fine. The second solution gets a weird error.
14
3095
by: alwayshouston | last post by:
Hi All! I am working on this very small database and I am confused in the designing a simple form. I only have three tables in the database. First Table: tblExpense Columns: ExpenseID ; ExpenseType Data: 1 ; FOOD 2 ; AIRLINE 3 ; FARE
1
3436
by: Chua Wen Ching | last post by:
Hi there, I have some problems when reading XML file. 1. First this, is what i did, cause i can't seem to read "sub elements or tags" values, so i place those values into attributes like this. Before: ----------
1
1542
by: Strange Cat | last post by:
Hi everyone! I have a weird problem with FormsAuthentication. I have an app that works just fine with FormsAuthentication. The user requests the homepage, he is redirected to login page, then enters valid username and password that are checked versus a db table, if the info is ok i execute SetAuthCookie(xxx, False) then i open a new window which displays the home page, all is working fine...
2
1616
by: Alan Silver | last post by:
Hello, I have code like the following... foreach (Control ctl in Page.Controls) { if (ctl.ID.StartsWith("X_")) { // do stuff } }
14
2781
by: jojoba | last post by:
Hi, I hope this post is ok for this group. Here's my deal: I have two computers on my LAN at home. One desktop. One laptop. Both computers are wireless enabled (and wired enabled too). I have running a fairly simple HTTP server (written in python) that i
0
8413
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8513
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7352
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2742
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.