473,748 Members | 2,793 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASPNET Account Security Problem - Running a Web Application over a network share

CES
All,

If anyone has been following my trials over the last week see(Setting up a
Web Application on IIS 5.1 and ASP.Net Security Problems).

I'm having a problem running a Asp.Net Web Application. I've finally
narrowed the problem down to a security issue: The ASPNET (aspnet_wp)
account cannot connect to a Network resource instead of using a local path
ie: C:\Inetpub\wwwr oot my development site resides on a Network Share
(\\{MyServerNam e}\wwwroot).

Every thing works fine is I connect to the site using a local path but I get
a Parser Error Message: Could not load type 'WebApplication 1.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Glo bal.asax.vb"
Inherits="WebAp plication1.Glob al" %>

If I try to load the page from a shared resource (\\Server\xxx)

I've tried adding this line to the web.config file imeditly under the
<authenticati on mode="Windows" /> tag - in the applications root directory
but I'm still unable to connect:
<identity impersonate="tr ue" userName="{MySe rverName}\{User Name}}"
password="{Pass word} " />
Policy editor

I have even tried creating a virtual directory to the folder even though the
Web Application is below the wwwroot.

FYI I've tried every possible combination of the
{MyServerName}\ {UserName}"ie server\administ rator / SERVER\administ rator /
Server\Administ rator etc.

Everything I've seen posted seams to suggest this should have worked. I'll
be very grateful for any help.

CES
Nov 17 '05 #1
1 1940
Ron
"CES" <NO**@NOEMAIL.c om> wrote in message news:<#V******* ******@TK2MSFTN GP09.phx.gbl>.. .
All,

If anyone has been following my trials over the last week see(Setting up a
Web Application on IIS 5.1 and ASP.Net Security Problems).

I'm having a problem running a Asp.Net Web Application. I've finally
narrowed the problem down to a security issue: The ASPNET (aspnet_wp)
account cannot connect to a Network resource instead of using a local path
ie: C:\Inetpub\wwwr oot my development site resides on a Network Share
(\\{MyServerNam e}\wwwroot).

Every thing works fine is I connect to the site using a local path but I get
a Parser Error Message: Could not load type 'WebApplication 1.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Glo bal.asax.vb"
Inherits="WebAp plication1.Glob al" %>

If I try to load the page from a shared resource (\\Server\xxx)

I've tried adding this line to the web.config file imeditly under the
<authenticati on mode="Windows" /> tag - in the applications root directory
but I'm still unable to connect:
<identity impersonate="tr ue" userName="{MySe rverName}\{User Name}}"
password="{Pass word} " />
Policy editor

I have even tried creating a virtual directory to the folder even though the
Web Application is below the wwwroot.

FYI I've tried every possible combination of the
{MyServerName}\ {UserName}"ie server\administ rator / SERVER\administ rator /
Server\Administ rator etc.

Everything I've seen posted seams to suggest this should have worked. I'll
be very grateful for any help.

CES


I am not 100% sure of these suggestions, but it may help you. First
log on to your local machine as "Administrator" . Even if you have
admin rights as a user I believe it is important to be the actual
administrator of you local machine. Next go to your web folder and
right click for Properties. Now go to the securities tab and add
"Everyone" to the users. Make sure that the "Everyone" user has all
right checked off. Good Luck!
Nov 17 '05 #2

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

Similar topics

0
293
by: Rod Kestler | last post by:
After applying the KB Automatic Update #833987 (JPEG Security Issue), our development server suddenly will not allow any IIS 6.0 App Pool running with identity set to ASPNET to run. The Event Viewer shows the following trace from the Application Log: Event Type: Warning Event Source: W3SVC Event Category: None Event ID: 1057
22
2284
by: Zeng | last post by:
Hi, I'm running ClrProfiler for the first time to profile my web app, and it keeps getting stuck at this msg box: "Waiting for Asp.net to start common language runtime - this is the time to load your test page." even after I launched my app and aspnet_wp.exe is running. Do you know what I need to do to fix it? I also found some old post, a person mentioned that I need to make sure I need to run my aspnet with system account instead. ...
1
1506
by: CES | last post by:
All, If anyone has been following my trials over the last week see(Setting up a Web Application on IIS 5.1 and ASP.Net Security Problems). I'm having a problem running a Asp.Net Web Application. I've finally narrowed the problem down to a security issue: The ASPNET (aspnet_wp) account cannot connect to a Network resource instead of using a local path ie: C:\Inetpub\wwwroot my development site resides on a Network Share...
5
1740
by: Brent Burkart | last post by:
What steps must I take to ensure that my application will be able to access network folders. I want to only use the ASPNET account, but I am not sure how this is done. Thanks, Brent
3
5690
by: Doctor Who | last post by:
I am running a Windows 2003 Server w/Framework 1.1 loaded. We have built a ..NET 2003 app and it requires that ASPNET be assigned permissions to several folders and servcies. The ASPNET account does not exist on the server (viewed through Active Directory). The accounts IUSR_WIN2K3SRVR and IWAM_WIN2K3SRVR do exist. I thought that the Framework installation would automatically create the ASPNET account - it does appear on other...
3
1609
by: jimmyfishbean | last post by:
Hi, My client has the following network structure: 2 Windows 2003 servers : Server 1 - Web server running IIS, ftp import and export folder, ASP.NET SOAP web service and asp code on here. Server 2 - SQL server with database on. Want to store images on here accessed via a share.
0
2314
by: CESAR DE LA TORRE [MVP] | last post by:
I am using WSE 3.0 with Visual Studio 2005, specifically I'm using Kerberos authentication and passing Kerberos ticket from Presentation Tier (VSTO.2005 client) to Server Tier through our Web Services (based on WSE 3.0). Having our WSE 3.0-WebService over Windows Server 2003, everything works great, but, over Windows XP, I have a problem (which is documented in WSE 3.0 help) but its workaround does not work properly (at least with my...
3
13088
by: musosdev | last post by:
Hi guys I've just noticed I don't have an ASPNET user account running on either my Workstation or Server (both running .net2.0, workstation has vs2005 pro). Simple question... should it be there with .net2, and if so how can I create it!? Cheers
7
1917
by: torus | last post by:
Is the aspnet account called "aspnet" for all non-English versions of Windows and IIS?
0
8991
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
8830
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
9370
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8242
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...
0
6074
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
4602
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...
1
3312
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
3
2215
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.