Hosting a Web Application on a local server - asp.net

I have an application developed in asp.net. I'm trying to host it on a server so that my manager can access it from a different location. Since I'm not aware of how to process this, any help would be highly appreciated.

If you're using web server IIS In the first step you need to :
Start menu write >> inetmgr
going to control panel and click administrative tools > IIS
Open IIS ->SItes --> Add web site and enetr the site name click OK
you may click on the Advance Settings. from the right panel and modify some settings that you want to modify. In general it is not needed and you can keep it default.
Now, your website is ready to be browsed, you can right click on the website name (SampleWebSite in my case) and go to Manage Web Site > Browse and you should have an Internet Explorer window open displaying the default page of your website or web application. I suggest you to hosted with asphostportal.com because they are cheap and their support will help you.

Related

Accessing a deployed website on IIS on a different machine on the network

I just deployed a website on IIS. After clicking on the browse button. The following url opened up
http://localhost:8080/
On IIS Manager this is what it looks like
Sites
|
|_Kites
|_aspnet_client
|_bin
|_...
My question is how do I access this website on a different computer now that it has been deployed on IIS
I tried this url.
http://10.xxx.xx.51:8080/
However when I try this url I get the error site cannot be reached.
Any suggestions on why this might be happening ?
This is what my bindings look like
Have you set Edit binding option in IIS server ? if not then do this.
You have to go to Edit binding option in IIS server and Add Site binding. their you have to choose your ip address and port as well.
Now you have to go to Windows Administrative tools and go to Windows firewall and advanced options then this window opens
Now go to Inbound Rules on the left corner then this window opens
Now click on New rule now this window opens
Now choose port and click next then this window opens
Now specify the same port as you have set on edit binding in IIS and click next then
Now, no need to change and option on this page and next page also just click next and then
Now enter the name of the rule and description and click finish...Its done.
You can access it on different computer...
Hope, this will help you.
If you find it helpful please mark my answer....Thanks

publish a release version of web site

I have a web site that is created in visual studio 2010 through: File > New > Web site (it is not a Web Project).
I want to publish a release version of my web site but there is no 'Release' mode in VS and there is no possibility to add 'Release' mode through Build > Configuration manager.
How can I publish a release version of my web site ??(I can not convert my web site to a Web Project)
Thank you very mush for your reply.
When you have a website project and your using VS 2010 then somewhere amongst the menu options in the menubar across the top should be an option caled COPY WEBSITE (I think its in the website menu).
So you click WEBSITE > COPY WEBSITE then you will see a new tab appear very similar to an FTP kind of interface, with your LOCAL files on the left and the remmote server hosting on the right.
You could use either FTP or Direct upload but the very last time I could only use it via FTP.
(Of course this may be a personal issue and not affect anyone else).
It goes without saying that if you dontr have a server to upload your website to then it can not be "released" as you called it.
Usually the server or hosting is either on your own server or on a remote (Paid for) server with a service provider.
With reference to the photo below....
Area-1 is where you enter the FTP or HTTP address of the server where you will upload te files.
Loacl-Files This shows your completed website files
Remote-Files This shows the files on the server
Controls These button are used to upload or download files to and from the server
Note that you must have an FTP username and password to use FTP/HTTP transfer,
Some hosts may prefer you to use your admin account username and password.
Hope this helps point you in the right direction

Getting You do not currently have a default Web page established for your users. when running VS2008 solution

I have website in VS2008. Created the Virtual directory in IIS 5.1. When I try and run the site to debug from Visual Studio I keep on getting:
Your Web service is now running.
You do not currently have a default Web page established for your users. Any users attempting to connect to your Web site from another machine are currently receiving an Under Construction page. Your Web server lists the following files as possible default Web pages: default.htm,default.asp,index.htm,iisstart.asp. Currently, only iisstart.asp exists.
To add documents to your default Web site, save files in c:\inetpub\wwwroot.
I have no idea why this is happening.
Can anyone help me?
If I understand correctly, it may be as simple as this:
In Solution Explorer, right-click on the page you want to be the default page and click "Set as Start Page".

setting up site in windows 7 for asp.net application

Bought a Win 7 64-bit machine and installed vs2010 and things are fine.
Now i want to create a site in IIS for one of my asp.net application, so that i can access and get the site served from IIS rather than from WebDev.Webserver.exe.
Googled a lot, but haven't find a solution. Can any one help me on this.
Not sure if you have IIS installed but here is how to do it. Provided you have the correct edition of Windows 7 (Professional or Ultimate).
Summary:
Start > Control Panel > Programs
click on Turn Windows features on or off.
Check the box for 'Internet Information Services (IIS)
Once installed you can follow the steps included on the microsoft website. This should get you up and running.
Summary:
Open IIS Manager.
In the Connections pane, right-click the Sites node in the tree, and then click Add Web Site.
In the Add Web Site dialog box, type a name for your Web site in the Web site name box.
Click Select if you want to select a different application pool than the one listed in the Application Pool box. In the Select
Application Pool dialog box, select an application pool from the
Application Pool list and then click OK.
In the Physical path box, type the physical path of the Web site's folder, or click the browse button (...) to navigate the file system
to find the folder.
If you do not have to make any changes to the site, and you want the Web site to be immediately available, select the Start Web site
immediately check box.
Click OK.

How to set up a asp.net application on IIS

I've copied a whole folder which keeps a website inside from a web server to another computer.From the original server I can easily run the web application. Now I need to know what exactly I have to do in order to be able to run the application on the second computer too. I think there are some special considerations with IIS. What and how do I have to set up in IIS?
Follow these steps.
create a new site from left menu By right clicking and add new website.
Give physical path to that folder
Map with the site url
Give permissions to Directory as (like everyone)
Set up the default page if (index page is not present in the directory)
Set framework which ever you are using.
Install the IIS Windows component for whatever version of Windows you're using.
Create a new site in IIS
Point this new site to your web root
Configure DNS for the site (maybe using your hosts file)
There are some considerations to make depending on which version of IIS you are using. It would be helpful to know if you are using 6 or 7.
If you are under 7, you need to copy the site to your IIS directory (typically wwwroot) and then setup the basic settings in IIS by choosing your application pool and such. Application pools are typically (but not always) setup by .Net Framework. You may need to setup your default page and set it as an application. There are many blogs and sites out there that will tell you how to setup this basic functionality but are specific to your application.
For configuring IIS
1. Firstly, in Programs and features go to Turn on and off windows features...in that tick everything under IIS..go to sub folder and tick everything everywhere
Go to Internet Explorer> Setting> Internet Options> Advanced> untick Show friendly http error messages option
Go to IIS manager
a. In default application pool> advanced settings > Set true enable 32-bit program option
b. Go to Asp> setting> expand debugging properties> there will an option of error messages some 2nd last or last option that would be false...set it to true..apply changes
Run vbscript and asp only in Internet Explorer (edge 10 in developer options for pop ups)

Resources