Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Another Login failed for user 'IIS APPPOOL\DefaultAppPool' Type Problem

Posted on 2011-09-15
6
Medium Priority
?
785 Views
Last Modified: 2012-05-12
I am trying to publish a website to a server running Windows 7 Professional and IIS 7. The problem is logging in. I have looked at the other page on E-E with the title 'Login failed for user 'IIS APPPOOL\DefaultAppPool' and created a separate AppPool. I don't get the error any more but I also don't get the login to work. I also tried attaching  ASPNETDB.MDF to the SQLServer/Express database. This failed.

So, this novice needs some instruction on how to publish a website and get the correct connection string for ASPNETDB.MDF and what changes to make in Web.Config and on the server to make it work. I appreciate any help I can get.
0
Comment
Question by:rkulp
  • 4
  • 2
6 Comments
 
LVL 15

Assisted Solution

by:pateljitu
pateljitu earned 1000 total points
ID: 36543957
What is your existing connection string, please try this sample:

<add name="SqlServer"
connectionString= "Server=SQL_SERVER_ADDRESS,1433;Database= DB_NAME;User=USERNAME;Password=PASSWORD;"
providerName="System.Data.SqlClient" />
0
 
LVL 1

Author Comment

by:rkulp
ID: 36546106
Thanks for your quick responce, patelitu.  I have tried that connection string and also using |DataDirectory| as the server. I don't get an error but the login still fails. In the IDE, the same username and password works fine.
I will be gone until the 28th so can't test any other suggestions until then, but I will try to login and view them.
Thanks again.
0
 
LVL 1

Author Comment

by:rkulp
ID: 36818442
Possibly the problem lies in the way VS2010 publishes the website. ASPNetDB.mdf cas copied over but the SQLServer Management Studio sees it with a name which is the full path on the development computer. I can attach the db but then it is read only. What is the correct way to install the db on the server? Is my only effective choice to rebuild it completely?
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 1

Accepted Solution

by:
rkulp earned 0 total points
ID: 36818634
The problem is solved by following the steps in http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_23144483.html?sfQueryTermInfo=1+10+30+aspnetdb.mdf+deploi

I had read this before but did not understand what the Aspnet_regsql.exe program would do for me.
0
 
LVL 1

Author Closing Comment

by:rkulp
ID: 36908496
Thanks for your help. Since I actually got the solution from another posting, I felt I could not award all the points.
0
 
LVL 15

Expert Comment

by:pateljitu
ID: 36818888
Excellent you could resolve the issue, thanks for the points though.

Good luck.
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question