I have a IIS running on my webserver. I developed a rest api based on a mvc 4 web api. the problem i have at the moment is that when I put new / changed files onto the IIS that the IIS is not "recognizing" them.
lets say for example i changed one service - put the new file on the server - server thinks he still has the old file. I observer this behaviour because when i call the service i still get the old result - not the new result as implemented in visual studio locally. I have no clue why the IIS is acting like that...
As leppie already mentioned in the comments, I had a wrong understanding of ASP.NET web sites and ASP.NET web applications.
As a solution, I had to do a rebuild to compile the DLL again and then deploy it to the IIS.
Related
I have a ASP.NET Core 2 Web API with the Angular 4 front end SPA application. It was created using clean Core 2 Web API template in VS2017 and angular-cli for the front-end using VSCode. Currently I can successfully run my prototype using either IIS Express WebAPI or self-hosted. I can successfully deploy to IIS using steps simmilar to these: https://learn.microsoft.com/en-us/aspnet/core/publishing/iis?tabs=aspnetcore2x. However, I can't figure out how to attach to the IIS process to be able to step through the code as I used to do with regular old Web API or MVC app hosted in IIS.
I'm coming from traditional Web API and Angular1 environment. Both ends were deployed to IIS and it was a simple process to attach to IIS for troubleshooting. So, maybe it's a stupid question, but I can't seem to find good resource on how to approach production deployment of such Core 2 WebAPI + Angular 2 SPA app. What are the best practices? IIS for Web API and npm for client? Can someone maybe point me to tutorial on how to do that and how to debug/troubleshoot with IIS? Are there a better ways to deploy/host it, maybe my approach is wrong and IIS not needed?
If any pictures, code, setup is needed I'll gladly add it to the question. I just don't know what I can provide at the moment. Any help, advise, link will be much appreciated!
Not 100% sure if this is what you're after, but check out this blog-post:
https://blogs.msdn.microsoft.com/webdev/2017/07/13/development-time-iis-support-for-asp-net-core-applications/
Note: Make sure you select the new launch profile ("IIS") in the main window, before starting a debug session!
On the ASP.NET server (production), I am told to use the web service that is written by some other person.
Question is how do I find out what webservices were deployed on the production server. All I am told is to make a call using "CheckFile" (which I believe is a part of the web service). I went to the Inetpub folder to see if there is any folder that has these webservices but there is none?
Sorry I am doing this first time and hence many questions,
My end goal is to use these webservices in my ASP.NET application and call those functions such as "CheckFile" and others from this webservice.
Thanks.
I agree ask your co-worker if you have one.Else if you have access to old asp.net app then right clik on project and click on service reference tab it will show web services in that .net app.
I am developing an windows application and I need to load some local asp .net web pages.
how could I do this ?actually I need a local server application that works with my application then i can run asp .net web pages in my windows application.
tanks for your help
can I use asp .net development server as a component to work with my application?
IIS Express is a standalone instance of IIS that can be deployed to users (there's a .MSI).
IIS Express is, according to the linked page, a wrapper round "hostable web core" - which sounds like it might be an even better match to your needs - but I've not investigated that at all so can't comment on what's involved in using it.
As an aside, I'd have to agree that its a slightly strange requirement - you might want to clarify that.
I've done a significant amount of searching and am having difficulty finding people who have encountered a similar problem.
I have gone into the properties for my project and set it to use the local IIS web server instead of the VS Dev server. It created the virtual directory just fine. When I attempt to browse to the site, I receive the following error:
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
I haven't done any custom routing rules for my project, so all of that is in its default state. The only other thing that I can think of is that there is something special that needs to be done to set up the "default" page for an MVC 2 deployment.
Any help would be greatly appreciated.
%windir%\Microsoft.NET\Framework64\v4.0.30128\aspnet_regiis.exe -ir
That solved it for me in the past. (remove the "64" if you're on 32-bit)
I have planned to develop a web application using MVC, can any one suggest me the how easy to deploy the application on the IIS?
And also let me know the steps to that.
regards,
Satish
Just publish your application either to your server directory or locally and copy it to the the destination server. Make sure your server is configured for MVC, see below:
Using ASP.NET MVC with Different Versions of IIS
Server installation options for ASP.NET MVC 2
as rick says, and also, make sure (if IIS6) to use wildcard mapping - this needs to be added in the IIS control panel. again, our old friend google should throw up plenty of options on doing this. if you're under shared hosting, you can request it and most are happy to add it.
jim