Last post Apr 02, 2020 02:07 AM by yij sun
Apr 01, 2020 01:44 PM|Baze72|LINK
Visual studio community 2019. When I try to create a view (asp.net mvc) I get an error: There was an error running the selected code generator: 'The parameter is incorrect.(Exception from HRESULT: 0x80070057 (E_INVALIDARG)). I have deleted tmp files, checked
for updates with no luck. I do have some backups of my projects and when I load one from a few months ago I do not see this problem. Any ideas on how I can fix on my current project?
Apr 02, 2020 02:07 AM|yij sun|LINK
Accroding to your description, your error means you have one or more than one invalid parameter.There are some methods:
1.You could make sure that you have cleared out the temporary framework files for your project.
For windows 7,the path is:
C:\Users\[username]\AppData\Local\Temp\Temporary ASP.NET Files\
For 64 bit systems with 'Framework' in the path the full path is:
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\
2.You could fix this manually deleting the ".vs" folder into the solution directory.
3.You could rebuild the project and close visual studio 2019,then open visual studio 2019 again.