Visual Studio :: How To Map Web Server (localhost) To Specific Local IP

Mar 31, 2011

I am using Windows 7 + VS 2010 and I need to access (debug purpose) my web project in VS but through HTTP-access from outside my router's network. I have mapped localhost to e.g. port 80 and my local PC has IP 192.168.1.2. Now, how can I map the VS project to the local IP?

Also the file: C:WindowsSystem32driversetchosts says:

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost

Tried to reasign localhost there but W7 refused to make changes even though I am admin.

View 1 Replies


Similar Messages:

How To Access To SQL Server Express Database To A Specific User With Visual Studio 2008 Tools

Mar 18, 2011

I'm trying to access an SQL Server Express database out of an ASP.NET HTTP request handler. The handler is run under ASPNET account and uses "integrated security" in the SQL connection string and so I get an error message saying that login for ASPNET account failed and so I can't access the database. This seems to be a very common problem and most answers say "grant access to you database to user ASPNET".

I only have Visual Studio 2008 and I can't find how to change access permisssions for a database. Specifically I use Tools->Server Explorer and I can see all the tables in the database but can't find how to change access permissions. How do I change access permissions to my database using tools shipped within Visual Studio 2008?

View 1 Replies

Visual Studio :: PNG 403 Forbidden On Localhost?

Jul 21, 2010

I am using VS2010 and I created a theme which worked fine when it was located in the App_Themes folder of a test site...I moved the theme into the ASP.NETClientFilesThemes folder and now PNG files return 403 (no subcode) errors, all other files load (css,jpg,etc). Also, I can deploy the theme onto a test IIS 7 server in the aspnet_client folder and I don't have this problem, it seems the issue is just local..

View 2 Replies

Visual Studio :: Debugging And Localhost ASP.NET Applications?

Jan 14, 2011

I'd recently installed Windows 7 Ultimate 64 bit, and after I did this I cannot debug (or simply run without debugging) my ASP.NET applications (I use VS 2010). I'm getting message: Navigation cancelled.There seems to be a problem with the localhost. I'd checked the HOSTS file - it's configured correctly, I compared the settings with my other machine where I don't have this issue.

View 12 Replies

Visual Studio :: Web Developer Error "Unable To Start The Program 'http://localhost:1098/NTTC'?

Sep 29, 2010

Every time I click the start Debugging button on the toolbar, or select it from the menu, I get the message:

"Unable to start the program 'http://localhost:1098/NTTC'.

View 4 Replies

Visual Studio :: Can't Browse Local Iis?

Feb 7, 2010

im practising asp.net 3.5 programming in visual studio 2008. i have just a sideshow problem: when i select new->web site, a new website window pops up from which you can choose your template.(mine is asp.net in c#). once i click browse button, a choose location window appears including four icons such as file system, local iis, ftp site and remote site. i get to browse into each of them(tweak them) but local iis which doesn't permit me to scan it and says i must first install iis components(or run the vs2008 as administrator) whereas i've done with its installation successfully! i dont know why it behaves in this way.

View 2 Replies

Visual Studio :: 2010 - Can't Open Local IIS?

May 6, 2010

I've just downloaded VS2010 Express to play with on my personal laptop. However, when I try to open an existing website through the "Open Web Site..." / "Local IIS" button, the system trundles on for a bit and then says: "To access local IIS Web sites, you must install the following IIS components: In addition, you must run Visual Studio in teh context of an administrator account."

Note the blank line after the "you must install...." [strikeout]Is this a limitation of the "Express" editions of Visual Studio? [/strikeout] I've just installed VS2010 Premium from our MSDN DVD and it has the same problem.... Also, seems to have broken VS2008 as well since I can no longer browse Local IIS from VS 2008 either. Good thing I installed this on my backup machine first and I can still get work done on my main development machine!

View 12 Replies

Visual Studio :: Allow Scripts To Run On The Local Host?

Sep 23, 2010

When I Start Debugging a website on the localhost the yellow bar no longer shows up at the top of the web page. How do I get it back?

View 5 Replies

How To Visual Studio Find Web Services On The Local Machine

Jan 3, 2010

When adding a new web reference, one of the options that visual studio gives you is to search for web services on the local machine (The exact option name is "Web services on the local machine").

My question is, how does Visual Studio find the web services on the local machine? The local website that contains the service doesn't contain a .disco file.

I tried to use fiddler but got nothing (visual studio didn't make any requests to the local web server). Does visual studio scan the default website for files with the extension .asmx?

View 1 Replies

Visual Studio - Web Development Using Asp And C# - Local Admin Rights?

Mar 7, 2011

whether we need admin rights to work on asp.net,C#,VS2005,IIS. Can you also point out that if we don't have admin privilege then what all are the stuff we will not be able to work on OR what all are the tools in VS ..etc will not be able to access.

View 1 Replies

Visual Studio :: Cannot Open A Project Because The Local IIS Url Has Not Been Configured?

Mar 30, 2011

I have copied my asmx hello webservice to a remote server where I tried to open the project I have this message. That I answer yes or no it cannot open the project VS stays blank.Originally I think I have clicked on associate this project with IIS Express. Now I don't know how to revert this.

View 2 Replies

Visual Studio :: How To Search In Specific Places

Dec 1, 2010

I have to refactor really huge project with a lot of user controls where each has a lot of element sometimes with no unique id. I mean that in one page Image element has ID="img" as well as DevExpress popup control (containig image) in another page. When I try to search concrete ID, I found many of them in code behind files (.cs) but I need only these which I can find in *.ascx files. Can I do such thing?

View 2 Replies

Visual Studio :: Using Local IIS And StylesheetTheme -background Image Is Not Applied?

Feb 18, 2011

using StyleSheetTheme="Common", my background image is not being applied when I switch over to using the local IIS server.

VS Web Server: http://localhost:33174/Index.aspx = OK

Local IIS Server: http://localhost/MyApp/Index.aspx = background not showing

My Common.css class is defined as:

#masthead {
height:60px;
background-image:url(/images/bg_masthead.gif);
background-repeat:repeat-x;
}

I've tried various paths to the image.

View 1 Replies

Visual Studio :: Error While Enumerating Services On Local Machine?

Jun 30, 2010

This error never happens before in my machine since 7 months of using it. [:(]

"There was an error while enumerating services on local machine: Active Directory Services cannot find the web server. A possible cause for this is an incompatibility between versions of Internet Information Server (IIS) on the client and the server. Another possible cause is that IIS is not installed on the local machine, or the user identity under which you are running may not have permissions to view websites on this machine. To view websites on this machine, make sure that you run Visual Studio as administrator. On Windows Vista computers with IIS installed, make sure that IIS Metabase and IIS 6 configuration compatibility feature is enabled."

I'm trying to add back a webservice (localhost) after deletion. And suddenly I'm getting the above error.[:(]

The error's suggested tip is to install IIS but I did not install IIS since then in my machine because VS2010 built-in server do just fine. Should I install IIS?

I also found this helpful tips but nothing works. [:(]

* Run Visual Studio with elevated administrator permissions
* Be a member of the "Administrators" group on the local machine
* Right-click the Visual Studio icon and select the "Run as administrator" option from the context menu.

View 2 Replies

Visual Studio :: Search Toolbox For Specific Control?

Jul 8, 2010

Is there a way to search the Toolbox for a specific control?

View 3 Replies

Run Site Using Specific Web.config Transformation In Visual Studio

Nov 18, 2010

I'm using the web.config transformations on an ASP.NET site so I have .config settings for dev, test, and release environments. I need to run the source code in Visual Studio against the test database using the settings in Web.Test.config and I can't figure out how to do it. I tried changing the configuration to Test but it still uses the base Web.config settings.

View 1 Replies

Suppress Specific CSS 2.0 Validation Errors In Visual Studio 2008?

Feb 5, 2010

A typical CSS property that I use often is overflow-x and overflow-y. Sometimes I use CSS 2.1 or later properties or selectors. These (correctly) raise a validation error: Validation (CSS 2.0): 'overflow-y' is not a known CSS property name.For years I ignored this, but it kinda feels wrong. It's possible to switch off warning in C# and other languages for a particular line, block, file or project. Is something similar possible for CSS (or HTML) errors or warnings? Instead of switching it all off, I prefer a more granular solution.

View 2 Replies

Visual Studio :: Can Debug Multi Threading And Watch Local Variables Of Each Thread

Jan 26, 2010

how can we debug multi threading and watch local variables of each thread.

Thread windows does not show variable values.

View 1 Replies

Web Forms :: Connection To Database From Local Visual Studio Not Working - Code In Separate File?

Mar 11, 2010

I recently started NOT putting code in separate file. I am using vb. I am having a problem with my database connection. The live code is working just fine....but when I try to debug locally. i get this error. connection to the database from my local visual studio is not working. A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" %>
<script runat="server">
Const ConnectionString As String = "Data Source=1234.database.com;Initial Catalog=database_name;Persist Security Info=True;User =user_name;Password=123456"
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim MyConn As New Data.SqlClient.SqlConnection(ConnectionString)
Dim cmd As New Data.SqlClient.SqlCommand("Select count (*) from Classifieds where (ClassifiedCatagory = 'Antiques')", MyConn)
cmd.Connection.Open()
Dim count As Integer = cmd.ExecuteScalar() 'this contains the number of records
Label_Antiques.Text = count
cmd.Connection.Close()

View 4 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

SQL Server :: How To Connect To Local Instance Of SQL Server 2008 Management Studio Express

Aug 27, 2010

I just installed SQL Server 2008 Management studio Express on my Vista machine.i tried connecting to local machine using :

.sqlexpress, (local)sqlexpress, or .SQLExpress, MyPCNAMESQLExpress

nothing is working, getting this error:

-----------------------------
Cannot connect to PC-NAMESQLEXPRESS. A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
----------------------------

View 4 Replies

Change Localhost To Local Ip Address Of Pc When Host Application On IIS?

Dec 8, 2010

I host my asp.net application with wcf service on IIS 7 and I want that this location could be possible at adress of my computer in lan, that other in network could get to it..

Now it looks like: http://localhost/wcfAx/Service1.svc

How to do like that : http://192.168.2.33/wcfAx/Service1.svc?

View 1 Replies

Security :: How To Make Hostname Map To Localhost On Local System

Apr 13, 2010

I developed a website on VS2008, which I then published by right-clicking. I can locally browse that website using[URL]

but when I try giving hostname in place of localhost it fails to resolve. Can this mapping be specified in hosts file?

View 9 Replies

Visual Studio :: How To Convert Whole Visual Studio 2008 Web Site Project To Visual Studio 2010

Aug 14, 2010

is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project

my current project references

i have a very annoying iis problem

iis server stops working until app pool is recycled

i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem

View 2 Replies

Visual Studio - Why Does Website Reference Assembly From GAC, When Adding Local Reference

Jan 7, 2010

When you use ASP.NET web site (instead of web application model) and add reference to an assembly from local folder, Visual Studio, it seems, understands that this local assembly is also in GAC and so does NOT copy this assembly to bin folder (as it does with non-GAC assemblies), but simply adds new record in web.config file.

Why such a behaviour? Is it possible to force copy to bin folder (I need this since .dll is not on target environment)? I can add assembly to bin folder as file and it will work, but in this case bin folder contents will be in source control, which is not good.

View 3 Replies







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