I am developing a web app (web service) using Visual Studio 2015 net core v1 und hosting it on an Windows Server 2012 R2 with iis.
It is running well, but the changes I make are not being used.
In visual studio I save the changes and go to the publish section and publish it. I take the publish output folder and replace the original folder with it.
But it seems like it is not changing anything because I still get the old answers.
I tried restarting the website, but it did not change anything.
EDIT:
if I debug it, it works perfect
Like Ankesh Kumar mentioned: selecting an other output folder solver this problem.
Related
I developed an asp.net web application, I would like to generate an installer which could deploy this application in IIS automatically (or manually with published website code). I've tried to publish the code manually by myself and add them into setup project, but there always gives me an error message. I wonder if there is a way to generate an installer which could deploy my application on IIS.
Here are steps you can take.
1) Take a look at the following link which gives a plugin if you are using visual studio 2015,21017 or 2019. I think this plugin will work even with Community edition.
https://marketplace.visualstudio.com/items?itemName=VisualStudioClient.MicrosoftVisualStudio2017InstallerProjects
2) Once the plugin is installed the following link from microsoft can guide you how you can do the setup at high level.
https://learn.microsoft.com/en-us/biztalk/core/how-to-create-a-web-setup-for-your-published-web-service
Hope this helps.
I was compelled by work to upgrade from Visual Studio 2010 to Visual Studio 2013. In VS 2010, I used the built-in host for viewing .net apps locally and everything worked just fine. Visual Studio 2013 dropped support for the built-in host and compels everyone to use IIS Express.
My trouble is that IIS Express won't serve up "[anything].aspx" no matter where in the folder tree of the project it resides. I created two test files in the root of the project: HelloWorld.html and HelloWorld.aspx (c#) and made both to simply show a page saying "Hi" with the asp.net file showing the current date and time. I then copied these two test files into an arbitrary folder in the project. After building the project (unnecessary, I know), I did a "View in Browser" for all test files. In all cases, the HTML files displayed properly. The aspx files cause a "HTTP 400 Bad Request" / "The webpage cannot be found" error.
I've prowled Stack Overflow and Google and read about some near-misses but ultimately came up empty for this specific problem. I'm hoping this is a simple configuration issue, but the answer so far eludes me. Thanks in advance for your kind assistance!
Edit:
Thanks to Lex Li's suggestion of using the Jexus Manager to see what's going on with the IIS Express configuration, it shows that zero apps are assigned to any of the default application pools. Correspondingly, when clicking on the home of the website in the Jexus Manager, the .Net section of the website is absent.
Edit #2:
The web app is assigned to one of the default IIS Express app pools: Clr4ClassicAppPool.
Sound weird, did you try open the iis express xml applicationhost.config and check there the mime type or the application pool settings?
I want to install my asp.net 5 website on a windows server 2012 box (IIS). From what I understand, asp.net 5 is self-contained and is deployed via the Publish function of Visual Studio 2015. And, thus doesn't need to be separately installed on the target server..
Is this correct?
IIS configuration is documented. You need to install the IIS Platform Handler, as IIS doesn't understand the new way to start apps without it.
After that publish will do everything you need.
I have created a simple MVC3 application in Visual studio 2012. Earlier I was using VS2010. Both are currently Installed on my System.
The Problem is that when I publish and Deploy the application on IIS It doesn't works.
It gives Error Code 0x00000000
I tried with different applications but problem remains the same. Any of the application created in VS2012 is not deploying Successfully. Please Help.
I am adding snapshot of publish and error message.
looks like you are publishing an mvc3 app.
If I remember correct for that version you either have to install mvc on the server or include mvc binaries in your output directory.
There was a menu item for mvc project (right click on a project in solution explorer) to add mvc dependencies to some binpub folder. You should look for that.
oh and here is a Hanselman post on the topic
http://www.hanselman.com/blog/BINDeployingASPNETMVC3WithRazorToAWindowsServerWithoutMVCInstalled.aspx
And another SO question: Why is the _bin_DeployableAssemblies folder specific to web applications?
this may be a simple question but until now I always created a web site with Visual Studio and ran it via Visual Studio. But now I have to run it in a computer that doesn't have Visual Studio. I'm guessing I have to install IIS but I don't know how to run that website. How can I do it? Thank you.
You'll need to install IIS on that machine, then set the folder with the site in it as a Virtual Directory. IIS will handle everything else from there.
Assuming you set everything up correctly, you should be able to access the site like so:
http://localhost/whateveryourfolderis
ASP.NET and IIS Configuration
you have to install iis 7 or higher version for run .net application if you use windows xp so you have to upgrade it with Service Pack 3 it provide iis 7 for .net application
after install IIS put you application in INITPUB dir in C: run in browser with http://localhost:80/applicationname
it working