Aspnetcore.docs: Error when attempting to add controller

Created on 14 Oct 2019  ยท  8Comments  ยท  Source: dotnet/AspNetCore.Docs

Hi there
I am getting the following error when attempting to add the HelloWorldController
"There was an error running the selected code generator: 'Package restore failed. Rolling back package changes for 'MvcMovie'.'"


Document Details

โš  Do not edit this section. It is required for docs.microsoft.com โžŸ GitHub issue linking.

Source - Docs.ms

All 8 comments

The tutorial works. I'm not sure what step you missed. You might try asking on StackOverflow,.

I have the same problem. Started form scratch. Without a single code, I try to add Controler to Cotrollers folder and get package restore failed error. There is nothing I could have done wrong.

I had only added SQLite to VS2019 prior, could this be the reason?

My problem was incorrect project type, had chosen .net core instead of
ASP/web project type
Worked fine after I chose the correct project type

On Thu, Oct 24, 2019 at 5:43 PM Burak Aktay notifications@github.com
wrote:

I have the same problem. Started form scratch. Without a single code, I
try to add Controler to Cotrollers folder and get package restore failed
error. There is nothing I could have done wrong.

I had only added SQLite to VS2019 prior, could this be the reason?

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/aspnet/AspNetCore.Docs/issues/15077?email_source=notifications&email_token=ADANU3WPGF66M3OCAMC3VPDQQG7CHA5CNFSM4JANVJYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECFPTHY#issuecomment-545978783,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADANU3XHVUEO7KOHPJ52N23QQG7CHANCNFSM4JANVJYA
.

--
Savvas Demetriou
082 783 2606

This is a .net core tutorial:
https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/start-mvc?view=aspnetcore-3.0&tabs=visual-studio

I chose ASP.NET Core Web Application (c# Windows Linux macOS Web) as
directed int the beginning of tutorial.

On Thu, Oct 24, 2019 at 6:46 PM savvasd notifications@github.com wrote:

My problem was incorrect project type, had chosen .net core instead of
ASP/web project type
Worked fine after I chose the correct project type

On Thu, Oct 24, 2019 at 5:43 PM Burak Aktay notifications@github.com
wrote:

I have the same problem. Started form scratch. Without a single code, I
try to add Controler to Cotrollers folder and get package restore failed
error. There is nothing I could have done wrong.

I had only added SQLite to VS2019 prior, could this be the reason?

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<
https://github.com/aspnet/AspNetCore.Docs/issues/15077?email_source=notifications&email_token=ADANU3WPGF66M3OCAMC3VPDQQG7CHA5CNFSM4JANVJYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECFPTHY#issuecomment-545978783
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ADANU3XHVUEO7KOHPJ52N23QQG7CHANCNFSM4JANVJYA

.

--
Savvas Demetriou
082 783 2606

โ€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/aspnet/AspNetCore.Docs/issues/15077?email_source=notifications&email_token=ABBYZ7BS2SOZOJM3F7NEEDTQQG7LXA5CNFSM4JANVJYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECFP3ZY#issuecomment-545979879,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABBYZ7G55A45JEVXKSIW2WTQQG7LXANCNFSM4JANVJYA
.

Try normal asp web project

On Thu, 24 Oct 2019, 8:08 pm Burak Aktay, notifications@github.com wrote:

This is a .net core tutorial:

https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/start-mvc?view=aspnetcore-3.0&tabs=visual-studio

I chose ASP.NET Core Web Application (c# Windows Linux macOS Web) as
directed int the beginning of tutorial.

On Thu, Oct 24, 2019 at 6:46 PM savvasd notifications@github.com wrote:

My problem was incorrect project type, had chosen .net core instead of
ASP/web project type
Worked fine after I chose the correct project type

On Thu, Oct 24, 2019 at 5:43 PM Burak Aktay notifications@github.com
wrote:

I have the same problem. Started form scratch. Without a single code, I
try to add Controler to Cotrollers folder and get package restore
failed
error. There is nothing I could have done wrong.

I had only added SQLite to VS2019 prior, could this be the reason?

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<

https://github.com/aspnet/AspNetCore.Docs/issues/15077?email_source=notifications&email_token=ADANU3WPGF66M3OCAMC3VPDQQG7CHA5CNFSM4JANVJYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECFPTHY#issuecomment-545978783

,
or unsubscribe
<

https://github.com/notifications/unsubscribe-auth/ADANU3XHVUEO7KOHPJ52N23QQG7CHANCNFSM4JANVJYA
>

.

--
Savvas Demetriou
082 783 2606

โ€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<
https://github.com/aspnet/AspNetCore.Docs/issues/15077?email_source=notifications&email_token=ABBYZ7BS2SOZOJM3F7NEEDTQQG7LXA5CNFSM4JANVJYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECFP3ZY#issuecomment-545979879
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ABBYZ7G55A45JEVXKSIW2WTQQG7LXANCNFSM4JANVJYA

.

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/aspnet/AspNetCore.Docs/issues/15077?email_source=notifications&email_token=ADANU3RGMNGGYJRLF7SF6YLQQHQAVA5CNFSM4JANVJYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECF5SJI#issuecomment-546036005,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADANU3WKMQEV4APQDJZDAN3QQHQAVANCNFSM4JANVJYA
.

What is normal? Do you mean .net framework?

I want to learn .net core 3.

I typed the controller manually and it works. There is something wrong with
scafolding (VS2019)

On Thu, 24 Oct 2019, 23:07 savvasd, notifications@github.com wrote:

Try normal asp web project

On Thu, 24 Oct 2019, 8:08 pm Burak Aktay, notifications@github.com
wrote:

This is a .net core tutorial:

https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/start-mvc?view=aspnetcore-3.0&tabs=visual-studio

I chose ASP.NET Core Web Application (c# Windows Linux macOS Web) as
directed int the beginning of tutorial.

On Thu, Oct 24, 2019 at 6:46 PM savvasd notifications@github.com
wrote:

My problem was incorrect project type, had chosen .net core instead of
ASP/web project type
Worked fine after I chose the correct project type

On Thu, Oct 24, 2019 at 5:43 PM Burak Aktay notifications@github.com
wrote:

I have the same problem. Started form scratch. Without a single
code, I
try to add Controler to Cotrollers folder and get package restore
failed
error. There is nothing I could have done wrong.

I had only added SQLite to VS2019 prior, could this be the reason?

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<

https://github.com/aspnet/AspNetCore.Docs/issues/15077?email_source=notifications&email_token=ADANU3WPGF66M3OCAMC3VPDQQG7CHA5CNFSM4JANVJYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECFPTHY#issuecomment-545978783

,
or unsubscribe
<

https://github.com/notifications/unsubscribe-auth/ADANU3XHVUEO7KOHPJ52N23QQG7CHANCNFSM4JANVJYA

>

.

--
Savvas Demetriou
082 783 2606

โ€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<

https://github.com/aspnet/AspNetCore.Docs/issues/15077?email_source=notifications&email_token=ABBYZ7BS2SOZOJM3F7NEEDTQQG7LXA5CNFSM4JANVJYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECFP3ZY#issuecomment-545979879

,
or unsubscribe
<

https://github.com/notifications/unsubscribe-auth/ABBYZ7G55A45JEVXKSIW2WTQQG7LXANCNFSM4JANVJYA
>

.

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<
https://github.com/aspnet/AspNetCore.Docs/issues/15077?email_source=notifications&email_token=ADANU3RGMNGGYJRLF7SF6YLQQHQAVA5CNFSM4JANVJYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECF5SJI#issuecomment-546036005
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ADANU3WKMQEV4APQDJZDAN3QQHQAVANCNFSM4JANVJYA

.

โ€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/aspnet/AspNetCore.Docs/issues/15077?email_source=notifications&email_token=ABBYZ7G7VJP6PCXQSLATC3DQQH57RA5CNFSM4JANVJYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECGISUI#issuecomment-546081105,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABBYZ7EB3JKCQGQAENVPAOLQQH57RANCNFSM4JANVJYA
.

To report Visual Studio problems
Help > Send Feedback > Report a Problem

image

Yes use the same project type I must have chosen the wrong one first time
around

On Thu, Oct 24, 2019 at 10:39 PM Burak Aktay notifications@github.com
wrote:

What is normal? Do you mean .net framework?

I want to learn .net core 3.

I typed the controller manually and it works. There is something wrong with
scafolding (VS2019)

On Thu, 24 Oct 2019, 23:07 savvasd, notifications@github.com wrote:

Try normal asp web project

On Thu, 24 Oct 2019, 8:08 pm Burak Aktay, notifications@github.com
wrote:

This is a .net core tutorial:

https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/start-mvc?view=aspnetcore-3.0&tabs=visual-studio
>

I chose ASP.NET Core Web Application (c# Windows Linux macOS Web) as
directed int the beginning of tutorial.

On Thu, Oct 24, 2019 at 6:46 PM savvasd notifications@github.com
wrote:

My problem was incorrect project type, had chosen .net core instead
of
ASP/web project type
Worked fine after I chose the correct project type

On Thu, Oct 24, 2019 at 5:43 PM Burak Aktay <
[email protected]>
wrote:

I have the same problem. Started form scratch. Without a single
code, I
try to add Controler to Cotrollers folder and get package restore
failed
error. There is nothing I could have done wrong.

I had only added SQLite to VS2019 prior, could this be the reason?

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<

https://github.com/aspnet/AspNetCore.Docs/issues/15077?email_source=notifications&email_token=ADANU3WPGF66M3OCAMC3VPDQQG7CHA5CNFSM4JANVJYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECFPTHY#issuecomment-545978783

,
or unsubscribe
<

https://github.com/notifications/unsubscribe-auth/ADANU3XHVUEO7KOHPJ52N23QQG7CHANCNFSM4JANVJYA

>

.

--
Savvas Demetriou
082 783 2606

โ€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<

https://github.com/aspnet/AspNetCore.Docs/issues/15077?email_source=notifications&email_token=ABBYZ7BS2SOZOJM3F7NEEDTQQG7LXA5CNFSM4JANVJYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECFP3ZY#issuecomment-545979879

,
or unsubscribe
<

https://github.com/notifications/unsubscribe-auth/ABBYZ7G55A45JEVXKSIW2WTQQG7LXANCNFSM4JANVJYA

>

.

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<

https://github.com/aspnet/AspNetCore.Docs/issues/15077?email_source=notifications&email_token=ADANU3RGMNGGYJRLF7SF6YLQQHQAVA5CNFSM4JANVJYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECF5SJI#issuecomment-546036005

,
or unsubscribe
<

https://github.com/notifications/unsubscribe-auth/ADANU3WKMQEV4APQDJZDAN3QQHQAVANCNFSM4JANVJYA
>

.

โ€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<
https://github.com/aspnet/AspNetCore.Docs/issues/15077?email_source=notifications&email_token=ABBYZ7G7VJP6PCXQSLATC3DQQH57RA5CNFSM4JANVJYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECGISUI#issuecomment-546081105
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ABBYZ7EB3JKCQGQAENVPAOLQQH57RANCNFSM4JANVJYA

.

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/aspnet/AspNetCore.Docs/issues/15077?email_source=notifications&email_token=ADANU3RVIJOMYRZQJW537QLQQIBYJA5CNFSM4JANVJYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECGLPXQ#issuecomment-546093022,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADANU3RDILYFRSIMJXGXX63QQIBYJANCNFSM4JANVJYA
.

--
Savvas Demetriou
082 783 2606

Was this page helpful?
0 / 5 - 0 ratings

Related issues

serpent5 picture serpent5  ยท  3Comments

StevenTCramer picture StevenTCramer  ยท  3Comments

YeyoCoder picture YeyoCoder  ยท  3Comments

royshouvik picture royshouvik  ยท  3Comments

wgutierrezr picture wgutierrezr  ยท  3Comments