Solved

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

Posted on 2011-09-15
6
774 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
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.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

739 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