publishing website to the server - asp.net

sir,
I have copied the asp.net website in to www root of server from my local pc.then created a website in iis of server.Then publish the website from my local host to the server iis http path .But when browse the website is not displaying.
In my local host I could run the project in visual studio.But after copying it to server wwwroot or(E:)I can not run the project.
This message is showing " can not be opened because its project type is not supported by this version of application"
How can I solve this
Thanks in advance

You must have convert your web site to application.
GO to iis-> Click on Site Folder and Expend it -> Select your website folder-> right click on it -> and Choose convert to Application and provide the further information.
That`s it.

Related

Deploy asp.net on IIS 8

I'm trying to deploy a asp.net site on iis 8 but i'm getting an error.
Site is working in visual studio, deployment is done without error using a custom profile with file system as publish method. (Here is actually my first question, should I use file system?)
Build->publish site->(Custom profile, file system, release)
Well, the site is added to selected folder which I've set up in IIS. I host several php pages from this folder whithout problem. But when I try to url forward to the new site I get this error: Given URL returns 500
I'm using IIS8, .tk adress through a dlinkddns.com adress
Any ideas?
Edit: added picture
What should I choose here if i'm hosting the page on the same computer? (I tried File system for now)
The error I get when I'm opening default.aspx
To deploy a website into IIS8 from Visual Studio, use 'File System' instead of 'Web Deploy', and put in the directory of where you want to publish your site.
Right-click your site name on your IIS 8 manager, select 'Add Application', and select the folder where you published your website in your physical path.
Click on the application under the website, then click browse, and you should view the website on your browser.
You can look at my question on how to create new website under the title, 'New website not showing default page in IIS 8.5'.

How to publish the Website

I have done a Web Application project in Visual Studio 2008, In Solution Explorer I click on publish Website.
The published website is stored in the Location C:\Users...\Documents\Visual Studio 2008\Projects\Online Registeration.
Now what should i do to access that application...?
I was totally confused, can i copy the Online Registeration project in to WWWROOT folder or anything else...
Could anybody tell me....
You need to host this website on a web server like IIS.
Open IIS manager on your machine by typing inetmgr command in Run window
IIS 7 or above: Right click the server node on the left --> Add Web Site. You need to set Physical path to where this site is published, probably inside wwwroot folder, because this folder has got all the permissions to run the website.
IIS6: Server Node --> Web Sites --> New --> Website
Set appropriate header in Host name and you'll be ready to access the site using this host header.
There is an automatic way to publish whenever you build the site in visual studio 2008, follow this answer

Deploying WCF webservice to IIS

I'm trying to deploy a wcf web service to IIS 7.5. Is there anything special I need to do in order to make this work. I keep getting 404 error when I try and run the web service. I can't seem to pull up the wsdl file either.
These are the steps I've taken
Right-clicked on web service project and published to local folder
Copied contents of publish to IIS server
Setup a new website that points to folder with webservice files
set binding to match web.config binding (port #)
Is there anything I missed or overlooked. Shouldn't I be able to run that web service from IIS and load up the wsdl file directly on the server. When I test in visual studio, it handles the loading of that host program.
Apparently you have to load the .svc file path which I was not doing.
Just to expand on this a little, since this question got me started but there were a couple of extra steps I had to take:
In VS2012 right click on the web service project and select Publish
Publish to file system by selecting a directory to publish to
Copy the folder contents into a folder on the server
In IIS create a new website, its physical path being where you just copied the published contents to.
Set its app pool appropriately (probably .NET 4.0)
The binding port should be the same as in the web.config as should the name. So if you've been working locally and your web.config reads "http://localhost:12345/MyService" then hostname is "localhost" and the port is 12345
You can then browse to the webservice by right clicking on the website in IIS -> Manage Website -> Browse. Click on your service name.

Working with .asp and .aspx pages

This may be the wrong place but this is new to me. I did some ASP.NET programming in VS.NET awhile ago and I always did debug in the menu to run and test the site and I always noticed that it compiled ... now I have someone having asking me to work on their ASP.NET website and my question is (new to this type of hosting) do I just edit the files and then upload them via FTP or do I have to ask the host to do a compile or something?
I'm assuming you have developed a project in Visual Studio.
If this is a Web Site and not a Web Application:
Right click the project (not the solution) in the Solution Explorer.
Click "Publish Web Site"
Set the local location of where you want the Web Site published to.
Take the local copy and upload it to your web root of your hosting provider
If this is a Web Application, check to see if the hosting provider has a .axd service extension for "One-Click Publishing". If the provider does not have this feature:
Right click the project (not the solution) in the Solution Explorer.
Click "Publish..."
Change the Publish method to "File System"
Set the Target Location and click Publish
Take the local copy and upload it to your web root of your hosting provider
With Web Applications you also have the ability to upload via FTP, which if you have all of the FTP information at hand it should be easy enough.

asp.net website deployment in IIS

I have a very simple website which displays Hello World. I tried to deploy this project on the server. These are the steps I followed:
Copy the folder of the project to inetpub/wwwroot folder.
In IIS management, created a website. Gave the path of the website from step 1.
Gave the application pool as .NET 3.5
After doing the above, while browsing the page, I received the error- Type not found in web.config.
Check to see if you can browse a simple image there. that is, copy a jpg to the root of your web site and try to open it.
paste your web.config, that would be a help.
(app pool is set from advanced options in inetmgr program)
Add all website(or application.exe) files to the IIS Virtual Directory instead of wwwrootfolder. (IIS virutal directory is created by you while configuring IIS server)
Or
New Website
Under Locations Click on "Browse"
Click on "Local IIS" and then select the "IIS Virtual Directory"(IIS vitual Directory which is directory created by the user while configuring IIS server)
Open manually using Explorer drag and
add all you files to the "solution explorer"
then "Yes to all"

Resources