Solved

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

Posted on 2011-09-15
6
761 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Suggested Solutions

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
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 UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now