How to publish asp.net website? - asp.net

I have created a web site in asp.net with sql database. I want to publish it. I searched on google but it is showing me to publish site on iis. But I want to publish it online like www.mysite.com.
How can i publish my asp.net website like above.

ASP.NET applications can be only hosted in IIS Server.
So you need a web server to publish your website.
Then you need to purchase a domain name like "www.mysite.com" from any vendors.
Then you can easily map the purchased domain to your published site in IIS.
Hope this will help you..

i found this on the with a quick search:
https://www.youtube.com/watch?v=fWLCZukjPz0

Related

Same domain for wordpress and asp.net mvc

Let's say I have domain "mysite.com". I want to go to wordpress site when I'm on "mysite.com" and do asp.net mvc when I'm on "mysite.com/app".
Is it possible? (Hosting that I consider has iis and wordpress installed)
Let's say I have domain "mysite.com". I want to go to wordpress site when I'm on "mysite.com" and do asp.net mvc when I'm on "mysite.com/app". Is it possible? (Hosting that I consider has iis and wordpress installed)
According to your description, I suggest you could consider using add nested web application inside the workpress IIS web site to achieve your requirement.
More details, you could refer to below steps:
1.Deploy your MVC application to your server by using web deploy
2.Right click the wordpress site and click add application inside the IIS
3.Type in app as the alias and select the MVC folder as the physical path
4.Click OK
Result:
using windows IIS hosting you can get what you need.

Upload ASP.NET project to web

I created a ASP.NET project (without database) and now I want to upload it to the web.
I found a hosting server (x10hosting) and I published my problem through FTP to the server.
The problem accures when I'm tring to navigate into my website - all I get is tree of the elements that are in my project (aspx pages, bin folder, etc) and even when I'm clicking on one of the pages I just see the code I wrote.
If someone could explain how to upload ASP.NET project to the web that would be great :)
Thanks alot!
To host asp .net web application/website you need to select any asp .net hosting provider. I don't think x10hosting is providing asp .net hosting service, they are facilitating php hosting in free account . You can try to other free hosting site like https://somee.com/default.aspx.

Sharepoint site as a subsite under a asp.net site

I have asp.net hosted at my domain which i access using a url like 'http://www.xyz.com. I have other web applications which are under the root web application in virtual directories which can be accessed using a url like 'http://www.xyz.com/subsite1 etc.
Now i want to have a sharepoint site as a subsite under my root website which i can access using a url like 'http://www.xyz.com/sharepointsite1.
I have installed sharepoint 2010 server.This installed a new website Sharepoint-80 and The central administration site. I have changed the Sharepoint-80 website setting to point to wwwwroot where my asp.net wesite and its subsite files are located. Now if i make a new site collection in my sharepoint site and it gets successfuly created. But when i browse it i get following error.
HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.
My webserver is also a domain controller. How do i resolve this issue? And how do i achieve the main aim of having a sharepoint site as a subsite under my main website?
Thanx
I don't think that is possible, unless you are using different host headers or you can write an HttpModule which would be complex in my opinion. Although reverse is possible, You can have a sharepoint site at / and then an ASP.NET site at /subsite
The reason is an IIS SharePoint website is different from IIS ASP.NET website. IIS SharePoint Website registers an extra SPRequest module which fetches the data from SharePoint content database. When you request / , it will always try to pull this data from the SharePoint Content database.
In your case, where you have changed the SharePoint-80 website to point to wwwroot, you have essentially removed SPRequest module from the pipeline. That's the reason you get the error, because its not able to pull the content from the database.
You should do the other way around. Change main site to Sharepoint site, and let your other asp.net application/site to be subsite of sharepoint.
You cannot do that. Simply because you're trying to encapsulate a cloud-based system into an internal IIS folder structure.
You can not add Sharepoint online page in an iframe because of the same origin policy that most of the sites on internet adopted this days. This is mainly for security reasons to avoid from web attacks like Clickjacking and XSS.
You can not add Sharepoint online page in an iframe because of the same origin policy that most of the sites on internet adopted this days. This is mainly for security reasons to avoid from web attacks like Clickjacking and XSS.
If you want to display the content of the sharepoint online into different domain, than try to use provider hosted app in windows azure or develop a Napa sharepoint hosted app which can make cross domain requests in REST or ajax

how to make an web application in demo in our comapny web site

i have developed an web application[ERP FOR A SCHOOL].i have given the build for it is working fine, but now i need to provide this web Aplication in my company web site where user's[clients] can see the Web applicatin . now what is this web applicationis all a out. our application is developed using using Sql Server 2005, .net 3.5(vs2008).
now i need to provide an link button type in our company web site. once the user clicks that link button. a new window should open which will take us to the web Apllication demo[ERP School Application]
how to achive this. any idea how to get it done. what are the things that i should take care here
any help would be great
thank you
Create a new website in IIS and linking to it.
OR
Merge the website and application by:
Completely merging then into one system.
Creating a virtual directory for the application.
Making the Application the WebSite/Root application and creating a virtual directory for the website
Whole this setup fully dependent on which platform your web server is?
sceneario1: company web server is on linux
1. You need to get permissions from you web administrators for editing pages and server login and passwords. You can use telenet to login on your company web server
2. Create a new IIS (internet information server) on seperate windows m/c. setup this server with sql and web address. look in http://support.microsoft.com/kb/323972
3. Add this new web address in your company web page as link.
sceneario1: company web server is on windows
1. You need to get permissions from you web administrators for editing pages and server login and passwords.
2. Check if sql is available on server
3. create new folder and put you whole web project in it.
4. Edit existing page from web.
This will not mess up any thing on your company server.
Er, why can't you just create a virtual directory or a new site in IIS and put a link (with a target="_blank") to it on the parent site?

How to manage IIS from web page

I have the need to add Host Headers to an existing web site in IIS. I want to be able to add this host header via a Web page, ASPX page. Also, I want to able to create a new web site from file.
Sample code?
How to do I manage security issues, what issues should I be concerned about?
How many host headers can a single web site have?
I am using the ASP.Net membership provider on the site.
Server is running IIS7 and Windows 2008 Server.
WMI is the best way to create website from your pages, I have used it and had referred http://blogs.msdn.com/ramesh_r/archive/2004/03/24/95109.aspx link.
This is really a cool link to understand/ learn WMI programming.
You can download WMI code generator from http://www.microsoft.com/downloads/details.aspx?FamilyID=2cc30a64-ea15-4661-8da4-55bbc145c30e&displaylang=en
IIS 7 Has a managed code API which should allow you to do what you need.
Take a look at the API documentation from Microsoft, here: http://msdn.microsoft.com/en-gb/library/aa347649.aspx
This blog may be useful, too.

Resources