All Questions
Tagged with visual-studio-2013 asp.net-mvc-5
312
questions
0
votes
1
answer
136
views
MVC-5 Using Complex type functions for stored procedures; creating Views gives error:'Unable to retrieve metadata for MyProject.Models.Movies_Result
I have written some Stored Procedures (SPs) as an assignment for DBMS subject. Now I must use those SPs at client side. So I choose MVC.
Here I am using "Add Import Function" by right clicking on SP ...
0
votes
1
answer
24
views
getting error for a table which I did not create using Entity Framwork Code first approach. error is invalid object name "XXXX"
Initial migration code is below where I never create dbo.StudentEvent1 but I get error when I run my asp.net MVC application using this database.
CreateTable(
"dbo.StudentEvents",
...
1
vote
0
answers
109
views
Getting build errors in ASP.NET MVC project after migrating to Visual Studio 2017
I have a project which was developed in ASP.NET MVC with Visual studio 2013 and which is working fine. Recently we switched to Visual Studio 2017, here I'm getting errors while building the same ...
0
votes
2
answers
2k
views
Image not Showing in crystal report viewer
I am using Crystal Report version 13.0.16.1954, In the data which is displayed in Crystal Report Viewer (Main report preview in visual studio 2013) having the images. When i am trying run the reports ...
0
votes
1
answer
46
views
Scaffolded model/view: The ViewData item that has the key 'COLUMN' is of type 'System.String' but must be of type 'IEnumerable<SelectListItem>'
I know that there have been a number of questions asked similar to this, but they all seem to be dealing with a page that loads fine and has problems when trying to POST. I'm using scaffolded code in ...
0
votes
1
answer
591
views
Not able to Access Sitecore Mock Items (MS Fakes) through Sitecore Context in Unit Tests
I am trying to write Unit Tests for an existing Sitecore Project on MVC5 that uses GlassMapper ORM and TDS. I have mocked the Sitecore Content Tree, Sitecore Context, Item Properties, Field ...
0
votes
1
answer
55
views
MVC5 moved Controller, MVC still searches old path
I had a HomeController in /controllers/admin and all was working fine
I moved HomeController to /controllers it finds the controller but still on its old path.
I should be expecting /home/index but ...
10
votes
2
answers
963
views
MVC 5 - Precompiling views only works from the command prompt
I have a strange issue that hopefully, someone can help me with. I got a new laptop and I'm trying to publish the same ASP.NET MVC 5 project on the new machine with precompiled views. However, when I ...
0
votes
2
answers
2k
views
MVC5 can't find controller in same folder as default
I have a routing problem. I have 3 controllers in the same folder.
/pages/defaultcontroller
/pages/datacontroller
/pages/infocontroller
All controllers have a Index action, and there are index....
0
votes
1
answer
80
views
ASP.NET MVC 5 solution working in VS2013 but not in VS2015
I have an ASP.NET MVC 5 application developed in Visual Studio 2013. Everything works well when I run the solution in the IDE. Everything works also fine on test and production servers.
Now when I ...
0
votes
2
answers
865
views
How can I change the front-end framework used in MVC projects in Visual Studio?
The default is Bootstrap and while it's perfectly fine in its way, I prefer to work with MDL.
Its a bit of a pain to go and strip out Bootstrap from every project and implement MDL instead.
Is there ...
2
votes
1
answer
954
views
c# mvc 5 error while adding a controller
In my mvc project I want to add a controller with views, using Entity Framework. I'm doing it with this tutorial http://www.asp.net/mvc/overview/getting-started/introduction/accessing-your-models-data-...
0
votes
2
answers
9k
views
What are Startup.Auth.cs and Startup.cs used for in ASP .NET MVC 5?
Im making an application in MVC 5, and I've commented out all the code in Startup.Auth.cs and Startup.cs because I felt that I dont need them and Visual Studio seems to be ok with it. Im thinking ...
0
votes
1
answer
2k
views
Failed to load resource: the http://website.azurewebsites.net/signalr/hubs server responded with a status of 404 (Not Found)
My MVC-5 Azure-hosted Web App (VS 2013 / VB) using SignalR technology seems to not be creating the necessary SignalR/hubs JavaScript page.
Here's all the details:
First, since I believe that Azure ...
23
votes
26
answers
25k
views
There was an error running the selected code generator: 'Object reference not set to an instance of an object.' Error?
I have tried all the solution like repairing the VS 2013 but no use.
when you create a controller by right clicking on the Controller folder and you add the controller, then you right click in the ...