Fichier, ASP.NET heberger sur un partage réseau !
J'ai un PB !
I have my website on IIS 6 pointing to a network share as its home
directory. When I try to visit the site I get a parser error:
<%@ Application Codebehind="Global.asax.vb"
When I run the website locally (not on the network share), it works
fine, and I check the ASP.NET Temporary Files directory for that
specific instance, and the global.asax.xml file exists. This file has
information on how to find the website dll for the specific page, so
since my original setup can't find this xml file, it can't find the
dll, and therefore cannot load the Global class.
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Pierre Lagarde [MS]
Bonjour,
1. Supprime le contenu du répertoire bin de ton application Web 2. Vérifie qu'il exite bien qu'un seul fichier Global.asax 3. Recompile
Cordialement
-- Pierre Lagarde Microsoft France
Dhafer wrote:
Fichier, ASP.NET heberger sur un partage réseau ! J'ai un PB !
I have my website on IIS 6 pointing to a network share as its home directory. When I try to visit the site I get a parser error:
<%@ Application Codebehind="Global.asax.vb"
When I run the website locally (not on the network share), it works fine, and I check the ASP.NET Temporary Files directory for that specific instance, and the global.asax.xml file exists. This file has information on how to find the website dll for the specific page, so since my original setup can't find this xml file, it can't find the dll, and therefore cannot load the Global class.
Any ideas?
Bonjour,
1. Supprime le contenu du répertoire bin de ton application Web
2. Vérifie qu'il exite bien qu'un seul fichier Global.asax
3. Recompile
Cordialement
--
Pierre Lagarde
Microsoft France
Dhafer wrote:
Fichier, ASP.NET heberger sur un partage réseau !
J'ai un PB !
I have my website on IIS 6 pointing to a network share as its home
directory. When I try to visit the site I get a parser error:
<%@ Application Codebehind="Global.asax.vb"
When I run the website locally (not on the network share), it works
fine, and I check the ASP.NET Temporary Files directory for that
specific instance, and the global.asax.xml file exists. This file has
information on how to find the website dll for the specific page, so
since my original setup can't find this xml file, it can't find the
dll, and therefore cannot load the Global class.
1. Supprime le contenu du répertoire bin de ton application Web 2. Vérifie qu'il exite bien qu'un seul fichier Global.asax 3. Recompile
Cordialement
-- Pierre Lagarde Microsoft France
Dhafer wrote:
Fichier, ASP.NET heberger sur un partage réseau ! J'ai un PB !
I have my website on IIS 6 pointing to a network share as its home directory. When I try to visit the site I get a parser error:
<%@ Application Codebehind="Global.asax.vb"
When I run the website locally (not on the network share), it works fine, and I check the ASP.NET Temporary Files directory for that specific instance, and the global.asax.xml file exists. This file has information on how to find the website dll for the specific page, so since my original setup can't find this xml file, it can't find the dll, and therefore cannot load the Global class.
Any ideas?
Pierre Lagarde [MS]
Re,
Il faut rajouter les droits sur le répertoire partagé dans la section LocalIntrante_Zone au format file://SERVER/REP/* dans la config sécurité de .NET
Same problem happened to me. The problem occurs because UNC shares are not trusted for Code Access Security be default. Therefore, when placing assemblies (dll's) on a network share, be sure to add a Code Group in the ..NET Configuration on the web server. The code group should specify that all assemblies coming from the specific UNC share are completely trusted. This issue took me quite some time to resolve and was finally helped by http://www.webfrustration.com/archive/88/2003/11/2/89008
"Pierre Lagarde [MS]" a écrit dans le message de news:
Bonjour,
1. Supprime le contenu du répertoire bin de ton application Web 2. Vérifie qu'il exite bien qu'un seul fichier Global.asax 3. Recompile
Cordialement
-- Pierre Lagarde Microsoft France
Dhafer wrote:
Fichier, ASP.NET heberger sur un partage réseau ! J'ai un PB !
I have my website on IIS 6 pointing to a network share as its home directory. When I try to visit the site I get a parser error:
<%@ Application Codebehind="Global.asax.vb"
When I run the website locally (not on the network share), it works fine, and I check the ASP.NET Temporary Files directory for that specific instance, and the global.asax.xml file exists. This file has information on how to find the website dll for the specific page, so since my original setup can't find this xml file, it can't find the dll, and therefore cannot load the Global class.
Any ideas?
Re,
Il faut rajouter les droits sur le répertoire partagé dans la section
LocalIntrante_Zone
au format file://SERVER/REP/* dans la config sécurité de .NET
Same problem happened to me. The problem occurs because UNC shares
are not
trusted for Code Access Security be default. Therefore, when placing
assemblies (dll's) on a network share, be sure to add a Code Group in
the
..NET Configuration on the web server. The code group should specify
that all
assemblies coming from the specific UNC share are completely trusted.
This issue took me quite some time to resolve and was finally helped
by http://www.webfrustration.com/archive/88/2003/11/2/89008
"Pierre Lagarde [MS]" <pierlag@microsoft.com> a écrit dans le message
de news: uTA1xgsrEHA.3244@tk2msftngp13.phx.gbl...
Bonjour,
1. Supprime le contenu du répertoire bin de ton application Web
2. Vérifie qu'il exite bien qu'un seul fichier Global.asax
3. Recompile
Cordialement
--
Pierre Lagarde
Microsoft France
Dhafer wrote:
Fichier, ASP.NET heberger sur un partage réseau !
J'ai un PB !
I have my website on IIS 6 pointing to a network share as its home
directory. When I try to visit the site I get a parser error:
<%@ Application Codebehind="Global.asax.vb"
When I run the website locally (not on the network share), it works
fine, and I check the ASP.NET Temporary Files directory for that
specific instance, and the global.asax.xml file exists. This file
has information on how to find the website dll for the specific
page, so since my original setup can't find this xml file, it can't
find the dll, and therefore cannot load the Global class.
Same problem happened to me. The problem occurs because UNC shares are not trusted for Code Access Security be default. Therefore, when placing assemblies (dll's) on a network share, be sure to add a Code Group in the ..NET Configuration on the web server. The code group should specify that all assemblies coming from the specific UNC share are completely trusted. This issue took me quite some time to resolve and was finally helped by http://www.webfrustration.com/archive/88/2003/11/2/89008
"Pierre Lagarde [MS]" a écrit dans le message de news:
Bonjour,
1. Supprime le contenu du répertoire bin de ton application Web 2. Vérifie qu'il exite bien qu'un seul fichier Global.asax 3. Recompile
Cordialement
-- Pierre Lagarde Microsoft France
Dhafer wrote:
Fichier, ASP.NET heberger sur un partage réseau ! J'ai un PB !
I have my website on IIS 6 pointing to a network share as its home directory. When I try to visit the site I get a parser error:
<%@ Application Codebehind="Global.asax.vb"
When I run the website locally (not on the network share), it works fine, and I check the ASP.NET Temporary Files directory for that specific instance, and the global.asax.xml file exists. This file has information on how to find the website dll for the specific page, so since my original setup can't find this xml file, it can't find the dll, and therefore cannot load the Global class.