how to create a link for an asp.net website? - c#

I have created a website using asp.net c# for my college library,i have completed it with all their requirements.I know setup files cannot be created for asp.net websites,so,now i need a way to at least create a link for the website,so that they can access the website from anywhere in the college systems and use it.I have tried deploying and publishing nothing is working.I need any other ideas.

Make sure that the web server you're deploying on is publicly (or at least locally within your college network) accessible. If it is, then accessing a particular website is just a matter of sharing its URL with others. You don't need a SETUP for it.
Note that what you see in a browser when you press F5 is most likely an instance of the built-in "ASP.NET Development Server" that is accessible only on the development machine. You need to deploy your site to an instance of IIS (or some other equivalent) to access it from other machines.

There are 2 steps that you need to perform.
Publish the website
Hosting
You can do it either in the IIS of local domain server to be accessible within the network
OR you can purchase a domain and host it on server to be accessible from anywhere.
You can see this on how to host application in IIS 7.

There are two types of deployment
Local
Global
Local Deployment: Download Cassini Web Server , Install it and Configure the WebApp or Website on that. It will give you the Network Url. Use that url to access it from anywhere in your local network.
Global Deployment: Go to Domain and Hosting Provider, purchase domain and link that domain to webspace and hosting that will Support .Net framework. Generally all windows based hosting now a days have IIS. Do not go for LINUX ,as you need MONO there which is generally not available. Upload you publish pages in the root of our virtual directory. In most of the hosts its httpdocs and some where have wwwroot, depending upon the control panels. Access that pages from the domain name.

this website provides all the details step by step!! its awesome it worked for me :)
http://www.programmerfish.com/how-to-deploy-asp-net-web-application-on-the-network-in-windows-7/

Related

Installing Wordpress in a Sub Directory in windows server along with asp.net

I have deployed asp.net based website to domain e.g xyz.com.
I want to manage the blog site of the website via WordPress cms. So I have created a folder by the name of "blog" in the base directory and installed WordPress in it. WordPress installation is working fine on the local host. But when I try to access it via domain link xyz.com/blog it gives 404 error because every request is managed by asp.net MVC. I want to ignore the xyz.com/blog route not to be managed by asp.net MVC.
I am not sure where I should do that kind of configuration in IIS or any rules rewrite.
Because you are getting 404 error, Can you please check your ASP.NET Applications Directory Browsing Settings. Please enable it and check again. Moreover Sometimes due to Application Pool (Integrated/Classic) you may get this type of error.

Hosting websites with different portnumbers in ASP.Net IIS server

I have just begin using ASP.Net Web application in Visual Studio. What I want to know is that I have two web pages namely index1.aspx and index2.aspx. I want to host them separately using different port numbers in local host on the iis server. I know site binding is used in these cases but not sure how to go about it.
What is the best way to do this? I want them to run simultaneously and communicate between each other.
In IIS there is something called Virtual directory. You can create two web applications in IIS and make both pointing to same physical location on your system.
You can also update settings of each web application to have different index pages. i.e. web app1 shall use Index1.aspx as index page, and web app 2 shall use Index2.aspx.
Virtual directories are so cool, you can use the same code base for multiple tenants. All we have to create is new web apps or sites in IIS.
So I solved it like this:
I created two projects WebApp1 and WebApp2 in the same Solution.
Right Click on Solution Explorer--> Properties--->Select the radio button with Multiple Startup projects.
Also make sure The Action of atleast one of the projects is set to Start only . The rest can be Start Without Debugging.
To connect IIS to your web application say webapp1:
Reference this video:
https://www.youtube.com/watch?v=IwbKquNBNgQ
Hope this helps anyone who is trying this out.

C# .Net IIS Applications within Application

In my organization, there is a process where in for every new website/application to be added into the IIS, we have to go through a 6 weeks complex process and waiting. Even after the process completes the team will not have access to IIS. We can only deploy the build files using TFS, web deploy etc.
I have initiated the process for my first application/site in the IIS. I wanted to know if there is a way I can avoid future request/process for new application, by making this upcoming application an application of applications :). Something like child applications. But remember I do not have IIS access. I still have access to my application's web config. I also have the freedom to manage URL structures/patterns.
Either by using multiple routes, multiple projects etc. Just thinking loud. My applications will be of type web api, mvc etc
Any crazy ideas? Thanks in advance.
You can have several application roots in IIS, which can be virtual or real directories, under the same site.
Those separate applications will have separate configs and will not inherit each other's settings.
You can access your apps under the same domain, or to be configured to use different domains
http://www.domain.com/app1, http://www.domain.com/app2
They can share the same app pool or be configured to use different.
Since you don't have an access to IIS, I'm not sure how would you configure the app pool or domain, but perhaps Microsoft.Web.Administration namespace will help doing this from code. It contains managed classes to manage all aspects of IIS, including the configuration . It can be used from .Net or from PowerShell.
Creating Sites and Virtual Directories Using System.DirectoryServices
Using IIS Programmatic Administration

Combine two asp.net web site into one

i am new in asp.net i dont know to how to combine two asp.net web site into one like domain and subdomain concept.
i know the procedure to host one web application in local iis. Please explain the how to combine two application and how to host in local iis i.e) single url as domain(one web application) and subdomain(another web application).
The url should be like these:
http://localhost/firstapplication/
http://localhost/secondapplication.firstapplication/
Thanks in advance.
I'm not 100% sure I understand your question but I think what you want to do is setup a host header for 2 different applications so that you can access them from the same IIS instance. Here is an article that shows you how to configure the hosts:
Using Host Headers to host multiple websites on IIS 6.0
If you are testing this locally you probably want to make a host file entry to simulate the environment.
If you want it to be localhost/firstapplication and localhost/secondapplication.firstapplication/ then you could create a virtual for each application. Here is how you can do that:
How To Create a Virtual Directory in Internet Information Services (IIS)

Publishing a .NET C# website to an external server

I have just completed my first aspx/c# project using Visual Web Developer Express and consuming some custom controls and external web services. It runs fine on my development machine.
If I now want to test this on a shared hosting account, do I just upload all the files with the current project structure? Will there be any problem uploading the DLLs to a shared Windows hosting account? Anything I should be aware of or changes to be made to the code? Can anyone recommend a cheap and good provider (this is just for testing - no mssql required yet).
Thanks!
Does visual web developer have a "publish website" menu item under the Build menu?
If you want to pre-compile your site and publish it with all dependencies the easiest way I've found. You can then choose to publish it to either an FTP site or the file system. I usually choose the filesystem and then FTP it up myself to make sure I don't overwrite any config files.
If I'm working on a low volume site for a client and performance isn't a problem, I'll just upload my working directory right up to the server so I don't have to deliver the source code separately and I know they won't loose it.
Oh, and one other thing, if you don't configure it special, I would expect you will have to upload your site to the root directory of your hosting account. GoDaddy does have the ability to specify certain directorys as their own ASP.NET application. If you do that you can put your app in a sub-dir of your choosing.
-Al
It would depend on your website provider. You need to get one that supports the .NET runtime. Once you have that, then you simply upload your code and all should work. I personally use www.godaddy.com. You can see an example ASP.NET site hosted by them at www.chessbin.com.
I hope this helps.
Adam
The hosting companies may vary on what they require, but I would think a simple xcopy deploy would be sufficient for most. Here's a link to one that seems to have good prices (disclaimer: I have never used them)
http://www.reliablesite.net/v3/index.asp

Categories