I'm new in the ASP.NET MVC development.
After I add the dataset under the model folder.
I create an empty Controller and want to add view inside Index() method.
I choose Template as Create, and error message come up
"There was an error running the selected code generator:
'an error occurred while retrieving package metadata for
'EntityFramework.6.1.3' from source 'nuget.telerik.com''"
Could you tell me how to add a view, if need more details, plz let me know!!
5 Answers, 1 is accepted
Hi Mike,
The most common reason for the respective error is networking issues or using wrong credentials.
To check if this is a networking issue, open the following URL in your browser and enter your telerik.com credentials:
You should see an XML result with the list of packages you can access and you should see the Telerik.UI.for.AspNet.Mvc5 package.
If you can access the feed in the browser, but you do not see the
packages in Visual Studio, the most likely problem is wrong credentials
that are not associated with a license. Are you able to browse the Telerik private NuGet feed through Visual Studio - does searching for Telerik.UI.for.AspNet.Mvc5 package return the respective package, when the source is set to the Telerik NuGet feed?
Our NuGet install article provides reference how to setup the feed. If you can access the feed in the browser, but you do not see the
packages in Visual Studio, the most likely problem is wrong credentials
that are not associated with a license.
nuget.config
file in the project that is bringing in invalid credentials - project-level config files override the global settings.
Here is a sample process of removing stored credentials from Windows so you can re-add the correct ones:
- Remove saved credentials in Windows Credential Manager. They will appear as nuget.telerik.com and/or VSCredentials_nuget.telerik.com entries.
- Remove the Telerik Nuget package source from Visual Studio.
- If you have added the Telerik package source by nuget CLI, then try to remove it from the CLI:
- Check if there are any credentials stored in
%AppData%\NuGet\Nuget.Config
and if so you have to remove them. - Try to reset Visual Studio user data. You can read how to do that here.
- Restart Visual Studio.
- Enter the Telerik nuget package source again through Visual Studio or CLI.
About adding a view I would suggest you to review the following Microsoft tutorial. I hope this is helpful.
Regards,
Dimitar
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hi Dimitar,
Thanks for the reply,
I believe I remove some Telerik or Nuget credentials from Credentials manager. So when adding view, I cannot connect to Data context class.
Do you know which windows credential should be add here?
Thank you,
Mike
The error message said
"The type or namespace name 'Kendo' could not be found"
Also DataSourceRequest and ToDataSourceResult cannot be found.
Hello Mike,
When configuring the Telerik Nuget your Telerik credentials are needed. From the provided errors it seems that the Kendo.Mvc.dll is not referenced in the project or it could not be found. Could you please double-check if the Kendo.Mvc.dll is referenced correctly? Could you please try to add the reference to Kendo.Mvc.dll manually and test the result? You could find the assembly in 'C:\Program Files (x86)\Progress\Telerik UI for ASP.NET MVC<version>\wrappers\aspnetmvc\Binaries\MVC5'
I would suggest you also try to add the Telerik Nuget Feed through the Progress Control Panel. Below you could find the article where the needed steps are described:
I hope the provided information will be helpful.
Regards,
Neli
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.