473,626 Members | 3,265 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

accessing files on intranet

Hi!

How can I access files on intranet. I have mapped a
serverfolder to the drive letter G and try to access a
file from ASP.NET, but File.Exists("G: \filename.ext")
returns false. The same code in Windows Forms returns
true, so I guess it has something to do with the
permissions. I set all rights to the IUSR_machinenam e.
This is enough to make it work locally on C: but not on G:

any suggestions?

/Miro
Nov 18 '05 #1
3 1409
By default, ASP.NET runs as a user that doesn't have
access to the network. In fact, I believe that the
ASPNET user is a local user. TO test out this theory, go
into the machine.config and change the processModel
attribute for user and password to be a user (domain
qualified) and password that does have access to the
network.

Hope this helps.

Bruce Johnson
http://www.ObjectSharp.com/Bruce
-----Original Message-----
Hi!

How can I access files on intranet. I have mapped a
serverfolder to the drive letter G and try to access a
file from ASP.NET, but File.Exists("G: \filename.ext")
returns false. The same code in Windows Forms returns
true, so I guess it has something to do with the
permissions. I set all rights to the IUSR_machinenam e.
This is enough to make it work locally on C: but not on G:
any suggestions?

/Miro
.

Nov 18 '05 #2
Thanks Bruce!

I've tried it but got the same error. What solved this
for me was two things. Uncheck the "anonymous access" in
IIS and insert this:

<identity impersonate="tr ue"/>

into web.config. Anyway I still have trouble making it
work on Novell servers. It works WXP->W2000 and W2000-
W2000 but not W2000->Novell. I'm using windows authentication with adm rights. Any suggestions on this
one?

/Miro
-----Original Message-----
By default, ASP.NET runs as a user that doesn't have
access to the network. In fact, I believe that the
ASPNET user is a local user. TO test out this theory, gointo the machine.config and change the processModel
attribute for user and password to be a user (domain
qualified) and password that does have access to the
network.

Hope this helps.

Bruce Johnson
http://www.ObjectSharp.com/Bruce
-----Original Message-----
Hi!

How can I access files on intranet. I have mapped a
serverfolde r to the drive letter G and try to access a
file from ASP.NET, but File.Exists("G: \filename.ext")
returns false. The same code in Windows Forms returns
true, so I guess it has something to do with the
permissions . I set all rights to the IUSR_machinenam e.
This is enough to make it work locally on C: but not on

G:

any suggestions?

/Miro
.

.

Nov 18 '05 #3
Hi Miro,

Firstly I want to thank Bruce for his great help in this issue.

I apologize for it if there is any misunderstandin g. Based on my research
and experience, the following article is useful to this issue.

INFO: Implementing Impersonation in an ASP.NET Application
http://support.microsoft.com/default...b;en-us;306158
"...
Impersonate a Specific User for All the Requests of an ASP.NET Application
To impersonate a specific user for all the requests on all pages of an
ASP.NET application, you can specify the userName and password attributes
in the <identity> tag of the Web.config file for that application. For
example:

<identity impersonate="tr ue" userName="accou ntname" password="passw ord" />
..."

Please make sure that you are using the administrator account to test this
issue. If I have misunderstood your concern, please feel free to let me
know.

On the other hand, I am not familiar with Novell. If the above solution
does not resolve your problem, please try to contact Novell/Netware for the
help. Thank you for your understanding.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 18 '05 #4

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

Similar topics

3
12323
by: Bill | last post by:
I'm creating a company intranet, and every employee has certain program we want them to be able to run from it, meaning we want the link to the program to be on the intranet page. For example, Adobe Photoshop resides on all the employees computer under "C:\Program Files\Adobe\Photoshop 7.0\Photoshop.exe" However, when I enter that as a hyperlink on the page, it does not run the program. Is there a way to get a web page to run a...
2
2585
by: | last post by:
Hi, This does sound like a bit of a weird thing to ask so I will state my question and then further down explain why I am trying to do it. So if you have the answer then reply! Or if you understand what I am trying to do and can suggest a better solution then reply also! Question --------
5
1697
by: Simon Harvey | last post by:
Hi everyone, I'm hoping for a little bit of advice on the following. I am in the process of making a small application that can send, receive and store email messages. The current area that I am thinking about is how to store messages on the hard disk and access them when needed. I dont want to read all the messages in at runtime because that would make startup take to long. What I think I need to do is to load a 'header' file at...
36
16360
by: Thomas | last post by:
after spending countless hours trying, i give up and hope to get some help in here. on server1 i got the web myweb.com with my test.asp. in the test.asp, i'm trying to read a file from an UNC path with a FSO: Set myFile = Server.CreateObject("Scripting.FileSystemObject").GetFile("\\server2\myshare\myfile.txt") this fails with an Permission Denied. here's the deal:
2
1724
by: Remco Bosman | last post by:
Dear Developers, I am building a little WebPart for the new sharepoint 2003 services. The webspart simply has to show a list of users and their phonenumbers, which come from our main domain. This all works....for me, when others users viewed the webpart is gave me a (them rather than me actually) "The specified directory service attribute or value does not exist". After some investigation I determined this had to do with not getting...
5
2798
by: Khalique | last post by:
Hi everyone, I Hope that someone will be able to give me a hint to the solution to my problem. I have developed a web service (vb.net) that needs to access the folders / files and copy files to and from the public folder on the client machine. It is not a public web service, only accessible on intranet. The anonymous access is disabled. Windows authentication is enabled. Web.Config sets <identity impersonate="true" /> Using a test app,...
0
1099
by: lucian.nn | last post by:
Hello guys! I'm on a pilot project with a .net applet that should be able to upload a local file to a predefined network share. This applet should run inside IE browser and will be used for Intranet fiel transfers only. The purpose of this approach is to use the power of local Intranet speed for copying large files (2/3 G or more). My applet is done in VSNET 2K5 and uses a call to unmanaged LogonUser function to perform
2
2375
by: Gerhard | last post by:
I have a .net application that I want to run in a DMZ, with the SQL Server and file system behind another firewall. Is there a secure way to get to files from my application, or would it be better to have a reverse proxy server in the DMZ and the webserver behind the second firewall?
12
3023
by: Doug | last post by:
I'm trying to access a schema file as such: Dim settings As XmlReaderSettings = New XmlReaderSettings() settings.Schemas.Add(webServiceNamespace, schemaFileName) settings.ValidationType = ValidationType.Schema Even though the webServiceNamespace value above is set to an intranet address, I keep getting this error:
0
8265
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
8196
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8705
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
8364
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,...
1
6125
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
4092
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4197
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1808
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1511
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.