Exception has been thrown by the target of an invocation
Hello:
We have been experiencing this reoccuring issue when we try to upgrade to any version after Umbraco 7.1.9 in Visual Studio 2013 using NuGet. The update seems to go fine. We answer "NO" to overwritting the config files. We have not been able to track down why this error happens. At this point in the upgrade process we have not gotten to the database update part. This happens after building the solution and starting without debugging.
We would greatly appreciate any help with this. We need to go live soon with the site and this is the first major upgrade issue we've experienced.
Umbraco version: 7.1.9 asp.net: 4.0 Windows: 8.1 Pro
Thank you,
Below is the error we are getting:
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Exception has been thrown by the target of an invocation.
Source Error:
Line 158: <providers>
Line 159: <clear />
Line 160: <add name="UmbracoRoleProvider" type="Umbraco.Web.Security.Providers.MembersRoleProvider" />
Line 161: </providers>
Line 162: </roleManager>
Source File: C:\Users\#####\Documents\Visual Studio 2013\Projects\######\#######.WebApp\web.config Line: 160
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34212
It's interesting to see that no other developer has had this issue while using nuget and upgrading. We have a pretty standard install of Umbraco. Just bumping this up again in case it got missed last week.
I had to comment this part out in order to get the upgrade to get passed the error. Still not sure if i should proceed with the database update... I have a backup so i'm gonna try and see what happens.
Now i get this error during the upgrade (which fails)
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Exception has been thrown by the target of an invocation.
Source Error:
Line 10: <ExamineIndexProviders>
Line 11: <providers>
Line 12: <add name="InternalIndexer" type="UmbracoExamine.UmbracoContentIndexer, UmbracoExamine"
Line 13: supportUnpublished="true"
Line 14: supportProtected="true"
Source File: C:\Users\#####\Documents\Visual Studio 2013\Projects\######\####.######.WebApp\config\ExamineSettings.config Line: 12
I am getting the same error. Upgrading from 6.0.6 to 6.2.5
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Exception has been thrown by the target of an invocation.
Source Error:
Line 136: <providers>
Line 137: <clear />
Line 138: <add name="UmbracoRoleProvider" type="Umbraco.Web.Security.Providers.MembersRoleProvider" />
Line 139: </providers>
Line 140: </roleManager>
Problem resolved. I had code running in the constructor of a class inheriting from IApplicationEventHandler and in the OnApplicationInitialized. This code required membership to be initialized. Commenting the code before upgrade seems to have resolved the issue.
Server event log showed the error occurred in System.Web.Security.Membership.Initialize().
Just to add a potential solution for anyone else landing here after seeing this error.
I stuffed up my build scripts and therefore my web.config. I was missing all the very important keys under < appSettings > - if you do this too you'll see the error above!
Run into the same error when I tried to create a Global.asax.cs
In your Global.asax.cs:
using System.Web.Mvc;
using System.Web.Routing;
using Umbraco.Web;
namespace Myapp.Web
{
//This class has to inherit from UmbracoApplication or else you get an error
public class Global : UmbracoApplication
{
protected void Application_Start()
{
//stuff in here
};
}
}
}
For anyone that missed it:
if your class doesn't inherit from UmbracoApplication, you'll get the
same error
Exception has been thrown by the target of an invocation
Hello:
We have been experiencing this reoccuring issue when we try to upgrade to any version after Umbraco 7.1.9 in Visual Studio 2013 using NuGet. The update seems to go fine. We answer "NO" to overwritting the config files. We have not been able to track down why this error happens. At this point in the upgrade process we have not gotten to the database update part. This happens after building the solution and starting without debugging.
We would greatly appreciate any help with this. We need to go live soon with the site and this is the first major upgrade issue we've experienced.
Umbraco version: 7.1.9
asp.net: 4.0
Windows: 8.1 Pro
Thank you,
Below is the error we are getting:
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.Parser Error Message: Exception has been thrown by the target of an invocation.
Source Error:
Line 158: <providers> Line 159: <clear /> Line 160: <add name="UmbracoRoleProvider" type="Umbraco.Web.Security.Providers.MembersRoleProvider" /> Line 161: </providers> Line 162: </roleManager>
Source File: C:\Users\#####\Documents\Visual Studio 2013\Projects\######\#######.WebApp\web.config Line: 160
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34212
Anyone else getting this error? We tried again today to upgrade our Umbraco installation and still get the same error.
It's interesting to see that no other developer has had this issue while using nuget and upgrading. We have a pretty standard install of Umbraco. Just bumping this up again in case it got missed last week.
Thanks!
I had to comment this part out in order to get the upgrade to get passed the error. Still not sure if i should proceed with the database update... I have a backup so i'm gonna try and see what happens.
Now i get this error during the upgrade (which fails)
I am getting the same error. Upgrading from 6.0.6 to 6.2.5
Problem resolved. I had code running in the constructor of a class inheriting from IApplicationEventHandler and in the OnApplicationInitialized. This code required membership to be initialized. Commenting the code before upgrade seems to have resolved the issue.
Server event log showed the error occurred in System.Web.Security.Membership.Initialize().
Install is running now.
Just to add a potential solution for anyone else landing here after seeing this error.
I stuffed up my build scripts and therefore my web.config. I was missing all the very important keys under < appSettings > - if you do this too you'll see the error above!
This exact error can also be caused by a missing Global.asax file. Turns out.
Thanks Sunshine. In my case i had the same issue. Global.asax was missing on live sercer
I had this issue. Turned out I messed up the umbracoDbDSN connection string on a web.config transform.
Just to add to this:
Run into the same error when I tried to create a Global.asax.cs
In your Global.asax.cs:
For anyone that missed it:
I had the same error when I was setting up a new deploy pipeline.
Turns out that global.asax wasn't copied to the deploy-directory. After adding this files things worked.
is working on a reply...