CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.vs_web_deployment_projects Tags:
Item Type: NewsGroup Date Entered: 8/10/2007 7:38:33 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 35 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
pkarthik8
Asp.Net User
How to create virtual folder in IIS for ASP.NET 2005 web project8/10/2007 7:38:33 AM

0/0

I have installed VS 2005 and created a web application as file system and i'm using SQL 2003 database in another machine and when i run my project its going fine. (Connecting to db)Now i created a virtual folder in IIS and mapped my web project folder to it. ( "http://localhost/Test/" )Now when i access my application thru the address its throwing Server Error  (i have VS 2003 also in my machine)i don't want to connect to SQL 2005. Any settings have to be done in IIS ??Thankz in advance.

An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

  

 

naturehermit
Asp.Net User
Re: How to create virtual folder in IIS for ASP.NET 2005 web project8/10/2007 8:50:41 AM

0/0

You topic and your error look different. Please specify whats the issue.

Your error is to do with your application unable to connect to SQL server


Please Mark Post that helped you as answer, also include a summary of what solved the problem as it helps others in similar situations
Benson Yu - MSF
Asp.Net User
Re: How to create virtual folder in IIS for ASP.NET 2005 web project8/13/2007 8:12:05 AM

0/0

Hi pkarthik,

From your description, I understand that after creating virtual directory for the existing web project, the web site failed to connect to the SQL Server 2005. However, debug the project in Visual Studio works well. If I have misunderstood your concern, please let me know.

Based on my experience, the most likely cause of this issue is the login account. When view the page through IIS, the build-in account: ?ASPNET? account (for IIS 5) or ?Network Service? account (for IIS 6) will fail to connect the SQL Server.

To fix this issue, you can choose one of the solutions:

    1. Change the Authentication Mode to SQL mode in connection string, for example:

Data Source=ServerAddress;Initial Catalog=database;Integrated Security=True
Data Source= ServerAddress;Initial Catalog=database;User ID=***;Password=*****

    2. Use ASP.NET impersonation.

ASP.NET Impersonation 
http://msdn2.microsoft.com/en-us/library/xh507fc5(vs.80).aspx

    3. Add build-in ASP.NET account in SQL Server logins.

In SQL Sever Management Studio, expand ?Security? node, right click ?Logins? node and select ?New Login??. Add ?machineName\ASPNET? or ?machineName\Network Service?

 


Sincerely,
Benson Yu
Microsoft Online Community Support

Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
pkarthik8
Asp.Net User
Re: How to create virtual folder in IIS for ASP.NET 2005 web project8/13/2007 8:38:04 AM

0/0

Hi Benson Yu,

Thankz a lot ur reply helped me and i chosed second option (impersonation) and it worked perfectly.

(FYI i'm not using local 2005 SQL Server, I'm connecting to 2003 SQL Server located in another machine)

Once again Thankz

Regards,

Karthik

 

4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
ASP.NET 2.0 Website Programming: Problem-design-solution Authors: Marco Bellinaso, Pages: 576, Published: 2006
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Paul Mueller, Pages: 822, Published: 2005
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
ASP.NET 2.0 MVP Hacks and Tips Authors: David Yack, Joe Mayo, Scott Hanselman, Fredrik Normén, Dan Wahlin, J. Ambrose Little, Jonathan Goodyear, Pages: 400, Published: 2006
Beginning ASP.NET 2.0 in VB 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1063, Published: 2006
Beginning ASP.NET 2.0 in C# 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1148, Published: 2006
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005

Web:
How to create virtual folder in IIS for ASP.NET 2005 web project ... How to create virtual folder in IIS for ASP.NET 2005 web project. Last post 08- 13-2007 4:38 AM by pkarthik8. 3 replies. Sort Posts: ...
Using IIS with VS 2005 and the new Web Project system - ScottGu's Blog VS 2005 supports multiple ways to open and edit ASP.NET Applications. Out of the box its “Open Web Site” dialog (invoked when you create or open a new web ...
Converting VS 2008 Website to Web Application This is typically the same old VS 2002/2003 project model with no problems in generating DESIGNER files and with integration with both IIS and ASP.NET ...
TheMSsForum.com >> IIS >> Need to set asp.net version on virtual ... Oct 9, 2008 ... I have allowed all extensions in IIS on the virtual web site as well, ..... If I create a virtual folder and go to the ASP.NET tab, the only ...
Using IIS with Microsoft Visual Studio 2005 and the New Web ... Strategies for Web Project Management with IIS and Visual Studio 2005 Versioning Applications Using ASP.NET 2.0 Conclusion ...
virtual directory Resources | TechRepublic NET project: When I open a new ASP.NET project, I get an error message as ... Virtual Directories feature in IIS 5.0 to easily create Web sites that your ...
Visual Web Developer Team Blog : Part 1 of 3: Creating sub ... To do this select File > New Project. Choose the ASP.NET Web Application item, .... "bin" folders of the virtual folders in IIS (one being a sub folder). ...
ASP.NET projects aren’t 'real' projects in VS.NET 2005 - Rick ... NET 2005 ASP.NET projects are no longer real VS project, ... we have to do in VS 2005 is open the IIS MMC and create virtual directories in IIS for folders. ...
Web Service project configuration in Visual Studio 2003. - .NET ... I use "File->New->Project" and select a C# ASP.Net web service. ... project.[ color=blue] > I create a virtual directory using IIS and accept ...
ASP.NET Tutorials - Lesson 2: Web Application Fundamentals After creating a folder for your project, you should create a virtual directory. .... To create an ASP.NET application in Microsoft Visual Studio 2005, ...




Search This Site:










non-visual component "initializecomponent" code-behind variable modifiers differ in vs2005

help required urgently

unable to open website

how to use our own tables for .net 2.0 builtin login functionality

eform

url editor

dnndownloads 1.2 big problem... :(

turn off menu during change password

rating

dynamic control events best practice

start to write in 2.1.2 before 3.0

no eval in .net?

generic pricipal + ticket

how to give image or imagebutton control a null image value?

adsi

question on connectivitiy for each form

authentication

dnn 3.06 file manager decompress zip

need a system.math.pow for the decimal type

need up-ti-date info on hosting vendors

looking for advise: how best to reference the .dll in my solution

internet chat program in c#.net(2003)

2 questions: packing up web app/ objects in pages.

ever experience debugging suddely not happening for a specific project?

how to save multiline textbox data to text column?

highlighting text

how about the ability to limit the size of images in the images module?

very very large files

trying to override initialize method in custom membership provider...

accessing the application object from the .aspx.vb file

 
All Times Are GMT