Debug Website On Host From Virtual Machine?

May 4, 2010

I have a Windows 7 machine hosting a Windows 7 virtual machine. I am developing a web application using visual studio 2010 on my host machine. I want to run the application in debug mode and access my localhost server from a browser on the virtual machine. (The purpose of this is to be able to debug an application that uses Windows Authentication using different users without having to log off and on for different users on my host machine...)

I am using a bridged connection for the virtual machine. I googled how to solve this problem and most of the threads that I found said that if I was using a bridged connection, I could access the server on the host machine by just entering the IP address of my host machine into the url in the browser of the virtual machine. I have tried some different urls using the IP but none of them have worked.

As an example, suppose I run my web application in visual studio on my host machine and its url is

http://localhost:62789/MyPage.aspx

Assume also that I ran ipconfig in CommandPrompt on my host machine and found out that the IP address for my host machine is xxx.xxx.xxx.x. What url should I enter on the virtual machine to access my web application?

EDIT:

I set up IIS to host the web project. After that, I just added the following line (xxx.xxx.xxx.xxx is my IP) to my hosts file and I was able to access the website from the virtual machine:

xxx.xxx.xxx.xxx MyWebsite.net

I also had to edit my firewall settings.

View 2 Replies


Similar Messages:

Configuration :: Created A New Virtual Directory On IIS To Host Website?

Apr 11, 2010

I am developing an ASP.NET 3.5 website using Visual Studio 2008 professional on a Windows Server 2008 R2 machine. The website is hosted on the local machine IIS with no problems at all. I got a new server (Windows Server 2008 R2), I created a new virtual directory on IIS to host my website. When I try to publish it, I get this error: "The Web server does not appear to have FrontPage Server Extensions installed." I have searched online and it appears that FrontPage extensions have been removed from IIS 7.5

View 2 Replies

Configuration :: Debug The Website Always On A The Same Port Number On Local Machine In VS

Jan 1, 2011

I am developing a website in ASP.NET. I wanted to know how can I give a static path to my website on my local mahcine such that it will always be deployed on port number. For eg: in php, the path can always be http://localhost/websitename

but in ASP.NET, whenever, I debug the website for testing, it is always deployed to a new port number. This prevents me from testing my script which can only be given a static name in Greasemonkey.

View 3 Replies

C# - Cannot Get Ip Address On A Virtual Machine

Jun 3, 2010

so i have a code which gets me the ip address of a machine i am wroking on.

so if my gui is published on the server and i access it from my local machine it gives me tha address of my local machine and when i access the gui from the server itself it gives me the server address.. which is fine.

But when i put the gui on a VM server and run it from a VM server itself i dont get the ip address. this works fine if i access it from another machine but does not work only when accesing gui on VM server..

[code]....

View 1 Replies

Get The Host Name Of The Client Machine?

Nov 23, 2010

I am building an ASP.NET intranet application. I am trying to get the host name of the client machine. I have started off by using System.Net.Dns.GetHostName(); but this just seems to return the hostname of the server running the website through IIS. Am I using the wrong method or am I using this one incorrectly?

[Code]....

View 4 Replies

Iis - Viewing Development Server From Virtual Machine?

Nov 23, 2010

Microsoft recommends testing older versions of IE with the following virtual machinesThis is all fine and good, except that the virtual machines can't see the Dev Server from Visual Studio. This makes it very difficult to develop or debug since I have to copy or deploy to IIS for every little change I make. I've tried using ARR, but it seems it can only forward to one specific port at a time, whereas i need to have the port typed in the address bar of the virtual machine to match the port that it is connecting to on the host machine. Is this possible?

View 3 Replies

Virtual Machine Requires CppCodeProvider And VJSharpCodeProvider?

Feb 1, 2011

I've been dealing remotely with a weird situation with a Windows Server 2003 virtual machine that's running a ASP.NET 3.5 website... Or, at least is trying to run it.

The website was installed using the standard installer for the project, which has been used to install at several different locations. However, this one is behaving differently.

The website fails when it runs. In the Event Viewer, the following error is reported:

Exception information: Exception type: HttpException Exception message: The specified module could not be found. (Exception from HRESULT: 0x8007007E)

The error is reported on the website as:

Exception Details: System.IO.FileNotFoundException: The specified module could not be found.(Exception from HRESULT: 0x8007007E)

Running the fusion log viewer, I can see that ASP.NET is attempting to load the following assemblies:

CppCodeProvider, Version=8.0.0.0,
Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
VJSharpCodeProvider, Version=2.0.0.0,
Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a

First off, there is no reason why ASP.NET should be loading these assemblies. I can't find anywhere in machine.config or any other config where these assemblies are listed as required. We tried installing the 3.5 SDK, but neither was installed. I've only got version 10 of the CPPCodeProvider on my development machine.

What the heck is going on here??

NB: don't do a cursory google search and answer. Nothing I found applies. And if anybody answers

"Define DEBUG constant" and "Define TRACE constant"

View 1 Replies

Create Virtual Directory On Remote Machine?

Jan 10, 2011

I am able to create Virtual Directory on local machine, but I want to create it on a remote machine.

View 2 Replies

How To Sending Mail Blocked By Host Machine

Nov 30, 2010

Am using ASP.Net 3.5 with C#. Am trying to send email using SMTP server on button click. Mostly email is sent suceessfully. But sometimes am getting web mail exception error saying "Host machine software has blocked the mail".My web application runs behind a firewall.

View 1 Replies

Configuration :: Host Application From Local Machine?

Feb 1, 2011

I have to host an asp.net that user can access that website something like http://111.11.11.11/myapp/homepage.aspx. ( my ip address will be 111.11.11.11). All I have local IIS installed. I want that if any user clicks on the link. He should be able to access that web application.

View 9 Replies

AJAX Call Works On Local Machine But Not On Host

Apr 23, 2010

What could potentially stop an AJAX call from working on the host server, when it works fine on the local host? I tried returning an error from the AJAX call, but all I get is 'undefined'. I don't think the actual page method is being called since no information is added in my log (and I've explicitly added a call).

View 2 Replies

SQL Server :: Connecting To A Remote Database Located On A Virtual Machine On The Same PC?

Dec 22, 2010

I have a project that must illustrate that connection to the database is not locally, so I have install VirtualBox and I intend to install SQL Server on it. So any one have the idea of how can I connect from the Host Machine to the SQL Server located on the Virtual Machine

View 3 Replies

Configuration :: Web App Accesses Data Under Debug But Not When Published To Target Machine

Dec 4, 2010

I have a simple web app that queries a server based database. I have tested with both a simple MySQL table and Access tables. The problem is the same whatever 'backend database' that I use. When I run my web application under the VS 2008 debuger then all works fine. No problems with the code. I then publish my web app to either my local IIS or to a different PC's IIS on my network. I then get 'intermittnet' problems reading the data tables. The connection strings are fine. I get a connection. It is when I try and fill the tables that I get errors. The web app just seems to 'hang'.

If I publish to a different IIS on my network (on a different server) the I get the same problems. If I reboot the IIS machine then I seem to be able to get to my data for a while before the IIS seems to 'lock up' and I can't read data anymore. Is this an IIS/authentication/resource issue?

View 1 Replies

Configuration :: How To Change Automatically Compilation Debug=false On Production Machine

Jun 8, 2010

I have a development machine and a server. problem is that whenever I publish a website I need to change manually debug=false.....its frustrating as I am publish almost everyday new version.

can I change this programatically by HOST name?

View 5 Replies

WCF / ASMX :: How To Access A Wcf Service Hosted On A Server Running On A Virtual Machine On A Windows 2008 R2 Hyperv

Jul 14, 2010

I am trying to access a wcf service hosted on a server running on a virtual machine on a windows 2008 R2 hyperv. When i access this service when running my asp.net website through code everything works fine how ever when i deploy the application on the local IIS , in the deployed mode i am getting an securityaccessdeined exception. My Asp.net app is running on a IIS server on another virtual machine. The stack trace is as given below :

Environment Info: My asp.net app has built on .NET 4.0 framework using VS2010. My WCF services are based on .NET2.0 framework.
Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 14-07-2010 13:56:54

Event time (UTC): 14-07-2010 08:26:54

Event ID: dd1986e7e7dc4473beb908754c75a580

Event sequence: 4

Event occurrence: 1

Event detail code: 0

Application information:

Application domain: /LM/W3SVC/1/ROOT/StratosTest-1-129235696025728041

Trust level: Full

Application Virtual Path: /StratosTest

Application Path: C:inetpubwwwrootStratosTest

Machine name: MC-NEWCODE

Process information:

Process ID: 1752

Process name: w3wp.exe

Account name: IIS APPPOOLASP.NET v4.0 Classic

Exception information:

Exception type: SecurityAccessDeniedException

Exception message: Access is denied.

Server stack trace:

at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)

at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:

at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

at VMMService.IVirtualMachineManagementService.GetAllVirtualMachines()

at Default2.Page_Load(Object sender, EventArgs e)

at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Request information:

Request URL: http://localhost/StratosTest/Dashboard.aspx

Request path: /StratosTest/Dashboard.aspx

User host address: ::1

User:

Is authenticated: False

Authentication Type:

Thread account name: IIS APPPOOLASP.NET v4.0 Classic

Thread information:

Thread ID: 4

Thread account name: IIS APPPOOLASP.NET v4.0 Classic

Is impersonating: False

Stack trace: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

at VMMService.IVirtualMachineManagementService.GetAllVirtualMachines()

at Default2.Page_Load(Object sender, EventArgs e)

at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Custom event details:

View 1 Replies

DataSource Controls :: Can't Debug On Local Machine - Getting String Was Not Recognized As A Valid Boolean

Mar 15, 2010

I have a page that has been working for sometime and now getting this error..

String was not recognized as a valid Boolean.

Im was working on a How-To document of the pages for our VP and now i cant get to page 2 to continue the document.

I have recently added 2 new radiobuttonlists(rel and relst) and im sure its one of them thats causing the issue. But sicne i cant debug not sure which one is failing. Here is my insert code and the error is occuring on the Line 376:

cmd.ExecuteNonQuery();

The fields for the radiobuttons are all setup as BIT in SQL. They all have default values of 0. They are all setup NOT TO ALLOW NULLS.

[Code]....

View 2 Replies

Sub-Website In IIS - Create A Virtual Directory Under The Website Folder?

Jan 20, 2011

I have a asp.net website in the IIS which is available on internet as www.xyz.com now I have been asked to prepare another website which will be accessed via www.xyz.com/abc.

For this, do I need to create a virtual directory under the website folder XYZ in IIS? or is there any other way to achieve this.

View 2 Replies

Visual Studio :: Unable To Debug VB Web Projects On Local Machine / Security Exception Error

Dec 21, 2010

Basically what I am trying to do is have my webpage project folder located directly on my local machine (ex. Local #1). Our database is located on a server (ex. Server #1) . I am building my web applications on my local machine and then trying to debug them in Visual Studio 2008. Only every single time I click to debug my project I get a "Security Exception" error that looks something like the following...

"Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."

I'm somewhat leaning towards the fact that I need to connect to the database to pull information from it and I don't have the proper permissions is the reason why this is happening but I've also read that it can be something that deals with improper configuration of my Web.Config file (i.e. I do not have something enabled).

Note #1: A co-worker of mine is having the same problem if he tries to put the project locally and then debug it. He has full administrative access to the DB and everything else.

View 6 Replies

Configuration :: Website Within A Website Won't Display On Host's Server?

Feb 19, 2011

I'm trying to run a website (site2) that I've placed inside a folder (dir-site2) of another website (site1). The default file of site2 displays fine in every browser on my local computer, as in when I type http://localhost:45912/www.site1.com/dir-site2/default.aspx. But when I upload everything to my host's server and type this

http://www.site1.com/dir-site2/default.aspx I get a server "can't access" error message. I can't display any file that is inside the subdirectory, dir-site2.

View 2 Replies

AJAX :: Unable To Debug / Debug EditPanel.debug.js File Of HTML Editor?

Apr 13, 2010

I want to debug EditPanel.debug.js file of HTML Editor, but it never shows in VS 08 and Im sure it executes to that line.What I did to enable debuggingUnchecked both 2 checkboxes for disabling the debugging

Set ScriptMode="Debug"

Change following line

[ClientScriptResource("AjaxControlToolkit.HTMLEditor.EditPanel", "AjaxControlToolkit.HTMLEditor.EditPanel.js")]
to
[ClientScriptResource("AjaxControlToolkit.HTMLEditor.EditPanel", "AjaxControlToolkit.HTMLEditor.EditPanel.debug.js")]

View 3 Replies

Host A Website Under An Old One?

Nov 24, 2010

I have a website has already hosted on EasyCgi (suppose that it's called website1). I have to host another one (website2). So I created a folder called "website2" under the website1 root folder. then I FTP all the content of website2 to the "website2" folder.After that, I tried to request the URL: and nothing happen...Just an error page display that contains:

View 1 Replies

How To Host Website Within Intranet

Mar 9, 2010

I'm new to .NET. And created a website using

ASP.net 3.5 (.aspx as frontend)

VB.net(aspx.vb as backend)

SQL Server 2000 as backend

Now I want to host the site within our intranet network. But I can't.

I don't know about web.config in detail.

View 2 Replies

How To Host Website On IIS7

Jul 24, 2010

I have developed a website named MyWebsite. All the .aspx and .aspx.cs files and the App_Code folder resides in C:MyWebsite folder.

I have IIS 7 installed on my PC (OS windows 7 professional). I developed the site in visual studio 2005 in c# and used sql server 2005.

Now I want to set up a web server on my pc and host this site so that i can access this site from this or any other computer on the network.

I searched the internet and found many articles on it. Accordingly I tried to add a new site through the IIS Manager dialog box. But things did not work out.

View 4 Replies

How To Host Website Through Public Ip

Dec 20, 2010

I have the public ip i want to access my website in another system through internet how can i host through public ip

View 2 Replies

How To Host MVC Website In A Subfolder

Jan 12, 2010

I'm trying to run a little ASP.NET project in a subfolder of my hosting. My domain is [URL], but i want to run my app in www.gorangligorin.com/testmvc. ASP.NET MVC runs with no problems on the top level, but not in subfolders.

The server says this (line 58 is colored red):

Line 56: ASP.NET to identify an incoming user.
Line 57: -->
Line 58: <authentication mode="Forms">
Line 59: <forms loginUrl="~/Account/LogOn" timeout="2880" />
Line 60: </authentication>

What can I do to make this ASP.NET MVC website work? This isn't hosted on my computer, so I don't have access to IIS configirations.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved