So I am very new to web hosting. I am simply trying to host my asp website locally, but when I try browsing through IIS it just loads and never shows anything.
Here it is in the directory:
And here it is in IIS:
Then I just started the application pool and then clicked browse. Am I not doing something right?
You need to use a browser to view your website locally. Not the file explorer.
You can try localhost as url first, if that does not show your site follow the steps below.
Open the hosts file, located in C:\Windows\System32\drivers\etc
(it could be read only so you may need to change that attribute)
Add a line to this file, eg 127.0.0.1 www.medwebtest.com and save
Right click medwebtest your website in IIS left pane and select
edit bindings
Add the url www.medwebtest.com to the site as a new binding.
Reopen the browser and navigate to your new url.
So the solution I ended up going with was installing UltiDev and running my webpage from that. Honestly it felt far easier to use. I just installed it and selected my files and it worked. I was hoping that's how IIS would work but it still kept throwing errors for me.
I had a similar issue, on my new installation of windows.
turns out that I have not installed features for IIS using the following screen
Once the features have been installed, the website started working again.
Related
I'm trying to deploy an ASP.NET application to localhost using IIS, I've been reading a LOT of tutorials and following them step by step but I just can't seem to make it work...
I created an Application Pool(TestPool) with .NET version 4.0 and gave it every permission to the folder where the application is at.
I then added an application to the Default Web Site and tried to run it at
http://localhost/TestApplication/
But I keep getting:
Any idea what is wrong and how can I solve this?
Versions:
IIS version: 6.2
OS: Windows 8.1
VS 2013 Ultimate: 12.0
VS .NET: 4.6
PS: It's my first attempt at deploying an ASP.NET application so if you need any further information just leave a comment.
EDIT:
It is now running at least thanks to Julian and Marge, but when I run it using VS it has the default view, why isn't it showing when I run it through IIS? When running through IIS it just lists the files:
This error is because your website, in the IIS Server, does not have the Directory Browsing enabled and the default document (default page of the site ex: Default.aspx) configured.
Go to IIS Server IIS > Default Documents and check if the default page of your site is listed, if no, add the page.
Check the related link:
https://support.microsoft.com/en-us/kb/942062
Generally speaking, you do not need to access IIS manager at all to run your webpage on localhost. All what you need to do is right click on the project and then choose properties. In the Web tab you will find Servers section. Make sure the Project Url is something like http://localhost/myproj or simply http://localhost/ then hit Create Virtual Directory. Your webpage should be up by then, and you can access it either in debug mode, or simply by navigating your browser to the Project Url you have chosen.
When you add web application in IIS ex.
That your hostname should be to add in host file which is C:\Windows\System32\drivers\etc"\hosts
ex.
127.0.0.1 test.pln
I've been new to silverlight applications and trying to figure out this issue for past few days.
I tried creation a silverlight application in VS 2012, there are two separate projects created,
With Xaml files where the actual content exists
The .Web project where the .xap file is created.
When I tried running this through VS with breakpoints in the first project through IE the breakpoints were connected quite well.
When I tried hosting this project on IIS and tried running it on IE, it worked. (I hosted the .Web project only)
While I tried browsing the silverlight app from IIS and attached the process to IE with type silverlight,x86 in VS with those breakpoints in project 1, I was unable to hit them.
Please help me to debug my silverlight app when I try to browse it from IIS.
I tried everything I could think of so far. A hint would really be helpful.
Thank you.
Phew, finally this is fixed. Everything was precisely as it was supposed to be, I just missed out on the flow that was necessary. Below is the approach to debug silverlight app through IIS
Create a new silverlight app in vs
build it and create a new website in iis
in website add the silverlight.web project
add breakpoints in silverlight app from the same path as hosted in iis
browse the aspx page of .web from iis
click on attach to process (while the aspx page in running in IE) and search for iexplorer with type silverlight,x86 and click attach. (Make sure you're running VS in admin mode).
Refresh the IE page, and voila you have what you want.
So I'm trying to publish my .net application using Visual Studio 2015, and every time that i upload the files to the website, and then I enter the URL to my browser, it just automatically downloads the .aspx file instead of showing it like it should? What should I do?
I am "publishing" the application by simply zipping up the entire project and unzipping it to my public html. I have tried "publishing" using the FTP, and the result is the same when I zip and unzip on the website file manager in the control panel.
I have managed to run and execute it using IIS (Internet Information Server), and it works with no flaws! Though whenever I copy the files over to my web host's control panel (cPanel via TrentaHost), the website does not work.
This has been bugging me for about 3 weeks, if anyone has some knowledge please help me out!
Here is a link of what I am working on http://www.liverytrader.com/Default.aspx
You're using cPanel:
cPanel is a Linux based web hosting control panel that provides a
graphical interface and automation tools designed to simplify the
process of hosting a web site.
It means that you're hosting on Lynux, which doesn't support ASP.NET.
You need to find ASP.NET hosting to publish ASP.NET application.
You probably need to register asp.net with iis in the command prompt by running this command:
aspnet_regiis -i
Read about it here
I'm a little confused, since a day or 2 i've been programming with visual studio 2013 web express. i've made a C# web form (.aspx). i used to program normal html/css in Adobe Dreamweaver.
But unlike a normal .HTML document i cannot find a file to just click and open in my browser. and so i do not know how to upload my project to my hosting server. when i debug it, it shows up in my browser and it tells me it is the file with .aspx extension but when i try to manually open this file it just tells me there's something wrong with my page (incorrect code etc.)
Anyone can tell me how i do this? could not find a solution in google so i thought i'd give stackoverflow a chance :)
Thanks!
Gr.
First off, a website programmed with ASP.Net requires Internet Information Services (IIS) to run.
Visual Studio has its own built-in mini version of IIS for development, but to deploy to production you'll need a Windows Server with IIS. You should check that your hosting provider supports IIS before you do anything else.
Assuming you have IIS running, and you've configured a website in IIS with an empty directory, ready to host your project there are a couple of different options you have for deployment:
Just copy everything in the website to the server (all files & folders). This is simplest, and allows you to tweak things on the fly, but is the least secure.
Use Visual Studio's packaging and deployment utility. Not much to say here, other than read the manual.
The .aspx pages, .ascx controls, the bin folder with your .dll files, web.config, App_Themes, App_LocalResources, etc. And then you'll need to set up a new web site on IIS.
I have a website project and it was all working fine until I updated my OS to Win8.1 this morning. This also included VS2013 which I used earlier as well but on Win 7. I had to configure the IIS Express to use proper authentication settings and allow parts of config file. That out the way, I fired up a website project and it had lost its baseUrl property ie. everything crashed. We have to use baseUrl as we use it in production sites like www.xyz.com/myApps/Calculator & www.xyz.com/myApps/RaiseABug etc.
Since, the project does not run in VS2013 at all... I did a bit of research and found this :
http://connect.microsoft.com/VisualStudio/feedback/details/793989
and
http://forums.asp.net/t/1978467.aspx?Can+t+change+URL+for+ASP+NET+website
but none of them really answer the question. And the workaround in my first link doesn't work. The option to set the baseUrl is greyed out and changing it in the solution file doesn't get affected.
So, may I take this opportunity to ask you.. HOW DO I CHANGE THE BASE-URL and GET IT TO WORK WITH IIS-EXPRESS
This image shows what I get when I try to edit the url from the VS2013 front-end.
To specify the remote Web server for a Web site project
In Solution Explorer, right-click the name of the Web site project
for which you want to specify a Web server, and then click Property
Pages.
In the Property Pages dialog box, click the Start Options tab.
Under Server, click Use custom server.
In the Base URL box, type the URL that Visual Studio should start
when it runs the current project.
http://msdn.microsoft.com/en-us/library/vstudio/ms178108(v=vs.100).aspx
If that option is unavailable, check this article
Make sure you have most recent release of VS.NET 2013
Modify *.sln file (as described in the above link) and add required url and set UseIISExpress to false