Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4022328
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:27:41+00:00 2026-05-20T10:27:41+00:00

I am recieving an error message what appears to be permission related. I can’t

  • 0

I am recieving an error message what appears to be permission related. I can’t workout which file needs permissions changing on. What I was also curious about was why the error is looking at paths like

d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Data\Repository.cs

Is it trying to call upon an external library elsewhere?

Any help would be great

Server Error in ‘/’ Application.

Access is denied. (Exception from
HRESULT: 0x80070005 (E_ACCESSDENIED))

Description: An unhandled exception
occurred during the execution of the
current web request. Please review the
stack trace for more information about
the error and where it originated in
the code.

Exception Details:
System.UnauthorizedAccessException:
Access is denied. (Exception from
HRESULT: 0x80070005 (E_ACCESSDENIED))

ASP.NET is not authorized to access
the requested resource. Consider
granting access rights to the resource
to the ASP.NET request identity.
ASP.NET has a base process identity
(typically {MACHINE}\ASPNET on IIS 5
or Network Service on IIS 6 and IIS 7,
and the configured application pool
identity on IIS 7.5) that is used if
the application is not impersonating.
If the application is impersonating
via ,
the identity will be the anonymous
user (typically IUSR_MACHINENAME) or
the authenticated request user.

To grant ASP.NET access to a file,
right-click the file in Explorer,
choose “Properties” and select the
Security tab. Click “Add” to add the
appropriate user or group. Highlight
the ASP.NET account, and check the
boxes for the desired access.

Source Error:

An unhandled exception was generated
during the execution of the current
web request. Information regarding the
origin and location of the exception
can be identified using the exception
stack trace below.

Stack Trace:

[UnauthorizedAccessException: Access
is denied. (Exception from HRESULT:
0x80070005 (E_ACCESSDENIED))]
System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32
errorCode, IntPtr errorInfo) +0
System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32
errorCode) +49
System.Data.SqlServerCe.UnmanagedLibraryHelper..ctor(String
fileName) +76
System.Data.SqlServerCe.NativeMethodsHelper..ctor(String
modulePath) +27
System.Data.SqlServerCe.NativeMethods.LoadValidLibrary(String
modulePath) +281
System.Data.SqlServerCe.NativeMethods.LoadNativeBinariesFromPrivateFolder(String
privateInstall) +76
System.Data.SqlServerCe.NativeMethods.LoadNativeBinaries()
+225 System.Data.SqlServerCe.SqlCeCommand..ctor()
+65

[TargetInvocationException: Exception
has been thrown by the target of an
invocation.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType
type, Boolean publicOnly, Boolean
noCheck, Boolean& canBeCached,
RuntimeMethodHandleInternal& ctor,
Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean
publicOnly, Boolean skipCheckThis,
Boolean fillCache) +98
System.RuntimeType.CreateInstanceDefaultCtor(Boolean
publicOnly, Boolean
skipVisibilityChecks, Boolean
skipCheckThis, Boolean fillCache) +241
System.Activator.CreateInstance(Type
type, Boolean nonPublic) +69
NHibernate.Bytecode.ActivatorObjectsFactory.CreateInstance(Type
type) +8
NHibernate.Driver.ReflectionBasedDriver.CreateCommand()
+28 NHibernate.Driver.SqlServerCeDriver.Configure(IDictionary2
settings) +99
Orchard.Data.Providers.OrchardSqlServerCeDriver.Configure(IDictionary
2
settings) in
d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Data\Providers\SqlCeDataServicesProvider.cs:77
NHibernate.Connection.ConnectionProvider.ConfigureDriver(IDictionary`2
settings) +158

[HibernateException: Could not create
the driver from
Orchard.Data.Providers.SqlCeDataServicesProvider+OrchardSqlServerCeDriver,
Orchard.Framework, Version=1.0.20.0,
Culture=neutral, PublicKeyToken=null.]
NHibernate.Connection.ConnectionProvider.ConfigureDriver(IDictionary2
settings) +241
NHibernate.Connection.ConnectionProvider.Configure(IDictionary
2
settings) +86
NHibernate.Connection.ConnectionProviderFactory.NewConnectionProvider(IDictionary2
settings) +351
NHibernate.Cfg.SettingsFactory.BuildSettings(IDictionary
2
properties) +953
NHibernate.Cfg.Configuration.BuildSettings()
+17 NHibernate.Cfg.Configuration.BuildSessionFactory()
+44 Orchard.Data.SessionFactoryHolder.BuildSessionFactory()
in
d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Data\SessionFactoryHolder.cs:74
Orchard.Data.SessionFactoryHolder.GetSessionFactory()
in
d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Data\SessionFactoryHolder.cs:52
Orchard.Data.SessionLocator.For(Type
entityType) in
d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Data\SessionLocator.cs:29
Orchard.Data.Repository1.get_Session()
in
d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Data\Repository.cs:26 Orchard.Data.Repository
1.get_Table()
in
d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Data\Repository.cs:30 Orchard.Data.Repository1.Fetch(Expression1
predicate) in
d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Data\Repository.cs:126 Orchard.Data.Repository1.Get(Expression1
predicate) in
d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Data\Repository.cs:91 Orchard.Data.Repository1.Orchard.Data.IRepository<T>.Get(Expression1
predicate) in
d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Data\Repository.cs:60 Orchard.Core.Settings.Descriptor.ShellDescriptorManager.GetDescriptorRecord()
in
d:\TeamCity\Projects\Orchard-1.x\src\Orchard.Web\Core\Settings\Descriptor\ShellDescriptorManager.cs:52
Orchard.Core.Settings.Descriptor.ShellDescriptorManager.GetShellDescriptor()
in
d:\TeamCity\Projects\Orchard-1.x\src\Orchard.Web\Core\Settings\Descriptor\ShellDescriptorManager.cs:25
Orchard.Environment.ShellBuilders.ShellContextFactory.CreateShellContext(ShellSettings
settings) in
d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Environment\ShellBuilders\ShellContextFactory.cs:66
Orchard.Environment.DefaultOrchardHost.CreateShellContext(ShellSettings
settings) in
d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Environment\DefaultOrchardHost.cs:128
Orchard.Environment.DefaultOrchardHost.b__1(ShellSettings
settings) in
d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Environment\DefaultOrchardHost.cs:100
System.Linq.WhereSelectArrayIterator2.MoveNext()
+85 System.Linq.Buffer
1..ctor(IEnumerable1
source) +217
System.Linq.Enumerable.ToArray(IEnumerable
1
source) +78
Orchard.Environment.DefaultOrchardHost.BuildCurrent()
in
d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Environment\DefaultOrchardHost.cs:87
Orchard.Environment.DefaultOrchardHost.Orchard.Environment.IOrchardHost.Initialize()
in
d:\TeamCity\Projects\Orchard-1.x\src\Orchard\Environment\DefaultOrchardHost.cs:56
Orchard.Web.MvcApplication.Application_Start()
in
d:\TeamCity\Projects\Orchard-1.x\src\Orchard.Web\Global.asax.cs:22

[HttpException (0x80004005): Could not
create the driver from
Orchard.Data.Providers.SqlCeDataServicesProvider+OrchardSqlServerCeDriver,
Orchard.Framework, Version=1.0.20.0,
Culture=neutral, PublicKeyToken=null.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext
context, HttpApplication app) +9028953
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr
appContext, HttpContext context,
MethodInfo[] handlers) +131
System.Web.HttpApplication.InitSpecial(HttpApplicationState
state, MethodInfo[] handlers, IntPtr
appContext, HttpContext context) +194
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr
appContext, HttpContext context) +339
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr
appContext) +253

[HttpException (0x80004005): Could not
create the driver from
Orchard.Data.Providers.SqlCeDataServicesProvider+OrchardSqlServerCeDriver,
Orchard.Framework, Version=1.0.20.0,
Culture=neutral, PublicKeyToken=null.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext
context) +8950644
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext
context) +97
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest
wr, HttpContext context) +256

Version Information: Microsoft .NET
Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.1

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:27:41+00:00Added an answer on May 20, 2026 at 10:27 am

    The paths to D:\TeamCity\Projects\Orchard-1.x are a bit of a misdirection, they appear within the stack trace and more specifically refer to where the project was originally built, not where Orchard is looking for resources.

    TeamCity is a Continuous Integration System used quite widely in the .NET World.

    I can’t give you a concrete solution to your problem, you do appear to be correct in your assumption that it is a permissions issue. I would recommend using process monitor to track down origin of the error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am recieving an error in my Codeigniter Model which is inserting a single
I'm receiving this fatal error message: Using $this when not in object context. This
I am receiving a CoreData could not fulfill a fault for ... error message
issue facing while loading the messages in to mq channel, recieving an error like
When retrieving packages with Cabal, I frequently get errors with this message: user error
I am recieving an error: Notice: Undefined variable: content in C:\wamp\www\includes\imdbgrabber.php on line 17
My Jquery code is recieving following error: Uncaught SyntaxError: Unexpected token ; Here is
having sorted this error - Ruby mysql2 Error I now am recieving this error
I'm recieving the following error on trying to run an append query in access.
I'm receiving an error message from the compiler indicating (it's an embedded C compiler):

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.