We have a C# code developed using VS2005 in a local machine. That code was hosted in a Windows 2003 server with IIS 6. Now that we are upgrading the server to Windows 2012 R2 (IIS 8.5 with IIS 6 Compatibility mode enabled), how do we make the code work on the new server.
I don't know much about VS/C#. The code is placed in C:\Intepub\wwwroot folder.
I tried to create an application in IIS Manager. But nothing works.
I get the below error:
HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
I hope I am missing some simple logic. Kindly help me get through this.
Note: All we have is the code and VS2005/ that local environment is no more available.
As #Nanhydrin suggested, adding .net framework 3 to Windows 2012 server helped me fix the issue. in 2012 server, it can be done by using Add Roles and Features in server manager.
Related
I'm really new at this, never hosted an app before, everything I've done so far has been locally.
I have a windows server 2008 sp1 running at work, with IIS installed. I access to it via remote desktop, and I need to be able to deploy my app, first locally on the server, so computers that can access it (through LAN) are able to use it.
Right now, if I create a folder and put some data in it, with an html file, and go to "localhost" in a browser, I can see the rendered html file.
The version installed is IIS 7.0, and my app is uses the MVC pattern, and .net framework 4.6.
If on my windows 10 PC I start my app (vs 2017) I can see it on my browser.
I want to be able to do what I do in my PC but on the server. How can I do this?
Update:
I tried Publishing the app through vs but that is on my windows pc and getting a lot of errors. What I know so far is that a guy from Networks gets the app by the developers and they publish it, but I don't know what kind of files does he need.
I followed tutorials but I just can't apply them.
As I said earlier, I have visual studio installed on my w10 PC, and tried publishing through that app to the ip where the server is, getting a lot of errors.
I don't know what to do, I'm really trying a lot of different things, but I don't even know how the app is supposed to look to be run in any way that is not how I run it in visual studio.
UPDATE:
I'm getting this error when I try to publish locally
Here is the Outline of what we need as per OPs requirement
In VS publish the App to a folder
Sort out the server prerequisites:
Turning Windows Feature On or Off for ASP.NET, ISAPI filters, ISAPI extensions, NET extensibility
Server should have .NetFramework installed
Copy the published folder to the Server
Configure IIS manager to add a new site and set physical path to published folder
My problem is the following, I have a pretty huge project where I've deployed The Identity Scaffolding, so it has scaffolded in The Areas map. When I run this project in IIS Express on Visual Studio 2016, everything works fine, but when I published it and deploy it on IIS 10 on my local pc or on an remote server with Windows 2016 and IIS 10 installed on it, he refers everytime to a default template of inlogpage.
How it looks on IIS Express and how it should look.
This how it looks like.
I deploy it in the local IIS Express of Visual Studio but it doesn't in the normal IIS. IIS Express
Scaffolded Identity
Update project is finally running had something to do with the roles on sql server, but still it doesn't explain why he isn't taking my changed my login page
Right page
Default page
Those seem to be different projects, see the year and the project name in the footers. To deploy to IIS, consider using the Web Deploy method instead the File system method. See Deploy the app for further information.
Make sure that your site is using the same folder by click on the explore on the site.
do not forget to refresh the site after publishing from the visual studio.
I new to ASP.NET development and I have managed to deploy VirtoCommerce to my local machine IIS (windows 8.1) following the documentation on http://docs.virtocommerce.com/display/vc2devguide/Deploy+web+applications+to+dedicated+server .
When I tried to deploy it in Azure VM running Windows server 2012, I got the following error when I tried to run the frontend page. The dll mentioned below is definitely in the /bin folder of the store.
Server Error in '/' Application.
Could not load file or assembly 'LibSass.x64' or one of its dependencies. An attempt was made to load a program with an incorrect format.**
I followed the link
Could not load file or assembly 'LibSass.x64' or one of its dependencies in VirtoCommerce but found no luck. What did I miss on this deployment ? Any help is much appreciated, thank you.
Are you running 64 but machine and IIS Application Pool as 64 bit? If not, make sure to go to IIS and configure pool settings to run as 64 bit process. The easier approach will be to follow the guide here: http://docs.virtocommerce.com/display/vc2devguide/Deploy+from+GitHub+to+Microsoft+Cloud+Azure which will setup Virto Commerce as a website in IIS with all correct configuration for IIS. You can then update it manyally by simply uploading site through FTP if you want. You can also clone the repository on GitHub and that way your azure site will auto update on every checkin.
I was able to reproduce this error on a clean Windows Server 2012 Standard. It turned out that Libsass.Net requires Visual C++ Redistributable Packages for Visual Studio 2013. After installing the vcredist_x64.exe the error has gone.
We are using wkhtmltopdf.exe (up to 10 months it had been worked with no issues) but from few days we are facing issue with wkhtmltopdf.exe. For now we are getting error from wkhtmltopdf.exe and PDF is not generating for us, we use JavaScripts. When I click page is going to our written error page. Our problem in PDF is not coming with any versions from wkhtmltopdf.exe. Our code and applications are very clear .wkhtmltopdf.exe is working in local why not in live server(Windows 2008 R2 enterprise)? We had tried all the versions from (wkhtmltopdf site)[http://wkhtmltopdf.org/downloads.html] all were worked in localhost but not in live server this tool is very important in our product looking forward to hearing from you.
Probably you use the ASP.NET development server locally (Cassini, basically IIS6), and on your windows server, you have IIS 7+. Your ASP.NET application pool is probably in integrated mode security (on IIS7+), and you can't call external programs from there (you can in IIS6 mode - classic mode in IIS7), let alone access paths outside the web application root folder.
You can try incorporating wkHtmlToPdfSharp as DLL.
I have here:
https://github.com/ststeiger/wkHtmlToPdfSharp
it's a minor revision from Pechkin project here
https://github.com/gmanny/Pechkin
or you can try switching the application pool to classic mode.
What is the version of wkhtmltopdf you are using? I've got exactly the same problem, my version is 0.12.3.
After 3 days struggling with this issue, I found that for whtmltopdf software to generate pdf, we need 2 file msvcp120.dll & msvrp120.dll to running from server side. After I copied these 2 files into the same folder as the wkhtmltopdf.exe. It works perfectly. Hope this helps.
I have developed an MVC 4 application on my personal laptop and would like to host it onto a windows 2012 server so that it goes live.
What I am doing right now is, I have published the application as a File System in my laptop and then remote logged in to the windows 2012 Server and trying to deploy it into IIS 8 which is on that server but I could find a way to import my application into the server.
Now, my question is do I need to install Visual Studio 2012 on the server and then copy my application over to it and then publish and deploy or is there any other way.
This is the first time I am deploying and hosting an application. So, I am not sure of the exact procedure to do it.
Remember that my development machine is not the windows server but it is my personal laptop.
Install WebDeploy (a free Microsoft Tool) on your target server. Then you can deploy your site directly from VS. See details here