472,146 Members | 1,373 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Type.GetType Access is denied

Hello,

The .NET application I have just installed at a client web site is throwing
a strange error. At first the applications works without any problems, but
after 10 mins or so Access denied error messages are thrown.

The application, web based, late binds to a series of assemblies, none of
which are in the GAC. I have configured the application to impersonate the
IIS user and have set the user to have access to all relevant directories
(wwwroot, wwwroot/bin, Microsoft.Net/framework/v1.1.4322) and disabled the
index services service.

After digging a little deeper it seems the error is thrown when calling
Type.GetType, but like I mentioned earlier everything works fine but then
suddenly dies.

Can anybody think why this is the case and what I can do to resolve this
irritating problem.
Thanks

Richard.
Nov 16 '05 #1
4 2619
Can you give you full text/call stack of the error message?

Ken
"RichB" <ri**********@hotmail.com> wrote in message
news:O1**************@TK2MSFTNGP10.phx.gbl...
Hello,

The .NET application I have just installed at a client web site is throwing a strange error. At first the applications works without any problems, but after 10 mins or so Access denied error messages are thrown.

The application, web based, late binds to a series of assemblies, none of
which are in the GAC. I have configured the application to impersonate the IIS user and have set the user to have access to all relevant directories
(wwwroot, wwwroot/bin, Microsoft.Net/framework/v1.1.4322) and disabled the
index services service.

After digging a little deeper it seems the error is thrown when calling
Type.GetType, but like I mentioned earlier everything works fine but then
suddenly dies.

Can anybody think why this is the case and what I can do to resolve this
irritating problem.
Thanks

Richard.

Nov 16 '05 #2
Ken,

Callstack information as requested. Sorry, but I have had to replace all
sensitive data with <**>.

<ExceptionInformation>
<AdditionalInformationProperty ExceptionManager.MachineName="<**>"
ExceptionManager.TimeStamp="8/13/2004 8:36:37 AM"
ExceptionManager.FullName="Microsoft.ApplicationBl ocks.ExceptionManagement,
Version=1.0.1656.18979, Culture=neutral, PublicKeyToken=3dcf13b858d6259b"
ExceptionManager.AppDomainName="/LM/w3svc/3/Root-6-127368007456178050"
ExceptionManager.ThreadIdentity="" ExceptionManager.WindowsIdentity="<**>"/>
<Exception ExceptionType="System.IO.FileLoadException" Message="Access is
denied: '<**>.<**>.Web.Custom'." FileName="<**>.<**>.Web.Custom"
FusionLog="=== Pre-bind state information ===&#xD;&#xA;LOG: DisplayName =
<**>.<**>.Web.Custom, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=3dcf13b858d6259b&#xA; (Fully-specified)&#xD;&#xA;LOG: Appbase
= file:///C:/Program Files/<**>/webapps/<**>/Web
Server/wwwroot&#xD;&#xA;LOG: Initial PrivatePath = bin&#xD;&#xA;Calling
assembly : (Unknown).&#xD;&#xA;===&#xA;&#xD;&#xA;LOG: Attempting download of
new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/root/04a27ca2/cc847738/<**>.<**>.Web.Custom.DLL.&#xD;&#xA;LOG:
Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/root/04a27ca2/cc847738/<**>.<**>.Web.Custom/<**>.<**>.Web.Custom.DLL.&
#xD;&#xA;LOG: Attempting download of new URL file:///C:/Program
Files/<**>/webapps/<**>/Web
Server/wwwroot/bin/<**>.<**>.Web.Custom.DLL.&#xD;&#xA;"
TargetSite="System.Type GetType(System.String, Boolean)" Source="mscorlib">
<StackTrace> at System.Type.GetType(String typeName, Boolean throwOnError)
at <**>.<**>.Web.Types.BORequest.Validate()
at <**>.<**>.Web.Common.Helpers.SupportSerialization. Deserialize(Stream
sourceXml, Type typeOfObjectToCreate)
at <**>.<**>.Web.Common.Helpers.SupportSerialization. Deserialize(String
sourceXml, Type typeOfObjectToCreate)
at
<**>.<**>.Web.wwwroot.Business.ApplicationConfigur ation.GetBORequest(IMSE_Re
quest sourceImseRequest)
at
<**>.<**>.Web.wwwroot.Business.XmlProvider.Generat eContextRequest(IMSE_Reque
st sourceImseRequest, Authentication&amp; userAuthentication, BORequest&amp;
boRequestConfiguration)
at <**>.<**>.Web.wwwroot.Business.XmlProvider.Process (IMSE_Request
sourceImseRequest)</StackTrace>
</Exception>
</ExceptionInformation>

Thanks

Richard.


"Ken Kolda" <ke*******@elliemae-nospamplease.com> wrote in message
news:eU**************@TK2MSFTNGP09.phx.gbl...
Can you give you full text/call stack of the error message?

Ken
"RichB" <ri**********@hotmail.com> wrote in message
news:O1**************@TK2MSFTNGP10.phx.gbl...
Hello,

The .NET application I have just installed at a client web site is

throwing
a strange error. At first the applications works without any problems,

but
after 10 mins or so Access denied error messages are thrown.

The application, web based, late binds to a series of assemblies, none of which are in the GAC. I have configured the application to impersonate

the
IIS user and have set the user to have access to all relevant directories (wwwroot, wwwroot/bin, Microsoft.Net/framework/v1.1.4322) and disabled the index services service.

After digging a little deeper it seems the error is thrown when calling
Type.GetType, but like I mentioned earlier everything works fine but then suddenly dies.

Can anybody think why this is the case and what I can do to resolve this
irritating problem.
Thanks

Richard.


Nov 16 '05 #3
As I'm sure you've seen, the problem arises when it's trying to load the
xxx.Web.Custom assembly. The fact it's a FileLoadException (as opposed to a
TypeLoadException) to me says its a file system permission issue (as you
clearly suspected). You said you granted the IIS user access to wwwroot,
wwwroot/bin and the .NET Framework folder. I'm not sure if by "access" you
mean read/write or read-only, but you should verify the user has full
permissions for the "Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files" folder and that these permissions are inherited by the subfolders.

If that doesn't fix it, do a test (if you haven't already) and have the
ASP.NET process run as a more privileged user (e.g. SYSTEM). See if that
fixes it -- at least that will verify it's a user-related permissions issue
(as opposed to some other .NET config issue).

Ken
"RichB" <ri**********@hotmail.com> wrote in message
news:Ow****************@TK2MSFTNGP10.phx.gbl...
Ken,

Callstack information as requested. Sorry, but I have had to replace all
sensitive data with <**>.

<ExceptionInformation>
<AdditionalInformationProperty ExceptionManager.MachineName="<**>"
ExceptionManager.TimeStamp="8/13/2004 8:36:37 AM"
ExceptionManager.FullName="Microsoft.ApplicationBl ocks.ExceptionManagement, Version=1.0.1656.18979, Culture=neutral, PublicKeyToken=3dcf13b858d6259b"
ExceptionManager.AppDomainName="/LM/w3svc/3/Root-6-127368007456178050"
ExceptionManager.ThreadIdentity="" ExceptionManager.WindowsIdentity="<**>"/> <Exception ExceptionType="System.IO.FileLoadException" Message="Access is
denied: '<**>.<**>.Web.Custom'." FileName="<**>.<**>.Web.Custom"
FusionLog="=== Pre-bind state information ===&#xD;&#xA;LOG: DisplayName =
<**>.<**>.Web.Custom, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=3dcf13b858d6259b&#xA; (Fully-specified)&#xD;&#xA;LOG: Appbase = file:///C:/Program Files/<**>/webapps/<**>/Web
Server/wwwroot&#xD;&#xA;LOG: Initial PrivatePath = bin&#xD;&#xA;Calling
assembly : (Unknown).&#xD;&#xA;===&#xA;&#xD;&#xA;LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/04a27ca2/cc847738/<**>.<**>.Web.Custom.DLL.&#xD;&#xA;LOG:
Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/root/04a27ca2/cc847738/<**>.<**>.Web.Custom/<**>.<**>.Web.Custom.DLL.& #xD;&#xA;LOG: Attempting download of new URL file:///C:/Program
Files/<**>/webapps/<**>/Web
Server/wwwroot/bin/<**>.<**>.Web.Custom.DLL.&#xD;&#xA;"
TargetSite="System.Type GetType(System.String, Boolean)" Source="mscorlib"> <StackTrace> at System.Type.GetType(String typeName, Boolean throwOnError)
at <**>.<**>.Web.Types.BORequest.Validate()
at <**>.<**>.Web.Common.Helpers.SupportSerialization. Deserialize(Stream
sourceXml, Type typeOfObjectToCreate)
at <**>.<**>.Web.Common.Helpers.SupportSerialization. Deserialize(String
sourceXml, Type typeOfObjectToCreate)
at
<**>.<**>.Web.wwwroot.Business.ApplicationConfigur ation.GetBORequest(IMSE_Re quest sourceImseRequest)
at
<**>.<**>.Web.wwwroot.Business.XmlProvider.Generat eContextRequest(IMSE_Reque st sourceImseRequest, Authentication&amp; userAuthentication, BORequest&amp; boRequestConfiguration)
at <**>.<**>.Web.wwwroot.Business.XmlProvider.Process (IMSE_Request
sourceImseRequest)</StackTrace>
</Exception>
</ExceptionInformation>

Thanks

Richard.


"Ken Kolda" <ke*******@elliemae-nospamplease.com> wrote in message
news:eU**************@TK2MSFTNGP09.phx.gbl...
Can you give you full text/call stack of the error message?

Ken
"RichB" <ri**********@hotmail.com> wrote in message
news:O1**************@TK2MSFTNGP10.phx.gbl...
Hello,

The .NET application I have just installed at a client web site is

throwing
a strange error. At first the applications works without any problems,
but
after 10 mins or so Access denied error messages are thrown.

The application, web based, late binds to a series of assemblies, none of which are in the GAC. I have configured the application to
impersonate
the
IIS user and have set the user to have access to all relevant

directories (wwwroot, wwwroot/bin, Microsoft.Net/framework/v1.1.4322) and disabled the index services service.

After digging a little deeper it seems the error is thrown when
calling Type.GetType, but like I mentioned earlier everything works fine but

then suddenly dies.

Can anybody think why this is the case and what I can do to resolve this irritating problem.
Thanks

Richard.



Nov 16 '05 #4
Ken,

Thanks for the information.

Unfortunately, the IIS user has full control to Microsoft.NET directory and
all its children and it still fails. I have also changed the user to an
Admin user and it works, but causes problems because the user has to be
trusted on a SQL database.

At first I thought it could just be an issue with the client installation,
but after playing with a similar install back at the office I seem to get
the same problems when I change the port. At first everything is running as
expected, but then I get the "Access is denied" message.

Thankfully, I have found that by adding everyone to the Microsoft.NET
directory the problem is solved. Fortunately, this client is not so
concerned about security on directories, but I know for sure that certain
other clients will not allow everyone access.

Thanks

Richard.

P.S Once again thanks for the help, it is really appreciated.

"Ken Kolda" <ke*******@elliemae-nospamplease.com> wrote in message
news:u6**************@TK2MSFTNGP12.phx.gbl...
As I'm sure you've seen, the problem arises when it's trying to load the
xxx.Web.Custom assembly. The fact it's a FileLoadException (as opposed to a TypeLoadException) to me says its a file system permission issue (as you
clearly suspected). You said you granted the IIS user access to wwwroot,
wwwroot/bin and the .NET Framework folder. I'm not sure if by "access" you
mean read/write or read-only, but you should verify the user has full
permissions for the "Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files" folder and that these permissions are inherited by the subfolders.

If that doesn't fix it, do a test (if you haven't already) and have the
ASP.NET process run as a more privileged user (e.g. SYSTEM). See if that
fixes it -- at least that will verify it's a user-related permissions issue (as opposed to some other .NET config issue).

Ken
"RichB" <ri**********@hotmail.com> wrote in message
news:Ow****************@TK2MSFTNGP10.phx.gbl...
Ken,

Callstack information as requested. Sorry, but I have had to replace all
sensitive data with <**>.

<ExceptionInformation>
<AdditionalInformationProperty ExceptionManager.MachineName="<**>"
ExceptionManager.TimeStamp="8/13/2004 8:36:37 AM"

ExceptionManager.FullName="Microsoft.ApplicationBl ocks.ExceptionManagement,
Version=1.0.1656.18979, Culture=neutral, PublicKeyToken=3dcf13b858d6259b"
ExceptionManager.AppDomainName="/LM/w3svc/3/Root-6-127368007456178050"
ExceptionManager.ThreadIdentity=""

ExceptionManager.WindowsIdentity="<**>"/>
<Exception ExceptionType="System.IO.FileLoadException" Message="Access is denied: '<**>.<**>.Web.Custom'." FileName="<**>.<**>.Web.Custom"
FusionLog="=== Pre-bind state information ===&#xD;&#xA;LOG: DisplayName = <**>.<**>.Web.Custom, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=3dcf13b858d6259b&#xA; (Fully-specified)&#xD;&#xA;LOG:

Appbase
= file:///C:/Program Files/<**>/webapps/<**>/Web
Server/wwwroot&#xD;&#xA;LOG: Initial PrivatePath = bin&#xD;&#xA;Calling
assembly : (Unknown).&#xD;&#xA;===&#xA;&#xD;&#xA;LOG: Attempting download of
new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary

ASP.NET
Files/root/04a27ca2/cc847738/<**>.<**>.Web.Custom.DLL.&#xD;&#xA;LOG:
Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET

Files/root/04a27ca2/cc847738/<**>.<**>.Web.Custom/<**>.<**>.Web.Custom.DLL.& #xD;&#xA;LOG: Attempting download of new URL file:///C:/Program
Files/<**>/webapps/<**>/Web
Server/wwwroot/bin/<**>.<**>.Web.Custom.DLL.&#xD;&#xA;"
TargetSite="System.Type GetType(System.String, Boolean)"

Source="mscorlib">
<StackTrace> at System.Type.GetType(String typeName, Boolean throwOnError) at <**>.<**>.Web.Types.BORequest.Validate()
at <**>.<**>.Web.Common.Helpers.SupportSerialization. Deserialize(Stream
sourceXml, Type typeOfObjectToCreate)
at <**>.<**>.Web.Common.Helpers.SupportSerialization. Deserialize(String
sourceXml, Type typeOfObjectToCreate)
at

<**>.<**>.Web.wwwroot.Business.ApplicationConfigur ation.GetBORequest(IMSE_Re
quest sourceImseRequest)
at

<**>.<**>.Web.wwwroot.Business.XmlProvider.Generat eContextRequest(IMSE_Reque
st sourceImseRequest, Authentication&amp; userAuthentication,

BORequest&amp;
boRequestConfiguration)
at <**>.<**>.Web.wwwroot.Business.XmlProvider.Process (IMSE_Request
sourceImseRequest)</StackTrace>
</Exception>
</ExceptionInformation>

Thanks

Richard.


"Ken Kolda" <ke*******@elliemae-nospamplease.com> wrote in message
news:eU**************@TK2MSFTNGP09.phx.gbl...
Can you give you full text/call stack of the error message?

Ken
"RichB" <ri**********@hotmail.com> wrote in message
news:O1**************@TK2MSFTNGP10.phx.gbl...
> Hello,
>
> The .NET application I have just installed at a client web site is
throwing
> a strange error. At first the applications works without any problems, but
> after 10 mins or so Access denied error messages are thrown.
>
> The application, web based, late binds to a series of assemblies,
none of
> which are in the GAC. I have configured the application to impersonate the
> IIS user and have set the user to have access to all relevant

directories
> (wwwroot, wwwroot/bin, Microsoft.Net/framework/v1.1.4322) and
disabled the
> index services service.
>
> After digging a little deeper it seems the error is thrown when

calling > Type.GetType, but like I mentioned earlier everything works fine but

then
> suddenly dies.
>
> Can anybody think why this is the case and what I can do to resolve this > irritating problem.
>
>
> Thanks
>
> Richard.
>
>



Nov 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Mike in Paradise | last post: by
reply views Thread by Nashat Wanly | last post: by
2 posts views Thread by S. Justin Gengo | last post: by
6 posts views Thread by Charles Law | last post: by
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

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.