DataBase Error while running Asp.NET project in Visual Studio - c#

This is the error image showing when tried to register to the app:
This is the register button image:
I've tried to run my first Asp.net project in visual studio 2015 on my windows 8.1 PC. But when i was trying to register in the site clicking on the register button, it's showing SQL Server not found this type of error. i've uploaded the pic of the error. So, Do i need to install SQL server differently with VS 2015? or it's already installed by default with VS 2015? Need help from any expert please.

I've solved this problem. The SQL database server was not installed by default when i installed the visual studio 2015. I again modified the visual studio with the database server and now it's working. Thanks all.

Related

How to add local database file to Visual Studio Mac 2017

I'm creating a hotel management service in C# on Visual Studio (Mac) and I can't seem to find a good explanation on how to add a local database file to my project. I created my database table in open office (.odb file) but there doesn't seem to be a way for me to implement this in my project. The documentation has nothing on this either. Any one got a clue how to add databases to a Mac Visual studio project?
there are no localDB in visual studio for mac, you need to install the docker image for sql server.
here is the link
You can run SQL Server on a Mac now:
https://database.guide/how-to-install-sql-server-on-a-mac/
Using Docker it can be made as your localhost SQL Server. I've done this and it works. SQL Management studio for Mac is useful too.
Hope this helps someone.
Consider using sqlite instead
Microsoft RazorPagesMovie tutorial using sqlite instead of localdb in Visual Studio 2019 for Mac:
Follow Tutorial: Get started with Razor Pages in ASP.NET Core
And the second part: Add a model to a Razor Pages app in ASP.NET Core

Initializing the applicationhost.config file failed. Cannot find IIS Express

I recently installed the Visual Studio 2017 RC and created AngularJS SPA application. I had to uninstall the VS 2017 RC as it was hanging multiple times. Now, Whenever I try to open this SPA application using VS 2015 I get this error. Any help to resolve this would be helpful. Thank you.
Initializing the applicationhost.config file failed. Cannot find IIS
Express
I have got the same issue.
So I install the IIS Express from https://www.microsoft.com/en-us/download/details.aspx?id=48264
Then reload the solution. problem solved.
Follow this link :
https://drive.google.com/open?id=0B9Q8e7mRZ7_oaXRHX01yMUNPbUE
You need to modify the visual studio web services. The video shows how to modify VS. Modification depends on which type of template you are using that shows error.
If its WCF, then you make web service updates during modification of VS.
I couldn't fix this issue, But I managed to resolve by Uninstalling and reinstalling the Visual Studio 2015.
you can download IIS express from this link and install it
https://www.microsoft.com/en-us/download/details.aspx?id=48264
I had faced the same problem while trying to "Live Share" my web development project on the web browser.
I was using the latest version of Visual Studio still I got this issue.
Then I go to the Visual Studio Downloader to download the ASP.NET and web development Workloads which is available in the Workloads section.
Here I had attached the image in which you can see in the details it is clearly written that Live Share is available.
visual studio downloader where you can see the Live Share option

Report Viewer C# data from MySQL

I am using Report Viewer with C# Asp.Net and MySQL. But MySQL doesn't appear like option at Data Source from Report Data.
The MySQL is not a database option.
Can someone help me?
Download the complete version of MySQL installer that has about 378 Mb - Download here
Install it.
Go to Add --> Applications --> MySQL for Visual Studio and click in the arrow to add it at a list to be added. Do the same with MySQL Connectors --> Connector/Net.
Click in next.
Click em execute.
After that close and open your Visual Studio.
The problem was the web installer. For some reason the version of MySQL connector and MySQL for Visual Studio was not working with Visual Studio 2015. Hope help it. Problem solved.

deployment problems with visual studio 2012 and mvc4

I am using the default iis of win 8.1 with visual studio 2012 and mvc4. I already have achieved deploy it locally in my intranet with the option of file system, but not all my ActionResult methods are executed. te server tell me that it can not find the specified path. but when I run it from visual studio locally everything works perfectly. if someone could help me because I'm pretty new to all this.

Microsoft.VisualBasic.Powerpacks.ShapeContainer not found

I am developing a game in C# and it works properly here in my laptop. But when I tried to run it in other pc's its getting an error "Microsoft.VisualBasic.Powerpacks.ShapeContainer could not be found". I used Visual Studio 2008 and the pc's I have tried running also uses Visual Studio 2008.
Does anyone knows how to solve this error?
Will removing the lines, panels I have used in the forms helps?
You should download and install Microsoft Visual Basic Power Packs 3.0.

Categories