I have published the created ASP.NET WEb API in the FILE SYstem. And in the IIS I have created a website and linked the published application in the physical path. After creating the website I tried to encrypt the connection string using aspnet_regiis. Everything works fine in the current server.
So If want to create the website on different server. How will I be doing it. I tried to move the published folder local in to the server and tried creating the website referencing that as the physical path but when I browse through the website it returns some irrelevant data.
Is there any procedure for doing this.
Related
I am developing a .NET (not core) WEB API.
When I run it on mode debug in Visual Studio, and try to call the GET method of my API via Browser or Postman, it works fine!
But I am trying to publish it on my local IIS.
I published it via Visual Studio on a local folder. Created a website on IIS and made it point to the local folder.
When I try to open it on Browser, it just lists the files that are in the local folder. It doesnt execute my webAPI correctly.
Any insight on that?
I am trying to publish an ASP.NET Web Application (.Net Framework) to a subdomain on my webhotel. The problem is that when the site has uploaded and I visit the page, the site is not displayed, only the code in the index.cshtml file is shown in the browser. The site consists of Razor Pages.
I have checked the root directory for the subdomain at my webhotel and noticed that there are no .dll files which I was expecting there would be. What might the problem be and how can I solve this?
I have been informed by the support from the Webhotel Host that it is not possible to publish a Web Application to an ordinary FTP server. Instead I have found that Google Cloud Platform or equivalent, is needed to host a Web Application. The directory needs to be specifically prepared for a Web Application.
I'm trying to convert my page to PDF using HiQPDF. The code works fine when I run it on my local machine (through localhost), but when I push it to the server, I receive this error:
HTML from URL layout error
Here's some example code:
HtmlToPdf htmlToPdfConverter = new HtmlToPdf();
htmlToPdfConverter.ConvertUrlToFile("https://website.com/12345", filePath);
filePath is the path where the PDF should be created. Path is correct and the folders are all created. When I go to https://website.com/12345 as my site, I can view the page fine. Even in incognito. If I simply replace website.com with localhost it works fine locally.
The error suggests there's a problem with the code of the page.. right? What could the issue be?
Are you using this in an Azure web app? If so, it's not supported. If you're using Azure it would need to be deployed to a web role running in a cloud service.
You can use the HiQPdf library in Windows Azure Cloud Services and Virtual Machines but not in Web Sites because the Web Sites run in a restricted sandbox. Using Visual Studio you can easily transform an existing ASP.NET 4.0 or MVC application into a Web Role by adding a cloud service project to the solution containing your project. For this, open your solution, right click on the ASP.NET project and select the 'Add Windows Azure Cloud Service Project' option from menu. Right click on the added cloud service project and select the 'Package' option to produce a package and a configuration file you can deploy as an Azure Cloud Service.
http://www.hiqpdf.com/FAQs.aspx
I created a website I need to deploy on a different server. We only have teamviewer to access this server.
With just being able to copy the files over to the server, how would I go about getting it running?
Publish site on local machine and upload the published folder on remote machine using filezilla. IIS has c:\inetpub\wwwroot as default website published folder. You may also see this
i created an asp.net web app and it works fine with the compiler.
i would like to try it now with IIS server.
i installed the IIS server succesfully on my machine and was wondering if i can have some guidance on redirecting the application to work on it,
how would i get it to work on IIS?
just open IIS configuration manager and create a Virtual Directory that points to the folder where you have the web.config and the bin subfolder.
After that you can do right click on the virtual directory on the left treeview, under My Web Site and click browse to open the site with the default browser.
this in twp sentences, to configure security, application pools and much more you should just google and read a bit of basic IIS doc.