aspire icon indicating copy to clipboard operation
aspire copied to clipboard

aspire to an existing project error startup

Open viniciusverasdossantos opened this issue 1 year ago • 4 comments

I added aspire to an existing project... when I try to start it, the print error occurs. If I remove the Web_api project and leave only RabbitMq, it works normally. Any tips?

image

viniciusverasdossantos avatar May 27 '24 01:05 viniciusverasdossantos

Looks like your launch profile has invalid JSON.

davidfowl avatar May 27 '24 02:05 davidfowl

that was it! I don't understand why when running the webapi directly there was no error! thnakyou!!

viniciusverasdossantos avatar May 27 '24 02:05 viniciusverasdossantos

@mitchdenny what do you think?

davidfowl avatar May 27 '24 02:05 davidfowl

Totally looks like an invalid launch profile to me. Can you repro it in a project that you can post to GitHub so we can take look.

mitchdenny avatar May 27 '24 02:05 mitchdenny

We could throw a better exception with the project name and launchSettings path.

davidfowl avatar Jun 06 '24 14:06 davidfowl