Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

event name should have at least 3 parts separated by slash. Parameter name eventName in Asp.Net Core Docker

I am getting an error as "event name should have at least 3 parts separated by slash. Parameter name eventName" when adding a docker support to my existing Asp.Net Core Web API project.

enter image description here

Any one faced this issue before? I have already tried reopening my solution and restarted my machine.

like image 379
Sibeesh Venu Avatar asked Jul 16 '17 14:07

Sibeesh Venu


3 Answers

There is another cause of this. To fix it go to File=>Account Settings in VS and sign in

like image 95
Peter Morris Avatar answered Nov 09 '22 14:11

Peter Morris


For the "event name should have at least 3 parts separated by slash..."

My work-around: You HAVE to do a clean, then a rebuild all then a publish. The build process in the publish intermittently causes a failure.

[EDIT] I have found just doing the clean and then publishing also works. fwiw.

My VS details

like image 42
Joe Johnston Avatar answered Nov 09 '22 13:11

Joe Johnston


I was able to fix this error myself, and thought of sharing it here, so that it can be useful to someone else.

The problem was because, one of my colleague deleted the docker-compose file and docker file from my solution to re-enable the Docker support for some reason, and when we were trying to add the Docker support, we got this error.

Even though we deleted the Docker support file from Visual Studio solution, the files were not being deleted from the solution directory. As a fix, you must delete those files manually by going to that directory, after that you will be able to add the Docker support again to your project.

like image 2
Sibeesh Venu Avatar answered Nov 09 '22 14:11

Sibeesh Venu