Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asp Net Core 3.0 AggregateException The partial view 'FormFactory/Form.Property' was not found. #89

Open
AspDotNetCP opened this issue Nov 22, 2019 · 9 comments

Comments

@AspDotNetCP
Copy link

Asp Net Core 3.0 AggregateException

@FF.PropertiesFor(Model).Render(Html)

14:23:14 [Error] () An unhandled exception has occurred while executing the request.
System.AggregateException: One or more errors occurred. (The partial view 'FormFactory/Form.Property' was not found. The following locations were searched:
/Views/Assignment/FormFactory/Form.Property.cshtml
/Views/Shared/FormFactory/Form.Property.cshtml
/Pages/Shared/FormFactory/Form.Property.cshtml
/Views/Shared/FormFactory/Form.Property.cshtml)
---> System.InvalidOperationException: The partial view 'FormFactory/Form.Property' was not found. The following locations were searched:
/Views/Assignment/FormFactory/Form.Property.cshtml
/Views/Shared/FormFactory/Form.Property.cshtml
/Pages/Shared/FormFactory/Form.Property.cshtml
/Views/Shared/FormFactory/Form.Property.cshtml
at Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.RenderPartialCoreAsync(String partialViewName, Object model, ViewDataDictionary viewData, TextWriter writer)
at Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.PartialAsync(String partialViewName, Object model, ViewDataDictionary viewData)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at FormFactory.RenderExtension.Render(IEnumerable1 properties, IHtmlHelper html)
at AspNetCore.Views_Assignment_AddAssignments.<>c__DisplayClass26_0.<b__4>d.MoveNext() in C:\AddAssignments.cshtml:line 72
--- End of stack trace from previous location where exception was thrown ---

@talk2urfi
Copy link

Did you fix the issue, I am facing same problem.

@AspDotNetCP
Copy link
Author

No , I end up with change my code back to form taghelper for some reason ^.^

@mcintyre321
Copy link
Owner

mcintyre321 commented Dec 31, 2019 via email

@learner291
Copy link

I am having the same issue in asp.net mvc core 3.

So, I then tried to use FormFactory.Templates but now I get an error on build saying that 'DateAttribute' is a type which is not valid in the given context.

The error is appearing in the following file:

.nuget\packages\formfactory.templates\5.0.67\contentFiles\any\netstandard1.6\Cell.System.DateTime

FormFactoryDateAttribute Error

@learner291
Copy link

It sounds like the embedded file system provider in a asp.net 3 doesn't work with FormFactory, which is compiled against 2.0 At some point, when I get the time, I'll upgrade it

On Mon, 30 Dec 2019, 16:59 AspDotNetCP, @.***> wrote: No , I end up with change my code back to form taghelper for some reason ^.^ — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#89?email_source=notifications&email_token=AACDJ6UMZQIVHG6CUZHTELDQ3ISHNA5CNFSM4JQMMUE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH2XHSA#issuecomment-569734088>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACDJ6S7IB2VMHS3EPAL3O3Q3ISHNANCNFSM4JQMMUEQ .

Hi, Do you have a time frame in mind regarding updating this to core v3?
Thanks

@bestlane
Copy link

It sounds like the embedded file system provider in a asp.net 3 doesn't work with FormFactory, which is compiled against 2.0 At some point, when I get the time, I'll upgrade it

On Mon, 30 Dec 2019, 16:59 AspDotNetCP, @.***> wrote: No , I end up with change my code back to form taghelper for some reason ^.^ — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#89?email_source=notifications&email_token=AACDJ6UMZQIVHG6CUZHTELDQ3ISHNA5CNFSM4JQMMUE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH2XHSA#issuecomment-569734088>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACDJ6S7IB2VMHS3EPAL3O3Q3ISHNANCNFSM4JQMMUEQ .

Hi, Do you have a time frame in mind regarding updating this to core v3?
Thanks

+1... I'm having troubles upgrading to v3.1 as well.

@mcintyre321
Copy link
Owner

I'm afraid I have very little time at the moment. If someone could submit a Pull Request with necessary changes, I'd be happy to accept it *

  • both Example projects would have to be tested

@Phexlyn42
Copy link

Phexlyn42 commented May 22, 2020

Hi, I managed to get it working on NET CORE 3.1 by doing the following:

  • install nuget package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
  • add the following to ConfigureServices method inStartup.cs

services.AddRazorPages().AddRazorRuntimeCompilation();
var embeddedFileProvider = new EmbeddedFileProvider(typeof(FormFactory.FF).GetTypeInfo().Assembly,nameof(FormFactory));
services.Configure<MvcRazorRuntimeCompilationOptions>(options =>
{
options.FileProviders.Add(embeddedFileProvider);
});

@nanchox
Copy link

nanchox commented Jun 17, 2020

Hi, I managed to get it working on NET CORE 3.1 by doing the following:

* install nuget package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation

* add the following to _ConfigureServices_ method inStartup.cs

services.AddRazorPages().AddRazorRuntimeCompilation();
var embeddedFileProvider = new EmbeddedFileProvider(typeof(FormFactory.FF).GetTypeInfo().Assembly,nameof(FormFactory));
services.Configure(options =>
{
options.FileProviders.Add(embeddedFileProvider);
});

Thanks Phexlyn42, this works fine for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants