• Register
Welcome to Kodlogs, programming questions and answer website.

Recent questions tagged net-mvc

0 votes
1 answer 4 views
0 votes
1 answer 8 views
Problem: I am naive to Asp.Net.I am having a weird looking problem where I am trying to open up my ASP.NET MVC application but I am receiving the below ASP.NET error page which says: Server Error in '/' Application. The resource cannot be found. Description: ... unknown reason to me it seems like it is actually searching for the .aspx file. Please guide me if you think I am missing something.
asked Aug 19 Raphael Pacheco 4.9k points
0 votes
1 answer 22 views
Problem: I am completely new to ASP .net core. I guess it is giving me the dependency injection error as shown below: InvalidOperationException: Unable to resolve service for type 'Spinit ... ) Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.DatabaseErrorPageMiddleware.Invoke(HttpContext httpContext) Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
asked Aug 17 Raphael Pacheco 4.9k points
0 votes
0 answers 10 views
Problem: I have basic knowledge on ASP.Net and Database Connection. Currently I am receiving the below error if I try to run my code: System.Configuration.ConfigurationErrorsException: 'The configuration section cannot contain a CDATA or text element'. My application ... SSPI;Initial Catalog=TestData" providerName="System.Data.SqlClient"/> Kindly help me in fixing above ASP.Net related error ASAP.
asked Jun 22 Raphael Pacheco 4.9k points
1 vote
1 answer 52 views
Problem : Recently I was told to prepare the C# as I am in pool of new projects. So I have started learning C#. But because of some unknown reason to me now I am facing below error. “Make sure that the controller has a parameterless public constructor”. As I am very new to C# so I am unable to understand the above error. I need help from someone who can fix the above error.
asked Mar 31 morrisBson 3.2k points
0 votes
1 answer 109 views
Problem : When I try to upload my application on to the GoDaddy shared Plesk hosting account, I get the below error. “This program is blocked by group policy. For more information, contact your system administrator.” Does anyone know a purpose of this block or why the Microsoft puts it there? Please Note : The app uses C# and not VB.
asked Feb 4 jwilliam 3.9k points
0 votes
1 answer 61 views
Problem : I have recently installed a website on my local machine using IIS 7 successfully. But when I tried to deploy it on the live server, I got a following error: "The page cannot be displayed because an internal server error has occurred" Nothing else. Using a same IIS 7 on live and also set to have the Detailed errors in Error Pages module, but still getting a same. What can be the reason?
asked Jan 28 jwilliam 3.9k points
0 votes
1 answer 40 views
Problem : I have got the legacy code issue that requires that I support the random urls as if they were requests for a home page. Some of the URLs have the characters in them that generate the below error "A potentially dangerous Request.Path value was detected from ... />     </system.web> <configuration> I have also Added a ValidateInput attribute to my action that should be catching the urls.
asked Jan 25 jwilliam 3.9k points
1 vote
1 answer 32 views
Problem : While binding the dropdown in MVC, I often face following error: There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key country. Please find below my View for your reference : @Html.DropDownList("country", (IEnumerable<SelectListItem>)ViewBag ... .countryid.ToString() }); } ViewBag.mycountrydrop = myitem8; return View(); I do not know how to resolve above error.
asked Dec 28, 2019 alecxe 7.6k points
0 votes
2 answers 101 views
Problem : I am new to ASP MVC and I am facing one error. I am trying to access the Model's Data from the Controller section and I am getting following error when I try to create a Movie as a part of the exercise, whenever I try to click on the link "Create New" I ... am using the Visual Studio 2012 RC I am not sure if this is the root cause of my issue.Please let me know the solution for my issue.
asked Dec 3, 2019 alecxe 7.6k points
To see more, click for the full list of questions or popular tags.