method not found void

I’ve built a fairly simple website in using Visual Studio 2012 using .net 4.5 version.

When I uploaded the website to my server I get the following error:

Method not found: ‘Void System.Web.UI.ScriptResourceDefinition.set_LoadSuccessExpression(System.String)’.

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.MissingMethodException: Method not found: ‘Void System.Web.UI.ScriptResourceDefinition.set_LoadSuccessExpression(System.String)’.

[MissingMethodException: Method not found: ‘Void System.Web.UI.ScriptResourceDefinition.set_LoadSuccessExpression(System.String)’.] Microsoft.ScriptManager.WebFormsv45.PreApplicationStartCode.Start() +0

[InvalidOperationException: The pre-application start initialization method Start on type Microsoft.ScriptManager.WebFormsv45.PreApplicationStartCode threw an exception with the following error message: Method not found: ‘Void System.Web.UI.ScriptResourceDefinition.set_LoadSuccessExpression(System.String)’..] System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +423 System.Web.Compilation.BuildManager.CallPreStartInitMethods() +306 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +677

[HttpException (0x80004005): The pre-application start initialization method Start on type Microsoft.ScriptManager.WebFormsv45.PreApplicationStartCode threw an exception with the following error message: Method not found: ‘Void System.Web.UI.ScriptResourceDefinition.set_LoadSuccessExpression(System.String)’..] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9090876 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256

(the hosting company provides the following: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272)

I am aware of this question/answer: http://forums.asp.net/t/1823969.aspx/1 But I find it wasn’t very helpful since it doesn’t provide any details about where I would correct the references (I am not sure where/what csproj is).

Also I am aware of the similar question posted here with no answers:

Any tips and suggestions how to fix this issue are appreciated.

Comments

Copy link Quote reply

b06sd commented Mar 1, 2018

This is my issue (Method not found) When i issue this command on my terminal

info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
User profile is available. Using ‘/home/oladotun/.aspnet/DataProtection-Keys’ as key repository; keys will not be encrypted at rest.
info: Microsoft.EntityFrameworkCore.Infrastructure[10403]
Entity Framework Core 2.1.0-preview1-28290 initialized ‘AppDbContext’ using provider ‘Pomelo.EntityFrameworkCore.MySql’ with options: None
System.MissingMethodException: Method not found: ‘Void Microsoft.EntityFrameworkCore.Storage.Internal.RelationalParameterBuilder..ctor(Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper)’.
at Microsoft.EntityFrameworkCore.Storage.Internal.MySqlCommandBuilder..ctor(IDiagnosticsLogger 1 logger, IRelationalTypeMapper typeMapper) at Microsoft.EntityFrameworkCore.Storage.Internal.MySqlCommandBuilderFactory.CreateCore(IDiagnosticsLogger 1 logger, IRelationalTypeMapper relationalTypeMapper)
at Microsoft.EntityFrameworkCore.Storage.Internal.RawSqlCommandBuilder.Build(String sql)
at Microsoft.EntityFrameworkCore.Migrations.HistoryRepository.Exists()
at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.Migrate(String targetMigration)
at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.UpdateDatabase(String targetMigration, String contextType)
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
Method not found: ‘Void Microsoft.EntityFrameworkCore.Storage.Internal.RelationalParameterBuilder..ctor(Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper)’.

Tired google, but it seems no one has encountered this issue before

This comment has been minimized.

Copy link Quote reply

ajcvickers commented Mar 1, 2018

This comment has been minimized.

Copy link Quote reply

b06sd commented Mar 1, 2018

This comment has been minimized.

Copy link Quote reply

b06sd commented Mar 1, 2018

info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
User profile is available. Using ‘/home/oladotun/.aspnet/DataProtection-Keys’ as key repository; keys will not be encrypted at rest.
System.MissingMethodException: Method not found: ‘Void MySql.Data.MySqlClient.MySqlConnectionStringBuilder.set_BufferResultSets(Boolean)’.
at Microsoft.EntityFrameworkCore.MySqlDbContextOptionsExtensions.UseMySql(DbContextOptionsBuilder optionsBuilder, String connectionString, Action 1 mySqlOptionsAction) at MvcMovies.Startup. b__4_0(DbContextOptionsBuilder options) in /home/oladotun/Documents/NET Core/Projects/MvcMovies/Startup.cs:line 31 at Microsoft.Extensions.DependencyInjection.EntityFrameworkServiceCollectionExtensions.DbContextOptionsFactory[TContext](IServiceProvider applicationServiceProvider, Action 2 optionsAction)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.FindContextTypes()
at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.FindContextType(String name)
at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(String contextType)
at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.UpdateDatabase(String targetMigration, String contextType)
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
Method not found: ‘Void MySql.Data.MySqlClient.MySqlConnectionStringBuilder.set_BufferResultSets(Boolean)’.

This comment has been minimized.

Copy link Quote reply

b06sd commented Mar 1, 2018

This is what i got as a result after installing the package MySqlConnector. Kindly assist as am a newbie

  • © 2019 GitHub, Inc.
  • Terms
  • Privacy
  • Security
  • Status
  • Help

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Comments

Copy link Quote reply

archergod commented Oct 16, 2018

We are getting Method not found: ‘Void RestSharp.RestRequest..ctor(System.String, RestSharp.Method)’ exception in CallFire C#sharp API, which relate to RestSharp. This is when we upgrade to version 106.5.x (and now to 106.5.4).

Please help us understand the error, as the callfire is using your code for a while and it works well for year. so it seems something is broken in your code itself.

This comment has been minimized.

Copy link Quote reply

Psypher9 commented Oct 16, 2018

Could you please provide more of an example of where you are constructing the RestRequest ?

This comment has been minimized.

Copy link Quote reply

archergod commented Oct 16, 2018 •

That is the thing I am not using it directly. I am using CallFire.com’s C# library that is using it, and though that library is working with 106.4.2 fine but it fails with 106.5.3 and 106.5.4. I inform the callfire developer/repo as well to update his code to your library, but it seems like breaking change for minor version upgrade.

This comment has been minimized.

Copy link Quote reply

Psypher9 commented Oct 16, 2018

Could you provide a link to that repo please?

This comment has been minimized.

Copy link Quote reply

archergod commented Oct 17, 2018

This comment has been minimized.

Copy link Quote reply

vmalinovskiy commented Oct 17, 2018

Can reproduce the issue:
at CallfireApiClient.RestApiClient.CreateRestRequest(String path, Method method, IEnumerable 1 queryParams) at CallfireApiClient.RestApiClient.Post[T](String path, Object payload, IEnumerable 1 queryParams)
at CallfireApiClient.Api.CallsTexts.TextsApi.Send(List 1 recipients, Nullable 1 campaignId, String fields)
at CClientTest.UnitTest1.TestMethod1() in c:usersvladimir.malinovskiydocumentsvisual studio 2015ProjectsTestRestSharpFailNewVersionTestRestSharpFailNewVersionUnitTest1.cs:line 23

Test method CClientTest.UnitTest1.TestMethod1 threw exception:
System.MissingMethodException: Method not found: ‘Void RestSharp.RestRequest..ctor(System.String, RestSharp.Method)’.

Worked fine with 106.4.2, started failing after upgrade to 106.5.3.

This comment has been minimized.

Copy link Quote reply

Psypher9 commented Oct 17, 2018 •

Somethings I’m wondering, is CallFire using Activator.CreateInstance() anywhere to create a RestRequest? Because if that constructor really was missing the compiler would have been able to catch that during build and this look like something went wrong at runtime. Also I have seen that activating an instance of a class through reflection will sometimes cause this exception to be thrown.

So I can see where the CallFire Client is constructing an instance of RestRequst here, though that constructor does exist.

Оцените статью
SoftLast
Добавить комментарий