OVH Cloud OVH Cloud

asp.net files hosted on network share

2 réponses
Avatar
Dhafer
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?

2 réponses

Avatar
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?


Avatar
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

Cordialement

--
Pierre Lagarde
Microsoft France

Dhafer wrote:
Salut,
J'ai trouvé ceci :



____________________________________________________________________________
________________________________________
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



____________________________________________________________________________
________________________________________


Qu'en pensez vous ??







"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?