I've made a C# ASP.NET Application using VS 2013. What I want to do is use it on my localhost using IIS.
How do I do it work? When it go to localhost, it just appears a black page.
I've created a new site on IIS Manager and ponted it to de fisical path of my application. Registered the ASP.NET on IIS...
I've tried whats in the How do you publish an ASP.net MVC application from Visual Studio 2013 to your local network? .
So, I don't need to use IIS, I could use other web server, like Apache...
I want to be able to open Chrome, go to localhost:8080/ for example and get my application, without having to open VS and run the project etc...
Also, if other people could access the application on my local network, it would be great. I just want to use my MVC web aplication like it was on the internet itself, like I can access google.com and use it, but I want to do so in my local network only.
If I try to access a simple HTML file, using IIS, it works perfectly. Now I want to use my C# MVC web application.
Is there a way to do this? Using IIS, Apache, whatever...
Related
I have WPF application(.exe), which was hosted in my remote web server.
Now I want to access WPF application from my web page by clicking respective link.
Response.Redirect(WPFLaunchUrl);
By using this, I am able lunch application in IE. But whenever I am using Google-Chrome then application downloading into my local system instead of running application from Hosted URL.
Could you please suggest me on this.
I have this weired situation and want to understand why this is happening.
I have a .NET MVC 5 Application hosted in iis as:
Application under default website with a separate app pool.(default
site has other applications as well)
Separate Website (different app pool)
But some functionalities not work for the app inside default website, however for Separate website all functionalities work as expected.
The publish package is same for both of them. IIS: 8, Windows Server 2012.
I'm Trying to understand the reason, and is there any way I can fix this for default site?
Edit: Some functionalities include Undo process which involves changing the status in database table and deleting the file which is generated and saved on disk.
Thanks
Pratik
I need to implement a functionality in one of my web app in such a way that if i host a webapp in the IIS (let say
http://localhost/mywebapp
), it should also open through
http://localhost
I simply cannot install my web app on the root web app i.e.
http://localhost
For this, I found a setting in web.config for IIS7 named as HttpRedirect. Which i set programatically during application installation.
But, I wouldn't able find the same setting for IIS6 which i can set programmatically. I found a solution through which it can be done but its manually. http://www.serverintellect.com/support/iis/iis-url-redirect/
Any idea on how to create this programatically in IIS6.
I am using c# as a language in .net4.
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/
Hi i am trying to write a silverlight applicaiton on Facebook. I am using Visual Studio 2010. I have created a silverlight application and VS created a test page for it automaticly. I can acces and test my application on localhost (I have installed iis7 with default settings on win7x64 fresh install). I am publishing the test page to wwwroot and everything works on localhost. But when i try to access my application from Facebook i am getting this error:
"HTTP Error 405.0 - Method Not Allowed
The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used."
But if i create a ASP.NET application and publist it same way it works.
So what sould i do?
Best reagrds
Olcay Ertas
Have you tried spoofing your host? I do not know if it is the case anymore, but in the past, Facebook refused to interact with http://localhost/. By editing my hosts file, I was able to get Facebook to interact with my local environment without having to push to a publicly accessible server.
Just edit your hosts file, putting in something like my.localhost.com, restart your browsers, and put that domain in to your Facebook app. It could work... apologies if it doesn't.