Mobius5 - Error in "Contact Form"
skarpik opened this issue · comments
A new DNN/2SXC installation with the following parameters:
Mobius V5.03.02
DNN v.9.10.02
2SXC v13.01.00
Theme: 2Shine BS5 v5..0.1
The error appears to be in MailChimp code but MailChimp was not selected.
01/25/2022 14:21:31
General Exception
2SXC13
AbsoluteURL /api/2sxc/app/auto/live/api/Form/ProcessForm DefaultDataProvid
AbsoluteURL:/api/2sxc/app/auto/live/api/Form/ProcessForm
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:8fbfdbac-68fb-4b92-a9dc-d4211e7d2809
AssemblyVersion:
PortalId:-1
UserId:-1
TabId:-1
RawUrl:
Referrer:
UserAgent:
ExceptionHash:K1quGjLdtW1MYYY7/4RocaEjgvo=
Message:d:\Websites\2sxc13\Website\Portals\0\2sxc\MobiusForms5\live\api\Parts\MailChimp.cs(89): error CS1070: The type name 'HttpClient' could not be found. This type has been forwarded to assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Consider adding a reference to that assembly.
StackTrace:
at System.Web.Compilation.AssemblyBuilder.Compile()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetCompiledAssembly(String virtualPath)
at ToSic.Sxc.Code.CodeCompiler.InstantiateClass(String virtualPath, String className, String relativePath, Boolean throwOnError) in C:\Projects\2sxc\2sxc\Src\Sxc\ToSic.Sxc\Code\CodeCompiler.cs:line 61
at ToSic.Sxc.Code.DynamicCodeRoot.CreateInstance(String virtualPath, String noParamOrder, String name, String relativePath, Boolean throwOnError) in C:\Projects\2sxc\2sxc\Src\Sxc\ToSic.Sxc\Code\DynamicCodeRoot_Compiler.cs:line 19
at FormController.ProcessForm(Dictionary2 contactFormRequest, String workflowId) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_1.<GetExecutor>b__0(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary
2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Tracing.ITraceWriterExtensions.d__171.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Tracing.ITraceWriterExtensions.<TraceBeginEndAsyncCore>d__17
1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Web.Http.Filters.ActionFilterAttribute.d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ExceptionFilterResult.d__6.MoveNext()
InnerMessage:
InnerStackTrace:
Source:System.Web
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:
Server Name: OMEN2
@maaaximum could you verify/fix?
I don't know whether this information will be helpful but I get the same sort of error message for:
- Contact Form with Address
- Generic Smart Contact Form
I have not yet tested the "Contact Form with File Upload" or the "Support Request" or the Mailchimp demo. I can if that would be helpful.
Hey @skarpik.
There might be System.Net.Http missing in your web.config.
For now please try to:
- Navigate to the web folder inside your project.
- Open the web.config file
- In the XML hierarchy navigate down
<configuration>
-><system.web>
-><compilation>
-><assemblies>
- Now insert the following tag as child of
<assemblies>
:
<add assembly="System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Hooray! It worked. Is this something that the DNN installation should have included in the web.config?
I will test the other demo forms to make sure that everything is working properly (I expect that will be the case).
Thank you.