I'm trying to run an ASP.NET application from a share (on another computer)
in stead of from the local wwwroot-directory. When I run from the local
wwwroot-directory or from any other directory on the LOCAL machine
everything works fine. When I map the virtual directory to the SHARE I get a
message that the web.config could not be loaded.
I tried to configure the security settings for .NET framework as FULL TRUST
for the INTRANET, but that doesn' seem to make any difference.
Does anyone have a solution?
Leo.
--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
..Offering free scripts & code snippits for everyone...
---------------------------------------------------------
"Leo" <nos...@newsgroups.com> wrote in message
news:b0rm13$nuk$1...@reader10.wxs.nl...
To resolve this problem make sure to follow the steps below to give the
remote share "FullTrust."
1. On the web server, Open the Microsoft .NET Framework Configuration
from Administrative Tools.
2. Expand Runtime Security Policy->Machine->Code Groups.
3. Right-Click on All_Code and select new.
4. Choose "Create a new code group", and give it a relevant name such
as the name of the applications share then select Next.
5. On the next dialog choose URL from the drop-down list
6. In the URL dialog put the path to the share in this exact format
"file:////\\computername\sharename\*" where computername is the name of
the computer hosting the remote share, and sharename is the name of the
share.
7. Click Next, and on the next page choose "Use an existing permission
set, and choose Fulltrust from the drop-down list.
8. Click Next and then Finish.
It is Important in this configuration that the account that the ASP.NET
worker process is run under has sufficient permissions to the remote share.
Thanks,
Bassel Tabbara
Microsoft, ASP.NET
This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
| From: "Leo" <nos...@newsgroups.com>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: Running ASP.NET webapp from a share on anaother computer fails
| Date: Fri, 24 Jan 2003 16:27:11 +0100
| Organization: Planet Internet
| Lines: 16
| Message-ID: <b0rm13$nuk$1...@reader10.wxs.nl>
| NNTP-Posting-Host: ipd50aae03.speed.planet.nl
| X-Trace: reader10.wxs.nl 1043422051 24532 213.10.174.3 (24 Jan 2003
15:27:31 GMT)
| X-Complaints-To: ab...@planet.nl
| NNTP-Posting-Date: 24 Jan 2003 15:27:31 GMT
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Path:
cpmsftngxa08!cppssbbsa01.microsoft.com!news-out.cwix.com!newsfeed.cwix.com!n
ewsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.
net!newsfeed.fjserv.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!news2.euro
net!news2.euro.net!newsfeed.wxs.nl!textnews.wxs.nl!not-for-mail
| Xref: cpmsftngxa08 microsoft.public.dotnet.framework.aspnet:117821
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
Thanks for your response. I created the code-group as you described, but
still no permission (could not load web.config, which IS present). Your last
remark about the ASP.NET worker process could be the problem. The webserver
is Server1 and the file-server is Server2. These servers are in a workgroup
(not a domain). I was wondering which conditions should be met in order to
give the ASP.NET account on Sever1 rights to the share on Server2 where the
ASP.NET files are located.
Even when I give the Everyone group (all) rights to the share and the files
it points to (ASP.NET files) on Server2, I still can't run the ASP.NET
application through the webserver on Server1.
If you need more information, please let me know. Thanks for your help,
Leo.
"Bassel Tabbara [MSFT]" <bas...@online.microsoft.com> wrote in message
news:IHZJgd8wCHA.2676@cpmsftngxa06...
To allow the aspnet account to access the remote server, you need to
duplicate the aspnet account on server 2.
Duplicating this account will require to set a custom password even on
server 1. By setting a custom password
you need to enter the password in process model section in the
machine.config file. Since the default setting is
autogenerate, you need to set the password accordingly.
Make sure that the ASPNET account has permission to access all of the
necessary directories and files to start
the Aspnet_wp.exe process and to serve the ASP.NET pages.
For additional information about what permissions you must grant to this
account, click the article number below to view the article
in the Microsoft Knowledge Base:
http://support.microsoft.com/?id=317012
Thanks,
Bassel Tabbara
Microsoft, ASP.NET
This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
| From: "Leo" <nos...@newsgroups.com>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: Re: Running ASP.NET webapp from a share on anaother computer
fails
| Date: Mon, 27 Jan 2003 09:54:21 +0100
| Organization: Planet Internet
| Lines: 111
| Message-ID: <b12s33$g1p$1...@reader10.wxs.nl>
| References: <b0rm13$nuk$1...@reader10.wxs.nl> <IHZJgd8wCHA.2676@cpmsftngxa06>
| NNTP-Posting-Host: ipd50aae03.speed.planet.nl
| X-Trace: reader10.wxs.nl 1043657635 16441 213.10.174.3 (27 Jan 2003
08:53:55 GMT)
| X-Complaints-To: ab...@planet.nl
| NNTP-Posting-Date: 27 Jan 2003 08:53:55 GMT
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Path:
cpmsftngxa08!cppssbbsa01.microsoft.com!news-out.cwix.com!newsfeed.cwix.com!s
kynet.be!skynet.be!cleanfeed.casema.net!leda.casema.net!newsfeed.wxs.nl!text
news.wxs.nl!not-for-mail
| Xref: cpmsftngxa08 microsoft.public.dotnet.framework.aspnet:118305
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
Thanks for your response! It 'll probably not only solve my problem, but
also provides me with useful information about ASP.NET security. I'll dive
deeper into that topic as soon as I can find the time. Thanks again.
Leo.
"Bassel Tabbara [MSFT]" <bas...@online.microsoft.com> wrote in message
news:1NzhF5ixCHA.2304@cpmsftngxa06...
Server - Windows 2000 Server with SP3 and all maintenance.
Client - Windows 2000 Professional with SP3 and all
maintenance.
.NET - Visual Studio .NET Professional
I have an application using .NET on my server, but when I
try to execute it, I always get the 'Server Application
Unavailable' message.
I look in event viewer, and get the ASP.NET 1082 message
that is detailed in Microsoft Article Q315158.
I have every reason to believe that this is the problem I
am having, but there is one problem. My 'machine.config'
file seems to be a different format than what Microsoft is
referring to. I have tried everything I can think of, but
can't seem to get username and password
in 'machine.config' in a way that pleases IIS.
Here is the 'fix' that I cut from Microsoft article
Q315158.
In the <processModel> section of the Machine.config file,
change the userName and the password attributes to the
name and the password of the account that you created in
step 1. For example:
userName="DomainName\ASPUSER" password="ASPUSERpassword"
As I said, I do believe this will fix it. However, here
is how my 'machine.config' has the '<processmodel>'
section laid out.
<section name="processModel"
type="System.Web.Configuration.ProcessModelConfigurationHan
dler, System.Web, Version=1.0.3300.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
allowDefinition="MachineOnly"/>
Any help is greatly appreciated.
"Brian Kitt" <Brian...@i-structure.com> wrote in message
news:118601c2d20c$dd270e40$7d02280a@TK2MSFTNGXS01...
I do have another similar related issue. I have a Windows XP laptop and I
cannot get ASP.NET to work on that machine. It is a client machine normally
attached to server mentioned below. I get no errors, but curiously, ASPNET
userid is not defined to the machine. Any ideas?
"Brian Kitt" <Brian...@i-structure.com> wrote in message
news:118601c2d20c$dd270e40$7d02280a@TK2MSFTNGXS01...