As per my understanding Visual Studio has a default Deployment Server for ASP.net sites, what should be done if i need to access this site on intranet.
I created a web site in Visual Studio 2010 using asp.net and vb this works fine on localhost but if another friend of mine tries to access it from his pc (he is in the same netwrk) he gets access denied error.
Queries -
should there be a external server whr i should host this site
which is bttr IIS or apache or mono or something....
is there any other way pf remotely accessing this site
You have two options.
Set up IIS on your computer. http://www.youtube.com/watch?v=vBNoTK31zPo
You can set up a virtual directory that points to your project folder.
Use a proxy if you don't want to or can't set up IIS. Remote machines cannot connect to Visual Studio web server
Related
i make a web application in asp.net and this application will run on multiple computers on small network without server client ... and i need to run it without using visual studio
because the user is not asp expert ... so how to do that ??
is there is a way to make a virtual server or to run localhost ??
my web application within this path :
C:\Users\Samy\Documents\Visual Studio 2010\Projects\Redcrescent\PrecompiledWeb\Redcrescent
login.aspx the firstpage
You can host the web application on your local machine.. yes, you will need to set up IIS and configure it to do so. Then you would publish the web application to IIS.
You can google how to set up IIS on Windows 7 or whatever operating system you have.
This link will help as well.
I have developed a ASP.Net MVC 4 application with Visual Web Developer Express 2010. It was successfully published/deployed to a remote server A (development server) using the Web Developer's built-in publishing tool and it works perfectly on it IIS 7.0 with the web deployment component.
Now I want to deploy it to another remote server B (production server). This one sits in an isolated environment and does not have Internet access! Even if server B is a replica of server A, its IIS 7.0 does not have the web deployment tool component installed. So the built-in publishing tool does not work for the web deployment option.
I then tried to publish it using the File System option. I copied the exported files to a new folder on IIS on server B. The folder was configured the same way as its counterpart on server A. I tried the URL on server B and it just gave me directory/files listing on the browser instead of the welcome page of the application.
Has anybody got the experience or tips to solve the issue? Thanks.
Cheers,
Alex
edit:
because it a MVC site, the default document doesn't apply. check the following steps:
IIS Extension Less URLs are enabled and allowed.
ASP.NET 4.0 is installed and registered. C:\Windows\Microsoft.NET\Framework\<version> and then aspnet_regiis -i (this will typically force IIS to use the MVC infrastructure instead of using the default document methodology)
Ensure App Pool is in 4.0 Integrated mode.
Ensue that the IIS Advanced Settings for the website are showing the right root folder path.
I am new to asp.net development. While running asp.net application visual studio first starts asp.net development environment and the application is hosted in localhost. Can we access the application (Web page) from other PC in the same network like we could do for the application hosted in IIS?
Is there any special configuration required in VS(we are using VS 2010) for that?
Thanks & Regards,
Arijit
No, you cannot. The best way is to create a new website in the IIS and to host your application there. In this way it could be accessed from the local network via the PC IP address. Just make sure you enable external connections on port 80 via your firewall/antivirus settings.
I have hosted a website (ASP.NET MVC 4 Project) on IIS 7, and I can browse perfectly fine in the server.
But when I try to access the same URL from my local computer in my broswer, it is not working, but I am able to ping the server from my local machine.
I'm new to IIS7, and I'm more of a developer then a administrator.
Can anyone help me out?
The way of deploying the MVC application is quite different.As its working fine on IIS,then it should be accessible through same system's browser.
There are only two cases in which the application can be accessible through IIS.
1.IIS with shared environment or on same network place.
2.IIS which connected to the same system.
So if its deployed on the IIS of the same system through whcih you are accessing the application using browser,then it would be accessible through browser.
Visual Studio 2010 / ASP.NET project / ASP.NET Development server
I can run and debug my VS2010 ASP.NET project from my development computer (where VS2010 runs). URL: http://localhost:port/MyApp.htm works fine.
Since I want to test the application from an IPad as well, I need to call the application with its IP address such as http://192.168.0.132:port/MyApp.htm
To my surprise this does not work, neither from the IPad, nor from the dev. computer itself. It is not a matter of connectivity, the address is correct / ping is possible.
(Note that I have no IIS installed on this machine, actually the ASP.NET application is plain HTML+JS, I use VS2010 just for debugging.)
Any workaround for this?
The Visual Studio Development Server will only serve pages to the local machine:
From Web Servers in Visual Web Developer:
If you cannot or do not want to use IIS as your Web server, you can
still test your ASP.NET pages by using the ASP.NET Development Server.
The ASP.NET Development Server, which is included with Visual Web
Developer, is a Web server that runs locally on Windows operating
systems, including Windows XP Home Edition. It is specifically built
to serve, or run, ASP.NET Web pages under the local host scenario
(browsing from the same computer as the Web server). In other words,
the ASP.NET Development Server will serve pages to browser requests on
the local computer. It will not serve pages to another computer.
Additionally, it will not serve files that are outside of the
application scope. The ASP.NET Development Server provides an
efficient way to test pages locally before you publish the pages to a
production server running IIS.
The ASP.NET Development Server only
accepts authenticated requests on the local computer. This requires
that the server can support NTLM or Basic authentication.
If you wish to test pages remotely you will need to use IIS or IIS Express.
I ran into this same problem and found a great solution. You can use SPI Port Forwarder (or a similar tool) to forward outside requests to the VS development web server. It works great and you can turn it on and off as needed.
Check out the info here:
Accessing the Visual Studio ASP.NET Development Server from iPhone & iPad
http://opensource.oxyva.nl/simple-development-proxy seems to work around Visual Studio Express 2012 for Web not allowing connections from other devices like iPhone, iPad etc. which result in "HTTP Error 400: Bad Request - Invalid Hostname"
There seems to be another solution as described in: visual web developer Web service on debug HTTP/1.1 400 Bad Request
You need to set up a WebSite in IIS, and deploy solution to virtual directory for the application to be accessible through an IP address outside of localhost(127.0.0.1)