Solved

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

Posted on 2011-09-15
6
770 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 250 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
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

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.

Question has a verified solution.

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

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

821 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