473,413 Members | 1,807 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Remoting in IIS

I'm trying to host a remoting app in IIS and am getting the following error:

Failed to execute the request because the ASP.NET process identity does not
have read permissions to the global assembly cache. Error: 0x80070005 Access
is denied.

I tried adding ASPNET to the Administrators group with no success.

The error is preceded by the following warning:

Failed to initialize the AppDomain:/LM/W3SVC/1/Root/CTEDataController

Exception: System.IO.FileLoadException
Message: Could not load file or assembly 'System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
Access is denied.
StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName,
String codeBase, Evidence assemblySecurity, Assembly locationHint,
StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection)
at System.Activator.CreateInstance(String assemblyName, String typeName,
Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args,
CultureInfo culture, Object[] activationAttributes, Evidence securityInfo,
StackCrawlMark& stackMark)
at System.Activator.CreateInstance(String assemblyName, String typeName)
at System.AppDomain.CreateInstance(String assemblyName, String typeName)
at System.AppDomain.CreateInstance(String assemblyName, String typeName)
at
System.Web.Hosting.ApplicationManager.CreateAppDom ainWithHostingEnvironment(String
appId, IApplicationHost appHost, HostingEnvironmentParameters
hostingParameters)
at
System.Web.Hosting.ApplicationManager.CreateAppDom ainWithHostingEnvironmentAndReportErrors(String
appId, IApplicationHost appHost, HostingEnvironmentParameters
hostingParameters)

Any ideas???
Nov 19 '05 #1
5 1890
re:
I tried adding ASPNET to the Administrators group with no success.
Is ASPNET the process identity ASP.NET is running as ?

For a quick way to find out which account ASP.NET is running as ,see :
http://www.aspnetfaq.com/default.asp...&CategoryId=39

Make sure *that* is the account you're giving permissions to.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"LGHummel" <lg******@community.nospam> wrote in message
news:2C**********************************@microsof t.com... I'm trying to host a remoting app in IIS and am getting the following error:

Failed to execute the request because the ASP.NET process identity does not
have read permissions to the global assembly cache. Error: 0x80070005 Access
is denied.

I tried adding ASPNET to the Administrators group with no success.


Nov 19 '05 #2
Hi Lghummel,

Welcome to ASP.NET newsgroup.
From your description, you're hosting a remoting object in IIS(ASP.NET),
however, when you try starting the host asp.net web application, you
encountering the following error:

==============
Failed to execute the request because the ASP.NET process identity does not
have read permissions to the global assembly cache. Error: 0x80070005
Access
is denied.
==============

if anything else I missed , please feel free to let me know. As for the
condition you mentioned, it is likely the asp.net process is executing
identity dosn't have the sufficient permissions to access GAC file.
(System.Web is the main assembly required by web application). Have you
tried running a very simple HelloWorld page(aspx page) to see whether it
can work on the site? Also, would you provide the detailed info about your
server environment such as OS version, IIS.

In addition, what's the current Authentication mode you used in IIS for
that application's virtual dir and have you used impersonation in ASP.NET ?

Please feel free to post here if there're any further info.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Thread-Topic: Remoting in IIS
| thread-index: AcXkxbRFYmsOtn4QRzWqY1OUi+yPHg==
| X-WBNR-Posting-Host: 140.211.82.4
| From: "=?Utf-8?B?TEdIdW1tZWw=?=" <lg******@community.nospam>
| Subject: Remoting in IIS
| Date: Tue, 8 Nov 2005 16:37:03 -0800
| Lines: 45
| Message-ID: <2C**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:356538
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I'm trying to host a remoting app in IIS and am getting the following
error:
|
| Failed to execute the request because the ASP.NET process identity does
not
| have read permissions to the global assembly cache. Error: 0x80070005
Access
| is denied.
|
| I tried adding ASPNET to the Administrators group with no success.
|
| The error is preceded by the following warning:
|
| Failed to initialize the AppDomain:/LM/W3SVC/1/Root/CTEDataController
|
| Exception: System.IO.FileLoadException
| Message: Could not load file or assembly 'System.Web, Version=2.0.0.0,
| Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies.
| Access is denied.
| StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName,
| String codeBase, Evidence assemblySecurity, Assembly locationHint,
| StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
| forIntrospection)
| at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
| Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
| forIntrospection)
| at System.Reflection.Assembly.InternalLoad(String assemblyString,
| Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
| forIntrospection)
| at System.Activator.CreateInstance(String assemblyName, String
typeName,
| Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[]
args,
| CultureInfo culture, Object[] activationAttributes, Evidence
securityInfo,
| StackCrawlMark& stackMark)
| at System.Activator.CreateInstance(String assemblyName, String
typeName)
| at System.AppDomain.CreateInstance(String assemblyName, String
typeName)
| at System.AppDomain.CreateInstance(String assemblyName, String
typeName)
| at
|
System.Web.Hosting.ApplicationManager.CreateAppDom ainWithHostingEnvironment(
String
| appId, IApplicationHost appHost, HostingEnvironmentParameters
| hostingParameters)
| at
|
System.Web.Hosting.ApplicationManager.CreateAppDom ainWithHostingEnvironmentA
ndReportErrors(String
| appId, IApplicationHost appHost, HostingEnvironmentParameters
| hostingParameters)
|
| Any ideas???
|
|
|

Nov 19 '05 #3
Hi Steven,

I can run an axpx file on the site . I am running IIS 5.1 on my development
box (WinXP Pro 2002 SP2). I was able to verify (per Juan's reply) that the
user is ASPNET. I do not have impersonation on. Anonymous access is turned
on and the Integrated Windows authentication checkbox is checked. I am
attempting to invoke the remote object via a web service with the follwing
code:

string uri = "http://localhost/CTEDataController/CTEDataAccessor.rem";
object remoteObj = RemotingServices.Connect(typeof(ICTEDataAccessor), uri);
ICTEDataAccessor icted = remoteObj as ICTEDataAccessor;

Return Message:

<?xml version="1.0" encoding="utf-8" ?>
- <CTEDataUpdateInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/">
<msgTxt><?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html
xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Server Unavailable
</title> </head> <body> <h1><span style="font-family:Verdana;color:
#ff3300">Server Application Unavailable </span></h1> <p> <span
style="font-family:Verdana;"> The web application you are attempting to
access on this web server is currently unavailable. Please hit the "Refresh"
button in your web browser to retry your request. </span></p> <p>
<b>Administrator Note: </b> An error message detailing the cause of this
specific request failure can be found in the application event log of the web
server. Please review this log entry to discover what caused this error to
occur. </p> </body> </html></msgTxt>
<RowsUpdated>0</RowsUpdated>
<ReturnValue>0</ReturnValue>
</CTEDataUpdateInfo>

Here's the web.config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add
name="CTEDataController.Properties.Settings.time_e ntryConnectionString"
connectionString="Data
Source=.\SQLEXPRESS;AttachDbFilename=|DataDirector y|\time_entry.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.runtime.remoting>
<application>
<service>
<wellknown type="CTEDataAccessor, CTEDataController" mode="Singleton"
objectUri="CTEDataAccessor.rem" />
</service>
<channels>
<channel ref="tcp" port="8085"/>
</channels>
</application>
</system.runtime.remoting>
...
</configuration>

Thanks for taking a look at this.

Loring

"Steven Cheng[MSFT]" wrote:
Hi Lghummel,

Welcome to ASP.NET newsgroup.
From your description, you're hosting a remoting object in IIS(ASP.NET),
however, when you try starting the host asp.net web application, you
encountering the following error:

==============
Failed to execute the request because the ASP.NET process identity does not
have read permissions to the global assembly cache. Error: 0x80070005
Access
is denied.
==============

if anything else I missed , please feel free to let me know. As for the
condition you mentioned, it is likely the asp.net process is executing
identity dosn't have the sufficient permissions to access GAC file.
(System.Web is the main assembly required by web application). Have you
tried running a very simple HelloWorld page(aspx page) to see whether it
can work on the site? Also, would you provide the detailed info about your
server environment such as OS version, IIS.

In addition, what's the current Authentication mode you used in IIS for
that application's virtual dir and have you used impersonation in ASP.NET ?

Please feel free to post here if there're any further info.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Thread-Topic: Remoting in IIS
| thread-index: AcXkxbRFYmsOtn4QRzWqY1OUi+yPHg==
| X-WBNR-Posting-Host: 140.211.82.4
| From: "=?Utf-8?B?TEdIdW1tZWw=?=" <lg******@community.nospam>
| Subject: Remoting in IIS
| Date: Tue, 8 Nov 2005 16:37:03 -0800
| Lines: 45
| Message-ID: <2C**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:356538
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I'm trying to host a remoting app in IIS and am getting the following
error:
|
| Failed to execute the request because the ASP.NET process identity does
not
| have read permissions to the global assembly cache. Error: 0x80070005
Access
| is denied.
|
| I tried adding ASPNET to the Administrators group with no success.
|
| The error is preceded by the following warning:
|
| Failed to initialize the AppDomain:/LM/W3SVC/1/Root/CTEDataController
|
| Exception: System.IO.FileLoadException
| Message: Could not load file or assembly 'System.Web, Version=2.0.0.0,
| Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies.
| Access is denied.
| StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName,
| String codeBase, Evidence assemblySecurity, Assembly locationHint,
| StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
| forIntrospection)
| at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
| Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
| forIntrospection)
| at System.Reflection.Assembly.InternalLoad(String assemblyString,
| Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
| forIntrospection)
| at System.Activator.CreateInstance(String assemblyName, String
typeName,
| Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[]
args,
| CultureInfo culture, Object[] activationAttributes, Evidence
securityInfo,
| StackCrawlMark& stackMark)
| at System.Activator.CreateInstance(String assemblyName, String
typeName)
| at System.AppDomain.CreateInstance(String assemblyName, String
typeName)
| at System.AppDomain.CreateInstance(String assemblyName, String
typeName)
| at
|
System.Web.Hosting.ApplicationManager.CreateAppDom ainWithHostingEnvironment(
String
| appId, IApplicationHost appHost, HostingEnvironmentParameters
| hostingParameters)
| at
|
System.Web.Hosting.ApplicationManager.CreateAppDom ainWithHostingEnvironmentA
ndReportErrors(String
| appId, IApplicationHost appHost, HostingEnvironmentParameters
| hostingParameters)
|
| Any ideas???
|
|
|

Nov 19 '05 #4
Hi Lghummel,

Thanks for your response.
So the ASP.NET runtime on the system works correctly. Is this the first
time you encounter the problem on that server, have you encountered such
problem before when accessing remoting component? I'm wondering whether
this is a component specific issue. What's the detailed code logic in your
remoting component , is it calling some other components which cause the
failure? Based on my research I've found the following web link which
demostrate a problem which has similiar symptom as yours:

http://www.hightechtalks.com/showthr...40#post7126840

It indicate a component specific issue, so I'd suggest you test a simple
helloworld remoting component in your problem envirnoment to see whether it
works.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Thread-Topic: Remoting in IIS
| thread-index: AcXljzPvVF5f5stqTmyNzgAKRvlQ3w==
| X-WBNR-Posting-Host: 140.211.82.4
| From: "=?Utf-8?B?TEdIdW1tZWw=?=" <lg******@community.nospam>
| References: <2C**********************************@microsoft.co m>
<aJ*************@TK2MSFTNGXA02.phx.gbl>
| Subject: RE: Remoting in IIS
| Date: Wed, 9 Nov 2005 16:39:26 -0800
| Lines: 192
| Message-ID: <DE**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:356889
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi Steven,
|
| I can run an axpx file on the site . I am running IIS 5.1 on my
development
| box (WinXP Pro 2002 SP2). I was able to verify (per Juan's reply) that
the
| user is ASPNET. I do not have impersonation on. Anonymous access is
turned
| on and the Integrated Windows authentication checkbox is checked. I am
| attempting to invoke the remote object via a web service with the
follwing
| code:
|
| string uri = "http://localhost/CTEDataController/CTEDataAccessor.rem";
| object remoteObj = RemotingServices.Connect(typeof(ICTEDataAccessor),
uri);
| ICTEDataAccessor icted = remoteObj as ICTEDataAccessor;
|
| Return Message:
|
| <?xml version="1.0" encoding="utf-8" ?>
| - <CTEDataUpdateInfo
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/">
| <msgTxt><?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
| 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html
| xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Server Unavailable
| </title> </head> <body> <h1><span style="font-family:Verdana;color:
| #ff3300">Server Application Unavailable </span></h1> <p> <span
| style="font-family:Verdana;"> The web application you are attempting to
| access on this web server is currently unavailable. Please hit the
"Refresh"
| button in your web browser to retry your request. </span></p> <p>
| <b>Administrator Note: </b> An error message detailing the cause of this
| specific request failure can be found in the application event log of the
web
| server. Please review this log entry to discover what caused this error
to
| occur. </p> </body> </html></msgTxt>
| <RowsUpdated>0</RowsUpdated>
| <ReturnValue>0</ReturnValue>
| </CTEDataUpdateInfo>
|
| Here's the web.config:
|
| <?xml version="1.0" encoding="utf-8" ?>
| <configuration>
| <connectionStrings>
| <add
| name="CTEDataController.Properties.Settings.time_e ntryConnectionString"
| connectionString="Data
|
Source=.\SQLEXPRESS;AttachDbFilename=|DataDirector y|\time_entry.mdf;Integrat
ed Security=True;User Instance=True"
| providerName="System.Data.SqlClient" />
| </connectionStrings>
| <system.runtime.remoting>
| <application>
| <service>
| <wellknown type="CTEDataAccessor, CTEDataController"
mode="Singleton"
| objectUri="CTEDataAccessor.rem" />
| </service>
| <channels>
| <channel ref="tcp" port="8085"/>
| </channels>
| </application>
| </system.runtime.remoting>
| ...
| </configuration>
|
| Thanks for taking a look at this.
|
| Loring
|
| "Steven Cheng[MSFT]" wrote:
|
| > Hi Lghummel,
| >
| > Welcome to ASP.NET newsgroup.
| > From your description, you're hosting a remoting object in
IIS(ASP.NET),
| > however, when you try starting the host asp.net web application, you
| > encountering the following error:
| >
| > ==============
| > Failed to execute the request because the ASP.NET process identity does
not
| > have read permissions to the global assembly cache. Error: 0x80070005
| > Access
| > is denied.
| > ==============
| >
| > if anything else I missed , please feel free to let me know. As for
the
| > condition you mentioned, it is likely the asp.net process is executing
| > identity dosn't have the sufficient permissions to access GAC file.
| > (System.Web is the main assembly required by web application). Have
you
| > tried running a very simple HelloWorld page(aspx page) to see whether
it
| > can work on the site? Also, would you provide the detailed info about
your
| > server environment such as OS version, IIS.
| >
| > In addition, what's the current Authentication mode you used in IIS for
| > that application's virtual dir and have you used impersonation in
ASP.NET ?
| >
| > Please feel free to post here if there're any further info.
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| >
| > --------------------
| > | Thread-Topic: Remoting in IIS
| > | thread-index: AcXkxbRFYmsOtn4QRzWqY1OUi+yPHg==
| > | X-WBNR-Posting-Host: 140.211.82.4
| > | From: "=?Utf-8?B?TEdIdW1tZWw=?=" <lg******@community.nospam>
| > | Subject: Remoting in IIS
| > | Date: Tue, 8 Nov 2005 16:37:03 -0800
| > | Lines: 45
| > | Message-ID: <2C**********************************@microsoft.co m>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain;
| > | charset="Utf-8"
| > | Content-Transfer-Encoding: 7bit
| > | X-Newsreader: Microsoft CDO for Windows 2000
| > | Content-Class: urn:content-classes:message
| > | Importance: normal
| > | Priority: normal
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:356538
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | I'm trying to host a remoting app in IIS and am getting the following
| > error:
| > |
| > | Failed to execute the request because the ASP.NET process identity
does
| > not
| > | have read permissions to the global assembly cache. Error: 0x80070005
| > Access
| > | is denied.
| > |
| > | I tried adding ASPNET to the Administrators group with no success.
| > |
| > | The error is preceded by the following warning:
| > |
| > | Failed to initialize the AppDomain:/LM/W3SVC/1/Root/CTEDataController
| > |
| > | Exception: System.IO.FileLoadException
| > | Message: Could not load file or assembly 'System.Web,
Version=2.0.0.0,
| > | Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
| > dependencies.
| > | Access is denied.
| > | StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName
fileName,
| > | String codeBase, Evidence assemblySecurity, Assembly locationHint,
| > | StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
| > | forIntrospection)
| > | at System.Reflection.Assembly.InternalLoad(AssemblyNa me
assemblyRef,
| > | Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
| > | forIntrospection)
| > | at System.Reflection.Assembly.InternalLoad(String assemblyString,
| > | Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
| > | forIntrospection)
| > | at System.Activator.CreateInstance(String assemblyName, String
| > typeName,
| > | Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[]
| > args,
| > | CultureInfo culture, Object[] activationAttributes, Evidence
| > securityInfo,
| > | StackCrawlMark& stackMark)
| > | at System.Activator.CreateInstance(String assemblyName, String
| > typeName)
| > | at System.AppDomain.CreateInstance(String assemblyName, String
| > typeName)
| > | at System.AppDomain.CreateInstance(String assemblyName, String
| > typeName)
| > | at
| > |
| >
System.Web.Hosting.ApplicationManager.CreateAppDom ainWithHostingEnvironment(
| > String
| > | appId, IApplicationHost appHost, HostingEnvironmentParameters
| > | hostingParameters)
| > | at
| > |
| >
System.Web.Hosting.ApplicationManager.CreateAppDom ainWithHostingEnvironmentA
| > ndReportErrors(String
| > | appId, IApplicationHost appHost, HostingEnvironmentParameters
| > | hostingParameters)
| > |
| > | Any ideas???
| > |
| > |
| > |
| >
| >
|

Nov 19 '05 #5
Hi, Loring.

If, as seems likely, like Steven says, the problem is that the
"asp.net process executing identity dosn't have sufficient
permissions to access the GAC file", or whether the problem
is a security-related runtime problem but does not relate to the
GAC, there's a simple way to assign the proper permissions
which the ASP.NET process accounts needs to run.

Run : aspnet_regiis -ga YourMachinename\ASPNET
from the .Net Framework directory.

Running that should give the ASPNET account
any permissions it needs but doesn't have.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"LGHummel" <lg******@community.nospam> wrote in message
news:DE**********************************@microsof t.com...
Hi Steven,

I can run an axpx file on the site . I am running IIS 5.1 on my development
box (WinXP Pro 2002 SP2). I was able to verify (per Juan's reply) that the
user is ASPNET. I do not have impersonation on. Anonymous access is turned
on and the Integrated Windows authentication checkbox is checked. I am
attempting to invoke the remote object via a web service with the follwing
code:

string uri = "http://localhost/CTEDataController/CTEDataAccessor.rem";
object remoteObj = RemotingServices.Connect(typeof(ICTEDataAccessor), uri);
ICTEDataAccessor icted = remoteObj as ICTEDataAccessor;

Return Message:

<?xml version="1.0" encoding="utf-8" ?>
- <CTEDataUpdateInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/">
<msgTxt><?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html
xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Server Unavailable
</title> </head> <body> <h1><span style="font-family:Verdana;color:
#ff3300">Server Application Unavailable </span></h1> <p> <span
style="font-family:Verdana;"> The web application you are attempting to
access on this web server is currently unavailable. Please hit the "Refresh"
button in your web browser to retry your request. </span></p> <p>
<b>Administrator Note: </b> An error message detailing the cause of this
specific request failure can be found in the application event log of the web
server. Please review this log entry to discover what caused this error to
occur. </p> </body> </html></msgTxt>
<RowsUpdated>0</RowsUpdated>
<ReturnValue>0</ReturnValue>
</CTEDataUpdateInfo>

Here's the web.config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add
name="CTEDataController.Properties.Settings.time_e ntryConnectionString"
connectionString="Data
Source=.\SQLEXPRESS;AttachDbFilename=|DataDirector y|\time_entry.mdf;Integrated
Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.runtime.remoting>
<application>
<service>
<wellknown type="CTEDataAccessor, CTEDataController" mode="Singleton"
objectUri="CTEDataAccessor.rem" />
</service>
<channels>
<channel ref="tcp" port="8085"/>
</channels>
</application>
</system.runtime.remoting>
...
</configuration>

Thanks for taking a look at this.

Loring

"Steven Cheng[MSFT]" wrote:
Hi Lghummel,

Welcome to ASP.NET newsgroup.
From your description, you're hosting a remoting object in IIS(ASP.NET),
however, when you try starting the host asp.net web application, you
encountering the following error:

==============
Failed to execute the request because the ASP.NET process identity does not
have read permissions to the global assembly cache. Error: 0x80070005
Access
is denied.
==============

if anything else I missed , please feel free to let me know. As for the
condition you mentioned, it is likely the asp.net process is executing
identity dosn't have the sufficient permissions to access GAC file.
(System.Web is the main assembly required by web application). Have you
tried running a very simple HelloWorld page(aspx page) to see whether it
can work on the site? Also, would you provide the detailed info about your
server environment such as OS version, IIS.

In addition, what's the current Authentication mode you used in IIS for
that application's virtual dir and have you used impersonation in ASP.NET ?

Please feel free to post here if there're any further info.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Thread-Topic: Remoting in IIS
| thread-index: AcXkxbRFYmsOtn4QRzWqY1OUi+yPHg==
| X-WBNR-Posting-Host: 140.211.82.4
| From: "=?Utf-8?B?TEdIdW1tZWw=?=" <lg******@community.nospam>
| Subject: Remoting in IIS
| Date: Tue, 8 Nov 2005 16:37:03 -0800
| Lines: 45
| Message-ID: <2C**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:356538
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I'm trying to host a remoting app in IIS and am getting the following
error:
|
| Failed to execute the request because the ASP.NET process identity does
not
| have read permissions to the global assembly cache. Error: 0x80070005
Access
| is denied.
|
| I tried adding ASPNET to the Administrators group with no success.
|
| The error is preceded by the following warning:
|
| Failed to initialize the AppDomain:/LM/W3SVC/1/Root/CTEDataController
|
| Exception: System.IO.FileLoadException
| Message: Could not load file or assembly 'System.Web, Version=2.0.0.0,
| Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies.
| Access is denied.
| StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName,
| String codeBase, Evidence assemblySecurity, Assembly locationHint,
| StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
| forIntrospection)
| at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
| Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
| forIntrospection)
| at System.Reflection.Assembly.InternalLoad(String assemblyString,
| Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
| forIntrospection)
| at System.Activator.CreateInstance(String assemblyName, String
typeName,
| Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[]
args,
| CultureInfo culture, Object[] activationAttributes, Evidence
securityInfo,
| StackCrawlMark& stackMark)
| at System.Activator.CreateInstance(String assemblyName, String
typeName)
| at System.AppDomain.CreateInstance(String assemblyName, String
typeName)
| at System.AppDomain.CreateInstance(String assemblyName, String
typeName)
| at
|
System.Web.Hosting.ApplicationManager.CreateAppDom ainWithHostingEnvironment(
String
| appId, IApplicationHost appHost, HostingEnvironmentParameters
| hostingParameters)
| at
|
System.Web.Hosting.ApplicationManager.CreateAppDom ainWithHostingEnvironmentA
ndReportErrors(String
| appId, IApplicationHost appHost, HostingEnvironmentParameters
| hostingParameters)
|
| Any ideas???
|
|
|

Nov 19 '05 #6

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

Similar topics

0
by: Sean Newton | last post by:
I am absolutely bewildered by now by the Microsoft.Samples SSPI and Security assemblies. I've been trying to set these up in a very straightforward harness in the way that I'd like to be able to...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS...
5
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
4
by: Uchiha Jax | last post by:
Hello everyone, I am a plenty silly person who is trying to learn .NET remoting through trial and error (all articles I read are going over my head at the moment (mostly) so I thought i'd give...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS...
0
by: Martijn Damen | last post by:
Hi, At the moment I am trying to develop an application that uses another app over .net remoting and having some problems with it (ok, that is ofcourse why I am here), hope somebody can shine a...
8
by: Raju Joseph | last post by:
Hi All, I am just trying to get an opinion here. I know this is always a tough choice to make. We are in the process of converting our VB6 based Healthcare Information System (a full-fledged...
2
by: erbilkonuk | last post by:
Hi, I am very new to .NET Remoting and I try to run a simple program to subscribe to an event raised by Remoting Class. The Remoting Server initiates an instance of Remoting Class as Singleton /...
0
by: Kristian Reukauff | last post by:
Hi I have a problem with the .Net-Securty-Functions. I've got a client and a server. When I try to register a channel at the server with this line: ChannelServices.RegisterChannel(chan, false);...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...
0
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...
0
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,...

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.