Tim, I really appreciate all your work on these videos. They are very timely and right on target. For your future videos: Security best practices for an external web application and/or Setting Active Directory Users/groups/permissions for internal web applications.
Great video thank you very much. If you have database, like your other video: ASP.NET MVC Data Access, how will you deploy it to ISS/Azure (The website and database)? Web hosting companies usually give you a package let say with 1 sql server. How will you publish this website and your database to the remote SQL server and change the connection string? Thanks
Thanks Tim, this really helped me out. I am new to your channel. Subscribed just now. I hope the best out of it. Thanks again for putting this out for beginners like us.
Around 10:30 you say that we can put a hole in our firewall and have our machine serve the website on our network. Can you explain how to do that? Or perhaps point me in the right direction of another tutorial that can teach me this? I tried hosting my backend webapp with REST apis, that worked on localhost are giving me a 500 error, so I'm trying to do the IIS way
Very nice video Tim. Enjoyed it. Working on project now where I have to deploy and very helpful. You should've added the staging / production switch in App Services. You were so close when you talked about production considerations.
The cheapest sites don't have that I don't believe. I try to cover only what is free. I will be covering a much more in depth process in an upcoming course.
Great video Tim! I much prefer creating local websites with different ports (8080, 8081 etc.) rather than use the "create virtual application folder" option. When I first messed around with classic asp 18 years go, I had issue with absolute paths etc when I deployed to a live website. I've always bought PRO version of windows rather than HOME version so I can have multiple websites locally.
Thanks for this, so your way in this video is deploying to azure using VSStudio to publish and copies all the files in one go, but I've seen steps where they go and create an app service first, then copy the files manually, is this a step you would recommend, or just use publish directly?
I would recommend against manually copying files if you can avoid it. Use an automated system of some type so that you get predictable results every time.
I don't, but thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/
I have a course on it: www.iamtimcorey.com/p/application-lifecycle-design/ I've covered it a couple times in some detail (look at my Azure DevOps video) but that course covers everything.
Following the IIS method I get this error: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.
This is a somewhat generic error but this might help: stackoverflow.com/questions/9216158/the-requested-page-cannot-be-accessed-because-the-related-configuration-data-for
Hi got same error and then 400 error. Follow him exactly. My issue was saving the published files to Documents folder and didn't work. Try to save published files to folder under C drive and map IIS to that folder.
You could be using a different version of Visual Studio (you almost certainly are). Also, I believe in the current version of Visual Studio, it is a two-step process. The first step is to choose IIS and then you get those choices. In the previous step, you could choose file or other options.
My app I'm trying to publish won't even load when you deploy it on IIS, because when it tries to connect to SQL SERVER it gives an error stating that ExecuteReader requires an open and available Connection no matter what I do. Meanwhile on Visual Studio it works just fine. I have no clue why this would be the case
Hello Tim, all your videos are really helpful. Thank you for that. I just have a question, I noticed that in here, you were able to deploy that in the same computer IIS with Windows 10. How about deploying it to a windows server 2012 with our existing website. Is that possible? How can I deploy this web api to our website? Thank you in Advance.
does not work for me, I keep on getting this error. is template HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.
@@IAmTimCorey getting the same error as @Hendry -> Trying to investigate how to fix it! I notice that the "Release " directory is not within the "bin" directory! I think the root of the issue the source code does not have that. Thanks for the session it was amazing, though
Tim-- If one is trying to deploy a portfolio site that includes a section that links to functioning demo projects, can that all be done within the same domain? In the specific case I'm thinking of, there is a good chance the demo projects would be different language stacks also. Seems like this would be a fairly common scenario, but I'm not finding too much about it in my usual sources. Thanks as always.
Hi TIm, I followed the steps up to 10:12. This was were I removed all web pages files in the folder, however on reloading "localhost:8080" , I got no error message, i got a blank screen. I checked the windows features to see if error reporting was installed and it is. Please could you assist me ?
It gives you a sub-domain. Something like "yourwebapp.azurewebsites.net". You can apply your own domain name to it if you want (you have to buy the domain name and you will need to pay a bit more for Azure hosting).
Not really the proper place to ask, but I see replies so - how would you add a new .asp page to a site? My site apparently also requires a controller for each page otherwise the asp page resource is not found.
It sounds like you are trying to add pages to an MVC site. That doesn't really work in the .NET Framework. In .NET Core, you can add Razor Pages to MVC sites without an issue, though.
Tim, for me works to publish when the HTML pages are statics. I connected with SQL Server Management Studio 18.0 and I don´t get to show a simple select command in the page. What do I do for enable a database, please? Thank you in advance.
You will just need to make sure your connection string points to a database that allows access from your web server. That's it. It should all work from there.
@@IAmTimCorey Hi, Tim. I discovered the solution. I don´t know the explanation, but without setup were possible to access static pages. When I set IIS to bind a IP of site, all machines in same network accessed the server. Thank you for answer. I like your videos. :)
I used Interserver for my Getting Started with ASP.NET Core course (affiliate link: www.interserver.net/r/589892 ). For $5/month, you can get ASP.NET Core hosting for multiple main sites and unlimited sub-domains, plus unlimited SQL databases. I've been impressed by their uptime and ability for the cost.
have been doing this thing for 20 years and each time Microsoft releases a new version, configuring IIS all of a sudden does not work the way I used to do It and end up in pain. Why oh why can't Microsoft make this easy for users of their product is a big question. Oh yeah they want to make people move to the cloud with managed hosting because there is where the money is.
Ok, what do we do when we add a new project to our solution, how do we deploy that to a dev server, particularly using Web Deploy/IIS? Doesn't seem to be a Publish option when right clicking, like there is with individual files.
Hi Tim, I'm using Asphostportal here since I can't afford Azure. I have successfully deployed my .net core on my hosting but it throw error 502.5 - Process Failure. How to fix this issue? Thank you
Not sure but here is an article on how to debug it (in Azure but the principles should apply): stackify.com/net-core-azure-app-service-wont-start/ Also, did you know you can get 10 Azure Web Apps free for life?
I believe this video covers it somewhat: th-cam.com/video/68towqYcQlY/w-d-xo.html As for the rest, the Application Lifecycle Design course covers how to do this and more: www.iamtimcorey.com/p/application-lifecycle-design
Dumb question I'm sure, but, how do I open IIS manager? I added the Windows components shown, but am not sure how to find the manager, and it does not appear in search.
Deploying to a client's IIS depends on their setup. You might be able to do web deploy if they open the firewall for it (doubtful) or you will need to deploy to a folder and then transfer those files over to the correct folder on their web server. As for SQL, that can be difficult (SQL scripts copied to the correct machine and run) or it can be easy using SSDT (see this video for help: th-cam.com/video/ijDcHGxyqE4/w-d-xo.html )
I don't think there is enough information here for me to diagnose. It may be a permissions issue, it may be that you have the URL path wrong, or it may be that your host doesn't support 3.1 yet.
Hi Tim.You must be using some pro version of MVS I haven't got the options you showed in this video, which version of MVS you are using.Do you run extensions?
I'm using Visual Studio 2017 in this video but it still works the same in Visual Studio 2019 Community Edition (and the other editions too, but that is the free one).
I thought I followed this video step by step. When I wanted to view my site I got a permissions error and couldn't view the site. I found out the reason was that I copied the published website under a folder in my Documents folder. I then reviewed video and Tim copies the published files to a Temp folder under C. It now works. Tim or anybody who reads this, what is the difference with the Temp folder compared to others?
When you run IIS, it typically runs under a restricted user account for security reasons. Your Documents folder is restricted to your login alone. The IIS login does not have access to your Documents folder. By moving it to the Temp folder, anyone can access it because that is the default permissions for a folder (it doesn't inherit any restrictions from the above folder).
oh man i wish this was up last week. i spent 2 days trying to figure this out. turns out the MSDeployServiceURL that was generated automatically was wrong. thanks for the content tim
doing same process for Asp.net Core 3 blazer server-side , any difference ? for IIS i mean ? i have asp.net core 3 installed in my machine yet i can't find it when choosing .net framework in this section 6:48 can you help me please ? thanks
I believe the process is a bit different because .NET Core isn't treated the same way as the .NET Framework but I'm not sure. You can deploy .NET Core with your site so you don't need any configuration. I haven't deployed to IIS with .NET Core thought. I typically use Docker or a hosted web server like Azure.
السلام عليك اخي معتز انا شغال معاي core 3.1 سويت ستب اب واستغل معاي بس المشكله لما اعمل نشر للتطبيق على استضافه وندوز لا يعمل ومازلت احاول ولكن على جهازي يعمل بكفائة تحياتي
Hi Tim, i would like to ask you a question, how do i link together an app with the web api, the app that i have made is like a food ordering site,like how do i actually send requests and get request with the phone application?
Great video! I followed all steps to the T, but when I browse the site from IIS manager it just says: "Loading..." at the top and "Waiting for localhost..." on the bottom and it goes on what seems like eternity. No page ever loads. What am I doing wrong??!!
I'm not sure what you are asking. You choose what your production environment is (that just means that you designate a server or location as production and a different one as staging). When you publish, if you publish to the staging server, you are updating staging.
@@IAmTimCorey Thank you for your response Tim! I actually wanted to publish 2 copies of my app with staging and production settings and after a couple of hours I have figured it out through its webconfig. Now, looking forward to your Retail Manager Course!
It is on the high priority list. I've been waiting for VSTS to change its name to Azure DevOps (just happened recently) so now that it has been rebranded and the look has been updated, I'll start preparing the course and some TH-cam videos.
Would like to see a video on publishing to IIS using Visual Studio and Web deploy. According to Microsoft documentation Web Deploy does not need to be installed on later version of Windows Server, but I have not yet had success.
For this video, VS2017 Enterprise Edition. Now I'm using Visual Studio 2019 Enterprise Edition. The Community Edition is all you need, though, and is free.
Hi Tim, thanks for the video. I deployed my Web Application to Azure successfully as you, but I am getting an error during the process of the app. My application reads data from an Excel file and it looks that office package is not installed there. How can I install Office package on Azure? Thanks
You cannot. That's the downside of using Interop. It requires Excel to be installed on your web server. Check out this video to see how to build an Excel file without Interop: th-cam.com/video/j3S3aI8nMeE/w-d-xo.html
No, but it would be the same as deploying to IIS. You would just need to make sure you can get through the firewall. I've used FTP in circumstances where it was messy to do a web deploy.
how do you connect the published website using Azure App Service to the database that is created in Microsoft SQL server and moved to the Microsoft Azure ?
You just change the connection string. In Azure Web Apps, you can even put the connection string in the portal so that it updates automatically for you.
Great loved it... But, what if you need to publish in a company for a small web site for user work.. whats the easiest way for that? i am not talking cloud, just say in a bank, on a server in the banks network... How would you advise doing that?
Web deployment is a tricky one. Usually I use a tool like Azure DevOps to do something like that. For non-cloud build that deploys to a local server, usually it ends up being either an on-prem installation of Azure DevOps or a bunch of scripts that transfer the built website over to IIS (or whatever your web host is).
What is the difference between release and debug? When I alter code in debug and resolve changes, does that ultimately get fixed in the configuration "Release" too? Thanks.
By the way Tim, you are amazing. I really appreciate everything you have done for the C# community. Because if your videos, I can succeed for my family. Your impact and reach go beyond farther than you could imagine.
The difference has to do with how the code gets built. Debug mode keeps variable data around longer (rather than efficiently collecting the data) so you can more easily debug information, plus it does other similar techniques to work better with a debugging environment. The Release mode cleans up the code as much as possible, it handles memory efficiently, and more.
Great video Tim. When you have a UI project a DataLibrary project in the same solution, how to we deploy these together so they still talk? (to a folder)? Many thanks! Ps, looking forward to the .Net Core video.
The UI depends on the data library, so it compiles the data library as a DLL and includes it in the UI project's package. That means you don't need to deploy your data library separately.
Very helpful video, as always. One thing I am currently struggling with, and perhaps a good subject for a future video, is using Visual Studio to develop static websites containing only html, css and JavaScript. I know I could have just used Notepad and an FTP client, but I enjoy the Visual Studio environment. I spent a lot of time figuring out how much debugging I could do in VS as opposed to the browser tools, and I’m not sure I understand it fully. And deploying the site caused some headaches as well, as I had to change page file names to lower case to make things work on the host. I’m a longtime (20+ year) VB/C# programmer making my first steps into Web programming, and it’s almost overwhelming. I did a site first in Webforms with C# code-behind, then I wanted to do a Firebase version and found it easiest to rewrite in only JavaScript (it wasn’t a very complex site, and I am grateful for the learning experience). But deployment is still a great mystery to me; so I would look forward to more on this particular subject if you find the time to make more videos.
Thanks for the video, is very clear. I copied the files, after fighting I have the security working. Then I made a change in the application, build, publish it to the folder. The in IIS, I deleted the old files, copy the new published files and the site security were all messed up again. So Do I need just to replace the application.dll in the IIS folder?
It sounds like you need to place security on the folder and have it pass down to it's children so that the security is applied when new files are added.
I love the lesson. But what if I want to deploy more than 1 projects including sql data tools. Because I can not access the data project I built in the Aps.Net MVC solution.
We do this in the TimCo Retail Manager series. You deploy the SQL Server Data Tools project to a database. Then, when you deploy your MVC project, you update the connection string to point to that deployed database.
I'm completely frustrated. (I know. This is supposed to be the easy stuff.) Can't get anything to connect. I can "Publish" okay but when I add the site to IIS and try to browse to it I first got a connect to sql server error. I played with the webconfig file and the new error is that I don't have permissions to read the config file. Now how can that be?????? I've been trying to "deploy" the Tournament Tracker app using this video. Okay, I give up for now. On to the Tournament Tracker Add-on: WPF with MVVN course.
IIS isn't easy. The SQL issue is probably the connection string. The permission thing is because IIS runs as a service under a service account (typically). So, you need to give that service access to the folder (and all sub-folders) where your published application lives. Deploying to Azure is actually a LOT easier.
@@IAmTimCorey Thanks, Tim, but it seems like I've been overwhelming myself with your courses, and my brain is experiencing information overload. Think I'll take a step back and really practice the fundamentals I've seen thus far in a pet project of mine.
@@IAmTimCorey I realized this was a silly question a couple hours after posting it. I spent all afternoon trying to post a website just to find out my host doesn't support ASP. Thanks for the videos !
When you host on IIS, you have to configure the security, keep the server up to date, add your own SSL certificate and keep it renewed, configure the firewall settings, etc. When you host on Azure, those things are done for you, including the continual updates to the hosting software, firewall, operating system, etc. They even give you an SSL certificate and renew it for you.
The last minutes that you talk about contínuos delivery and production👌 dont forget that. Maybe a in depth pay course, will be amazing. Why dont create some group, like you coaching and develop some website, simulating that. Just give some ideas, sorry :)
It sounds like IIS isn't configured correctly. Make sure it is set up for the type of .NET application you are deploying and that you have the correct files in the directory.
Hi Tim, I've always been curious about how Wix websites are published. How are users of wix.com able to create their websites using the website builder provided by Wix and then deploy the websites they've created to the server simply by clicking a button? I'm curious to know if I can use Dotnet and IIS to achieve the same functionality.
@@IAmTimCorey Hi Tim, thanks for you reply. I'm only interested in the auto deployment feature of Wix. I'm assuming the custome code you're referring to which allows a one click deploy is a combination of something like Java or C# and most likely Powershell.
Hi there I’m getting error when i publish website to the folder and then paste those to production server Error is : Parser Error Message: Could not load the assembly 'App_Web_default.aspx.cdcab7d2'. Make sure that it is compiled before accessing the page. Source Error: Line 1: But these dll file exist in Bin folder. I try to make website on both visual studio 10 and 15 In both situations getting same error. Please tell how can i resolve this error.
Does not have a Azure subscription, is it possible to deploy on AWS EC2 instance? Would the first option to change it into a folder and move to AWS works?
what if my website has multiple projects, like a class library, DAL (Database Access), etc? I imagine I can copy class libraries as a DLL, but what about other projects? must you use Azure/ dedicated web server?
When you deploy your website, your class libraries go with that deployment. That means your Class Libraries (including your DAL and others) go with the site. You can deploy a web application to any server that supports .NET Framework (or even ones that don't if you are using a .NET Core project type).
Thank for a great video. Is there another way to deploy ASP.Net Web application? I am developing an web application for a client and my client is hosting the app locally. Everytime I fix bugs I need to send a whole package and my client needs to copy and paste the app manually. I was wondering if their is any way to automate this(copy and paste and restart IIS part)
Sure. It depends on how you want to do it but PowerShell is really good at these types of tasks. If you want to get a bit more "professional", you could use Azure DevOps (formerly VSTS) to create a build and deploy pipeline as long as your client can open up some ports (most importantly a data transfer mechanism like FTP or WebDeploy).
I know from PHP website deployment I used to require a webserver and a domain name. How could I assign an old domain name I am still paying for to an exisiting project that has been deployed on my webserver (when accessing it by RDP)?
Hi Tim.. Is the way forward for ASP.NET Core local deployment with Kestrel ? I heard that ASP.NET Core and Kestrel are built for performance. But you still need IIS in front of it for better authentication and etc. It would be so nice if you put this tutorial in your next video list. Thank you Tim. Have a great day!
Hi Tim, your video is very useful. I want to know if it is the same for a ASP.NET application with SQL Server (using Entity Framework). If I want to use the Folder Publish method, should I follow the same steps? I imagine I need SQL Server Management Studio to be installed in the client machine. Thank you!
Yes, it is the same steps and no, you don't need SSMS on the client machine. You just update your connection string to point to the right location and EF should create the database for you the first time you go to use it.
@@IAmTimCorey I have no idea where the connection string is, and what is it for. I will try to follow your steps without updating it and see what happen. If you can give me more information I will be grateful
@@IAmTimCorey Hi Tim, it's me again. So to install application on client machine I have to: 1- Install SQL Server on client machine and create DB. 2- Publish asp.net application on IIS on client machine with the files that Visual Studio generate. 3- Change the connection string on Web.config file to use DB of the client machine. It's ok? Thank you for your help!
@@IAmTimCorey hi Tim, I have a same question as @Maximo Librandi, hope you can do a full tutorial on deployment of MVC website locally/remotely. Also how do one install a DB on a client machine assuming we are running locally. Im guessing we need to install SSMS to set up a brand new database and import a script to populate all the tables and columns?
A 500 error is a generic error. It could be anything. You will need to do some debugging to figure it out. Check the server event logs for clues, put logging into your application, etc.
@@IAmTimCorey Ya so i ended up having to set a firewall rule on my db to allow my applications ip access to the db. Very new to azure and didn't know about the firewall rule.
Hi, how can i create an actual web page using c# mvc. I already created in one but i want to buy a server and put it there. What process should i follow ?
Hi Tim. As usual, an excellent and straightforward video covering a lot. I setup one of my computers with IIS, reproduced the steps you showed and it worked perfectly. I tried to deploy an API Core app (just the VS sample with the weather forecast) to the same computer, but I can't open the default controller using that computer's IP address. I opened the port in the firewall as well. Is there something I should keep in mind publishing API apps?. Thank you very much.
So, publishing an API shouldn’t be any different than any other web app. I’ll check the log files. Thank you for your quick reply. I really appreciate it.
How can I access the website from other machine over the local network or internet?What URL should I use? I doubt http:/localhost:8080 will work. Sorry, still new in web development.
You would need to open up that port (8080 in this case) in your machine's firewall and then access the website using your computer's internal IP address.
@@IAmTimCorey Great video! I am having a problem though. I am trying connect to my site from another computer on my network using the IP address + port number, but it is saying that it can't connect. It even does the windows authentication step at the beginning, but after authenticating it acts as though it times out. I've turned off the firewall and opened up the port, but no luck. Any ideas? Any help would be greatly appreciated!
so it doesnt work if you want to keep debugging and working on the api side? its only works once you finished your API and you wouldnt change anything else?
I am not sure I understand. If you deploy your website, that's what the customer sees and runs. If you want to make an update to the site, you would need to overwrite the current website with the new changes.
Tim, i`ve tried to deploy the web api used in your Tim Co retail manager course, it loads fine in the browser, but when trying to submit http request for authentication, it becomes unresponsive (with both the application and postman). Did i missed a step?
@@IAmTimCorey Hi Tim, I ran into the same problem when deploying my mvc web app. When I tried to log into my app I got the following error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. How do I deploy my aspnetDb along with my mvc web app? Thanks in advance & great content btw!
HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. That is the error I get when trying to localhost:8080
I don't think I've ever deployed from VSCode. Right-click publish is just for development and quick updates. When I'm working on a "real" application, I set up Azure DevOps to do the deployment for me.
Shout out to my man Tim Corey for replying all the comment! You are a legend Corey! Thank you so much!
You are welcome.
0:00 - Intro
1:23 - Demo app overview
2:10 - IIS Express
4:13 - Deployment options
5:19 - Folder deployment
12:25 - Deploying to Azure App Service
15:40 - Summary and concluding remarks
Thank you! I'm adding it to the video!
Thanks Tim. It is a very clear and useful video for updating an existing application when your colleagues told you "Just Copy".
Glad it was helpful!
Followed your video and the 'Introduction to ASP.NET'. Excellent explanation and teaching skills. Got my site working. Thank you!
Excellent! I'm glad you could put what you learned into practice.
Tim, I really appreciate all your work on these videos. They are very timely and right on target.
For your future videos: Security best practices for an external web application and/or Setting Active Directory Users/groups/permissions for internal web applications.
I'll add them to the list. Thanks!
Hey Tim, your videos are amazing. So clear and informative...straight to the point. Great work!
Glad you like them!
Thank you, even two years later, I was able to find my error because of your video :D
Tim just does that to people... LoL. Thanks for sharing!
It would be great to see an updated video on this, deploying .net Core web to IIS, using SSL.
Thanks.
Noted! Added to my list
excelente video Tim, go ahead with this please.!! greetings and blessings from Costa Rica.
it's so easy to understand you...
Thank you!
Great video thank you very much. If you have database, like your other video: ASP.NET MVC Data Access, how will you deploy it to ISS/Azure (The website and database)? Web hosting companies usually give you a package let say with 1 sql server. How will you publish this website and your database to the remote SQL server and change the connection string?
Thanks
2 months. Did u find out how to do this?
Can you do a video showing deploying an asp.net web (standard/framework/core) application to a remote IIS server? Thanks.
Thanks Tim, this really helped me out. I am new to your channel. Subscribed just now. I hope the best out of it. Thanks again for putting this out for beginners like us.
You are welcome.
More in-depth videos like this would be good covering best practices in depth. If it was on your website I’d pay for it.
I'll consider it.
God bless you man. You helped me a lot.
I’m so glad!
Around 10:30 you say that we can put a hole in our firewall and have our machine serve the website on our network. Can you explain how to do that? Or perhaps point me in the right direction of another tutorial that can teach me this? I tried hosting my backend webapp with REST apis, that worked on localhost are giving me a 500 error, so I'm trying to do the IIS way
This might help: www.codeproject.com/Articles/396569/Make-Web-Development-Easier-with-IIS-Express
Very nice video Tim. Enjoyed it. Working on project now where I have to deploy and very helpful. You should've added the staging / production switch in App Services. You were so close when you talked about production considerations.
The cheapest sites don't have that I don't believe. I try to cover only what is free. I will be covering a much more in depth process in an upcoming course.
Great video Tim! I much prefer creating local websites with different ports (8080, 8081 etc.) rather than use the "create virtual application folder" option. When I first messed around with classic asp 18 years go, I had issue with absolute paths etc when I deployed to a live website. I've always bought PRO version of windows rather than HOME version so I can have multiple websites locally.
Definitely a valid approach.
Thanks for this, so your way in this video is deploying to azure using VSStudio to publish and copies all the files in one go, but I've seen steps where they go and create an app service first, then copy the files manually, is this a step you would recommend, or just use publish directly?
I would recommend against manually copying files if you can avoid it. Use an automated system of some type so that you get predictable results every time.
Thanks for this. Helps a lot. Do you have tutorial how to setup SSL on an IIS website?
I don't, but thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/
Do you have a video on how to automate the deployment process?
I have a course on it: www.iamtimcorey.com/p/application-lifecycle-design/ I've covered it a couple times in some detail (look at my Azure DevOps video) but that course covers everything.
Following the IIS method I get this error:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
This is a somewhat generic error but this might help: stackoverflow.com/questions/9216158/the-requested-page-cannot-be-accessed-because-the-related-configuration-data-for
Hi got same error and then 400 error. Follow him exactly. My issue was saving the published files to Documents folder and didn't work. Try to save published files to folder under C drive and map IIS to that folder.
Great video, I see two options while publishing to IIS. One is "Web Deploy" and "Web Deploy Package". Could you explain this?
You could be using a different version of Visual Studio (you almost certainly are). Also, I believe in the current version of Visual Studio, it is a two-step process. The first step is to choose IIS and then you get those choices. In the previous step, you could choose file or other options.
Question: what version of http use iis express? http/1 or http/1.1 or http/2?
IIS Express uses http/1.1 I believe.
My app I'm trying to publish won't even load when you deploy it on IIS, because when it tries to connect to SQL SERVER it gives an error stating that ExecuteReader requires an open and available Connection no matter what I do.
Meanwhile on Visual Studio it works just fine. I have no clue why this would be the case
Very good explanation, thanks Tim!!
You are welcome.
Hello Tim, all your videos are really helpful. Thank you for that. I just have a question, I noticed that in here, you were able to deploy that in the same computer IIS with Windows 10. How about deploying it to a windows server 2012 with our existing website. Is that possible? How can I deploy this web api to our website? Thank you in Advance.
does not work for me, I keep on getting this error. is template
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Sounds like you missed something somewhere.
@@IAmTimCorey getting the same error as @Hendry -> Trying to investigate how to fix it!
I notice that the "Release " directory is not within the "bin" directory! I think the root of the issue the source code does not have that.
Thanks for the session it was amazing, though
Excellent video, thank you for sharing the knowledge.
You are welcome.
Tim--
If one is trying to deploy a portfolio site that includes a section that links to functioning demo projects, can that all be done within the same domain? In the specific case I'm thinking of, there is a good chance the demo projects would be different language stacks also. Seems like this would be a fairly common scenario, but I'm not finding too much about it in my usual sources.
Thanks as always.
You would probably want it on separate sub-domains. Each site really should be its own location, especially when you are mixing tech stacks.
*commented, liked, subscribed*
Excellent. Thanks. Appreciated.
Hi TIm, I followed the steps up to 10:12. This was were I removed all web pages files in the folder, however on reloading "localhost:8080" , I got no error message, i got a blank screen. I checked the windows features to see if error reporting was installed and it is. Please could you assist me ?
Check the IIS settings. Maybe you don't have .NET turned on for the app.
@@IAmTimCorey Thank you very much. I went to windows features and enabled everything , changed the port and it started to work.
When I click publish, i get an error saying "publish has encountered an error object reference not set..." What should i do ?
It sounds like you have a bug in your code. Make sure the code runs fully before you try to publish it.
@@IAmTimCorey the project builds successfully and runs fine. I am running VS 2017. Does that have anything to do with the problem?
If I publish to Azure, does it give me a domain?? Can I access my published website from every computer in the world using a browser?
It gives you a sub-domain. Something like "yourwebapp.azurewebsites.net". You can apply your own domain name to it if you want (you have to buy the domain name and you will need to pay a bit more for Azure hosting).
@@IAmTimCorey Thanks! And how long it will work?
As long as you want it to.
@@IAmTimCorey If I deploy using IIS will by website be accessible from another computer?
Thanks. Your videos are always very helpful
You are welcome.
Not really the proper place to ask, but I see replies so - how would you add a new .asp page to a site? My site apparently also requires a controller for each page otherwise the asp page resource is not found.
It sounds like you are trying to add pages to an MVC site. That doesn't really work in the .NET Framework. In .NET Core, you can add Razor Pages to MVC sites without an issue, though.
Tim, for me works to publish when the HTML pages are statics.
I connected with SQL Server Management Studio 18.0 and I don´t get to show a simple select command in the page.
What do I do for enable a database, please?
Thank you in advance.
You will just need to make sure your connection string points to a database that allows access from your web server. That's it. It should all work from there.
@@IAmTimCorey Hi, Tim.
I discovered the solution. I don´t know the explanation, but without setup were possible to access static pages.
When I set IIS to bind a IP of site, all machines in same network accessed the server.
Thank you for answer. I like your videos. :)
Apart from azure, do you know any good Asp.net core hosting companies?
I used Interserver for my Getting Started with ASP.NET Core course (affiliate link: www.interserver.net/r/589892 ). For $5/month, you can get ASP.NET Core hosting for multiple main sites and unlimited sub-domains, plus unlimited SQL databases. I've been impressed by their uptime and ability for the cost.
have been doing this thing for 20 years and each time Microsoft releases a new version, configuring IIS all of a sudden does not work the way I used to do It and end up in pain. Why oh why can't Microsoft make this easy for users of their product is a big question. Oh yeah they want to make people move to the cloud with managed hosting because there is where the money is.
hi Tim. thanks for the video. I encountered “This site can’t provide secure connection”. what does this mean?
Ok, what do we do when we add a new project to our solution, how do we deploy that to a dev server, particularly using Web Deploy/IIS? Doesn't seem to be a Publish option when right clicking, like there is with individual files.
Hi Tim, I'm using Asphostportal here since I can't afford Azure. I have successfully deployed my .net core on my hosting but it throw error 502.5 - Process Failure. How to fix this issue? Thank you
Not sure but here is an article on how to debug it (in Azure but the principles should apply): stackify.com/net-core-azure-app-service-wont-start/ Also, did you know you can get 10 Azure Web Apps free for life?
this doesn't seem to work for .NET Core 3.1 apps
It should. I just did a video with a .NET 5 (.NET Core) deployment to IIS here: Publishing to IIS - A TimCo Retail Manager Video
Can you tell the error you have? I got .net core 6 running
Hi Tim, What Video Do I Need To Watch To Host Asp .Net Core With Azure Sql Database
Oh Like Your Videos Very Practical And Educational With Straight To The Point Information.
I believe this video covers it somewhat: th-cam.com/video/68towqYcQlY/w-d-xo.html As for the rest, the Application Lifecycle Design course covers how to do this and more: www.iamtimcorey.com/p/application-lifecycle-design
Dumb question I'm sure, but, how do I open IIS manager? I added the Windows components shown, but am not sure how to find the manager, and it does not appear in search.
I believe it is under Administrative Tools in the Control Panel. I have to hunt for it too. Not a dumb question.
david...you saved me having to ask the same question... thanks
@@MrRasZee Win+R, type "inetmgr", try this.
Спасибо very much. That is exactly I was looking for!
You are welcome.
my solution contains 4 projects (4 tier MVC), does it also work with that?
Yep. It doesn’t matter how many projects or tiers you have. Your application gets compiled into one set of files that get deployed together.
What if we deploy it on the client's machine on iis? N what about SQL server?
Deploying to a client's IIS depends on their setup. You might be able to do web deploy if they open the firewall for it (doubtful) or you will need to deploy to a folder and then transfer those files over to the correct folder on their web server. As for SQL, that can be difficult (SQL scripts copied to the correct machine and run) or it can be easy using SSDT (see this video for help: th-cam.com/video/ijDcHGxyqE4/w-d-xo.html )
@@IAmTimCorey thanks again sir and that was a super fast reply.
Why after publisher remote i cant see My app
I use core 3.1
It get error
When edit Web. Cinfig file get error 4.3 access denay
Whats can i do it
I don't think there is enough information here for me to diagnose. It may be a permissions issue, it may be that you have the URL path wrong, or it may be that your host doesn't support 3.1 yet.
How do I add database for deploying to Azure.
Your Azure database has a connection string. Use that connection string and it will work (as long as you allow it through the firewall).
Hi Tim.You must be using some pro version of MVS I haven't got the options you showed in this video, which version of MVS you are using.Do you run extensions?
I'm using Visual Studio 2017 in this video but it still works the same in Visual Studio 2019 Community Edition (and the other editions too, but that is the free one).
I thought I followed this video step by step. When I wanted to view my site I got a permissions error and couldn't view the site. I found out the reason was that I copied the published website under a folder in my Documents folder. I then reviewed video and Tim copies the published files to a Temp folder under C. It now works. Tim or anybody who reads this, what is the difference with the Temp folder compared to others?
When you run IIS, it typically runs under a restricted user account for security reasons. Your Documents folder is restricted to your login alone. The IIS login does not have access to your Documents folder. By moving it to the Temp folder, anyone can access it because that is the default permissions for a folder (it doesn't inherit any restrictions from the above folder).
oh man i wish this was up last week. i spent 2 days trying to figure this out. turns out the MSDeployServiceURL that was generated automatically was wrong. thanks for the content tim
Bummer on the timing but I'm glad you got it figured out.
doing same process for Asp.net Core 3 blazer server-side , any difference ? for IIS i mean ?
i have asp.net core 3 installed in my machine yet i can't find it when choosing .net framework in this section 6:48
can you help me please ?
thanks
I believe the process is a bit different because .NET Core isn't treated the same way as the .NET Framework but I'm not sure. You can deploy .NET Core with your site so you don't need any configuration. I haven't deployed to IIS with .NET Core thought. I typically use Docker or a hosted web server like Azure.
السلام عليك اخي معتز
انا شغال معاي core 3.1 سويت ستب اب واستغل معاي بس المشكله لما اعمل نشر للتطبيق على استضافه وندوز لا يعمل ومازلت احاول
ولكن على جهازي يعمل بكفائة
تحياتي
Hi Tim, i would like to ask you a question, how do i link together an app with the web api, the app that i have made is like a food ordering site,like how do i actually send requests and get request with the phone application?
I'll be covering that in an upcoming course.
Great video! I followed all steps to the T, but when I browse the site from IIS manager it just says: "Loading..." at the top and "Waiting for localhost..." on the bottom and it goes on what seems like eternity. No page ever loads. What am I doing wrong??!!
Now I'm getting an "Access is denied" "Server Error in '/' Application." UGH!
IIS is tough to get right. There are a lot of things to tweak. You need to check to be sure the IIS user has permission to the folder, etc.
Amazing tutorial Tim! But how do I know if I published a production or a staging environment?
I'm not sure what you are asking. You choose what your production environment is (that just means that you designate a server or location as production and a different one as staging). When you publish, if you publish to the staging server, you are updating staging.
@@IAmTimCorey Thank you for your response Tim! I actually wanted to publish 2 copies of my app with staging and production settings and after a couple of hours I have figured it out through its webconfig. Now, looking forward to your Retail Manager Course!
This is so great! Thank you.
You are welcome.
I am definitely interested in CICD, automated build process pipeline, source control full in depth tutorial deluxe 9000. Willing to pay too.
It is on the high priority list. I've been waiting for VSTS to change its name to Azure DevOps (just happened recently) so now that it has been rebranded and the look has been updated, I'll start preparing the course and some TH-cam videos.
Would like to see a video on publishing to IIS using Visual Studio and Web deploy. According to Microsoft documentation Web Deploy does not need to be installed on later version of Windows Server, but I have not yet had success.
Thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/
Thanks Tim, can we have a tutorial on deploying a website with database to azure may be with CI/CD.
I do that in the Blazor Server In Depth course, the Application Lifecycle Design course, and soon I will do it in the TimCo Retail Manager course.
What version of Visual Studio are you using? Thanks.
For this video, VS2017 Enterprise Edition. Now I'm using Visual Studio 2019 Enterprise Edition. The Community Edition is all you need, though, and is free.
Hi Tim, what is the best way to deploy a multi-project (e.g. DataLibrary + MVCApp) website to Azure?
Use Azure DevOps to deploy it. I have a video on the subject and a course (Application Lifecycle Design).
@@IAmTimCorey Thanks, I'm waiting to be able to afford the course. I'll check out the video until then. :)
Hi Tim, thanks for the video. I deployed my Web Application to Azure successfully as you, but I am getting an error during the process of the app. My application reads data from an Excel file and it looks that office package is not installed there. How can I install Office package on Azure?
Thanks
You cannot. That's the downside of using Interop. It requires Excel to be installed on your web server. Check out this video to see how to build an Excel file without Interop: th-cam.com/video/j3S3aI8nMeE/w-d-xo.html
Do you have any videos on deploying to a Azure Virtual Machine?
No, but it would be the same as deploying to IIS. You would just need to make sure you can get through the firewall. I've used FTP in circumstances where it was messy to do a web deploy.
how do you connect the published website using Azure App Service to the database that is created in Microsoft SQL server and moved to the Microsoft Azure ?
You just change the connection string. In Azure Web Apps, you can even put the connection string in the portal so that it updates automatically for you.
Great loved it... But, what if you need to publish in a company for a small web site for user work.. whats the easiest way for that? i am not talking cloud, just say in a bank, on a server in the banks network... How would you advise doing that?
Web deployment is a tricky one. Usually I use a tool like Azure DevOps to do something like that. For non-cloud build that deploys to a local server, usually it ends up being either an on-prem installation of Azure DevOps or a bunch of scripts that transfer the built website over to IIS (or whatever your web host is).
What is the difference between release and debug? When I alter code in debug and resolve changes, does that ultimately get fixed in the configuration "Release" too? Thanks.
By the way Tim, you are amazing. I really appreciate everything you have done for the C# community. Because if your videos, I can succeed for my family. Your impact and reach go beyond farther than you could imagine.
The difference has to do with how the code gets built. Debug mode keeps variable data around longer (rather than efficiently collecting the data) so you can more easily debug information, plus it does other similar techniques to work better with a debugging environment. The Release mode cleans up the code as much as possible, it handles memory efficiently, and more.
Great video Tim.
When you have a UI project a DataLibrary project in the same solution, how to we deploy these together so they still talk? (to a folder)?
Many thanks!
Ps, looking forward to the .Net Core video.
The UI depends on the data library, so it compiles the data library as a DLL and includes it in the UI project's package. That means you don't need to deploy your data library separately.
IAmTimCorey Ah, that makes sense! Thanks for the clarification Tim 👍.
Very helpful video, as always. One thing I am currently struggling with, and perhaps a good subject for a future video, is using Visual Studio to develop static websites containing only html, css and JavaScript. I know I could have just used Notepad and an FTP client, but I enjoy the Visual Studio environment. I spent a lot of time figuring out how much debugging I could do in VS as opposed to the browser tools, and I’m not sure I understand it fully. And deploying the site caused some headaches as well, as I had to change page file names to lower case to make things work on the host. I’m a longtime (20+ year) VB/C# programmer making my first steps into Web programming, and it’s almost overwhelming. I did a site first in Webforms with C# code-behind, then I wanted to do a Firebase version and found it easiest to rewrite in only JavaScript (it wasn’t a very complex site, and I am grateful for the learning experience). But deployment is still a great mystery to me; so I would look forward to more on this particular subject if you find the time to make more videos.
Check out Visual Studio Code. It is free and much better for web development. I'll be doing a video about it (or a few) next year.
Thanks for the video, is very clear.
I copied the files, after fighting I have the security working. Then I made a change in the application, build, publish it to the folder. The in IIS, I deleted the old files, copy the new published files and the site security were all messed up again. So Do I need just to replace the application.dll in the IIS folder?
It sounds like you need to place security on the folder and have it pass down to it's children so that the security is applied when new files are added.
I love the lesson. But what if I want to deploy more than 1 projects including sql data tools. Because I can not access the data project I built in the Aps.Net MVC solution.
We do this in the TimCo Retail Manager series. You deploy the SQL Server Data Tools project to a database. Then, when you deploy your MVC project, you update the connection string to point to that deployed database.
Thanks Tim. You're the best.
I'm completely frustrated. (I know. This is supposed to be the easy stuff.) Can't get anything to connect. I can "Publish" okay but when I add the site to IIS and try to browse to it I first got a connect to sql server error. I played with the webconfig file and the new error is that I don't have permissions to read the config file. Now how can that be??????
I've been trying to "deploy" the Tournament Tracker app using this video.
Okay, I give up for now. On to the Tournament Tracker Add-on: WPF with MVVN course.
IIS isn't easy. The SQL issue is probably the connection string. The permission thing is because IIS runs as a service under a service account (typically). So, you need to give that service access to the folder (and all sub-folders) where your published application lives. Deploying to Azure is actually a LOT easier.
@@IAmTimCorey Thanks, Tim, but it seems like I've been overwhelming myself with your courses, and my brain is experiencing information overload. Think I'll take a step back and really practice the fundamentals I've seen thus far in a pet project of mine.
@@IAmTimCorey Hi Tim.. Please how do you fix the connection string?? Cos I get the same sql-connection error page. Help me with any quick fix. Thanks
I might be a little confused.Trying to deploy the website we built using the employee processor. Will this process not work with SQL?
This video covers deploying a website. Deploying SQL is a separate process and a bit different.
@@IAmTimCorey I realized this was a silly question a couple hours after posting it. I spent all afternoon trying to post a website just to find out my host doesn't support ASP. Thanks for the videos !
What is the difference between hosting a web application on IIS Manager and azure?
When you host on IIS, you have to configure the security, keep the server up to date, add your own SSL certificate and keep it renewed, configure the firewall settings, etc. When you host on Azure, those things are done for you, including the continual updates to the hosting software, firewall, operating system, etc. They even give you an SSL certificate and renew it for you.
The last minutes that you talk about contínuos delivery and production👌 dont forget that. Maybe a in depth pay course, will be amazing. Why dont create some group, like you coaching and develop some website, simulating that. Just give some ideas, sorry :)
Don't be sorry. I appreciate it. There will be a paid course coming up that will include the entire process of developing an application.
That includes source control, ci/cd, different environments, etc.
Why does IIS 10 show a directory listing instead of the application?
It sounds like IIS isn't configured correctly. Make sure it is set up for the type of .NET application you are deploying and that you have the correct files in the directory.
Does it works for web application?
Yep.
Hi Tim, I've always been curious about how Wix websites are published. How are users of wix.com able to create their websites using the website builder provided by Wix and then deploy the websites they've created to the server simply by clicking a button? I'm curious to know if I can use Dotnet and IIS to achieve the same functionality.
Wix built a tool to do just that. You could do something similar with a .NET project, but it would involve some custom coding.
@@IAmTimCorey Hi Tim, thanks for you reply. I'm only interested in the auto deployment feature of Wix. I'm assuming the custome code you're referring to which allows a one click deploy is a combination of something like Java or C# and most likely Powershell.
Hi there
I’m getting error when i publish website to the folder and then paste those to production server
Error is :
Parser Error Message: Could not load the assembly 'App_Web_default.aspx.cdcab7d2'. Make sure that it is compiled before accessing the page.
Source Error:
Line 1:
But these dll file exist in Bin folder.
I try to make website on both visual studio 10 and 15
In both situations getting same error.
Please tell how can i resolve this error.
Try deleting the .cdcab7d2 part
Does not have a Azure subscription, is it possible to deploy on AWS EC2 instance? Would the first option to change it into a folder and move to AWS works?
I’m not familiar with AWS but you can definitely deploy to it.
@@IAmTimCorey thank you for the video
what if my website has multiple projects, like a class library, DAL (Database Access), etc? I imagine I can copy class libraries as a DLL, but what about other projects? must you use Azure/ dedicated web server?
When you deploy your website, your class libraries go with that deployment. That means your Class Libraries (including your DAL and others) go with the site. You can deploy a web application to any server that supports .NET Framework (or even ones that don't if you are using a .NET Core project type).
Thank for a great video. Is there another way to deploy ASP.Net Web application? I am developing an web application for a client and my client is hosting the app locally. Everytime I fix bugs I need to send a whole package and my client needs to copy and paste the app manually. I was wondering if their is any way to automate this(copy and paste and restart IIS part)
Sure. It depends on how you want to do it but PowerShell is really good at these types of tasks. If you want to get a bit more "professional", you could use Azure DevOps (formerly VSTS) to create a build and deploy pipeline as long as your client can open up some ports (most importantly a data transfer mechanism like FTP or WebDeploy).
I know from PHP website deployment I used to require a webserver and a domain name. How could I assign an old domain name I am still paying for to an exisiting project that has been deployed on my webserver (when accessing it by RDP)?
You need to point your DNS for that domain name to the server. Then on the server, you need to make sure you are listening for that URL.
Thanks man great teaching
Thank you!
Awesome video, thanks!
You are welcome.
Hi Tim.. Is the way forward for ASP.NET Core local deployment with Kestrel ? I heard that ASP.NET Core and Kestrel are built for performance. But you still need IIS in front of it for better authentication and etc. It would be so nice if you put this tutorial in your next video list. Thank you Tim. Have a great day!
Kestrel is great for local development and testing, but I still recommend using IIS (or Apache if deploying to Linux) for actual production use.
IAmTimCorey Thanks Tim. Got it!!
Hi Tim, your video is very useful.
I want to know if it is the same for a ASP.NET application with SQL Server (using Entity Framework). If I want to use the Folder Publish method, should I follow the same steps?
I imagine I need SQL Server Management Studio to be installed in the client machine.
Thank you!
Yes, it is the same steps and no, you don't need SSMS on the client machine. You just update your connection string to point to the right location and EF should create the database for you the first time you go to use it.
@@IAmTimCorey I have no idea where the connection string is, and what is it for. I will try to follow your steps without updating it and see what happen. If you can give me more information I will be grateful
Here is a video on what connection strings are and how to build them: th-cam.com/video/weE1CwfS9rI/w-d-xo.html
@@IAmTimCorey Hi Tim, it's me again. So to install application on client machine I have to:
1- Install SQL Server on client machine and create DB.
2- Publish asp.net application on IIS on client machine with the files that Visual Studio generate.
3- Change the connection string on Web.config file to use DB of the client machine.
It's ok? Thank you for your help!
@@IAmTimCorey hi Tim, I have a same question as @Maximo Librandi, hope you can do a full tutorial on deployment of MVC website locally/remotely. Also how do one install a DB on a client machine assuming we are running locally. Im guessing we need to install SSMS to set up a brand new database and import a script to populate all the tables and columns?
Do you have any advice oh how to go about solving a 500 error? I have a student plan and when I deploy it my home page displays error.cshtml.
A 500 error is a generic error. It could be anything. You will need to do some debugging to figure it out. Check the server event logs for clues, put logging into your application, etc.
@@IAmTimCorey Ya so i ended up having to set a firewall rule on my db to allow my applications ip access to the db. Very new to azure and didn't know about the firewall rule.
Can you please make a demo of how to publish my code in azure vm.
Can you give a bit more detail on what you mean by "my code"?
I mean how to publish/deploy asp.net project in the azure vm
I can add that to the suggestion list.
Is your email registration system down? I've registered several times for the code and don't get the downloads. Thank you. Love your content.
Check your spam folder. If it isn’t there, email help@iamtimcorey.com with which video you aren’t getting the code for.
Hi, how can i create an actual web page using c# mvc. I already created in one but i want to buy a server and put it there. What process should i follow ?
This should help: th-cam.com/video/phyV-OQNeRM/w-d-xo.html
Hi Tim.
As usual, an excellent and straightforward video covering a lot.
I setup one of my computers with IIS, reproduced the steps you showed and it worked perfectly.
I tried to deploy an API Core app (just the VS sample with the weather forecast) to the same computer, but I can't open the default controller using that computer's IP address.
I opened the port in the firewall as well.
Is there something I should keep in mind publishing API apps?.
Thank you very much.
I would check your event logs to see if you are getting an error because the same publish steps should work for .NET Core.
So, publishing an API shouldn’t be any different than any other web app.
I’ll check the log files.
Thank you for your quick reply.
I really appreciate it.
How can I access the website from other machine over the local network or internet?What URL should I use? I doubt http:/localhost:8080 will work. Sorry, still new in web development.
You would need to open up that port (8080 in this case) in your machine's firewall and then access the website using your computer's internal IP address.
@@IAmTimCorey Thank you very much! I needed that answer too
@@IAmTimCorey Great video! I am having a problem though. I am trying connect to my site from another computer on my network using the IP address + port number, but it is saying that it can't connect. It even does the windows authentication step at the beginning, but after authenticating it acts as though it times out. I've turned off the firewall and opened up the port, but no luck. Any ideas? Any help would be greatly appreciated!
so it doesnt work if you want to keep debugging and working on the api side? its only works once you finished your API and you wouldnt change anything else?
I am not sure I understand. If you deploy your website, that's what the customer sees and runs. If you want to make an update to the site, you would need to overwrite the current website with the new changes.
Tim, i`ve tried to deploy the web api used in your Tim Co retail manager course, it loads fine in the browser, but when trying to submit http request for authentication, it becomes unresponsive (with both the application and postman). Did i missed a step?
Did you deploy the databases as well?
@@IAmTimCorey i've tried unsuccessfully. So i created the aspnet tables in my sql server database.
@@IAmTimCorey Hi Tim, I ran into the same problem when deploying my mvc web app. When I tried to log into my app I got the following error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. How do I deploy my aspnetDb along with my mvc web app? Thanks in advance & great content btw!
Can you do a video deploying an API using SSL? Thanks.
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
That is the error I get when trying to localhost:8080
It also generates a whole bunch of files that look nothing like what you had, a billion dlls and what not Help please :(
I am basically looking to build a web app that could be deployed into localhost, so will this work? Or do you have more options to my question?
localhost just means your PC. You would need IIS installed on your PC (which you can do) and then yes, you can deploy to it.
Hello, how ot make the same deploy to IIS but with sql express database?
I’ll add that to the suggestion list.
how to deploy using visual studio code or manually?
I don't think I've ever deployed from VSCode. Right-click publish is just for development and quick updates. When I'm working on a "real" application, I set up Azure DevOps to do the deployment for me.