Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Cannot open database requested in login 'HumanResources'. Login failed for user 'companyDomain\BOSIIS$'.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Homer - 22 Sep 2007 00:47 GMT
Hi,

I have an ASP.NET 2.0 Intranet app that works fine on a test server
running on Win2003 Server with IIS 6.0.  However, it fails when I port
it over to the production server running on the same OS.  I compared
all the configurations and everything matches.  I then re-run the
aspnet_regiis; I even granted "NT AUTHORITY\NETWORK SERVICE" full
access to aspnet_Membership and aspnet_Roles.  I don't know why the
app uses a local user account instead of the "NT AUTHORITY\NETWORK
SERVICE" account.  Please help me.

Thanks,
Jonathan Kha
Alexey Smirnov - 23 Sep 2007 16:29 GMT
> Hi,
>
[quoted text clipped - 6 lines]
> app uses a local user account instead of the "NT AUTHORITY\NETWORK
> SERVICE" account.  Please help me.

Hi Jonathan

the problem is in the database and not in the ASP.NET. Go to the
database and check if windows authentication is allowed and the aspnet
account is in the user list. You can also create a new database
account and use it to open database from ASP.NET application.

Hope this helps
Homer - 24 Sep 2007 21:58 GMT
> > Hi,
>
[quoted text clipped - 15 lines]
>
> Hope this helps

Hi,

My app is an asp.net 2.0 app with no impersonation.  By default, I
expect Network Service be used.  The database uses Windows
Authentication.  I added the "NT AUTHORITY\NETWORK SERVICE account to
the database.  I checked the security setting on the app folder at C:
\Inetpub\wwwroot\HumanResources and verified that NETWORK SERVICE is
added to the folder.  Am I missing anything here?

Thanks,
Jonathan Kha
Alexey Smirnov - 25 Sep 2007 20:45 GMT
> > > Hi,
>
[quoted text clipped - 29 lines]
>
> - Show quoted text -

Hi Jonathan

try to add into your pages

User: <%=User.Identity.Name%>

to see what user is running your application. It looks like in the
second case you would have the companyDomain\BOSIIS$

Check what authentication mode you have and also check the Security
tab on IIS to see if there any difference.

Hope it helps

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.