473,785 Members | 3,245 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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\NETWO RK SERVICE" full
access to aspnet_Membersh ip and aspnet_Roles. I don't know why the
app uses a local user account instead of the "NT AUTHORITY\NETWO RK
SERVICE" account. Please help me.

Thanks,
Jonathan Kha

Sep 21 '07 #1
2 3205
On Sep 22, 1:47 am, Homer <HomerS...@gmai l.comwrote:
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\NETWO RK SERVICE" full
access to aspnet_Membersh ip and aspnet_Roles. I don't know why the
app uses a local user account instead of the "NT AUTHORITY\NETWO RK
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

Sep 23 '07 #2
On Sep 23, 8:29 am, Alexey Smirnov <alexey.smir... @gmail.comwrote :
On Sep 22, 1:47 am, Homer <HomerS...@gmai l.comwrote:
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\NETWO RK SERVICE" full
access to aspnet_Membersh ip and aspnet_Roles. I don't know why the
app uses a local user account instead of the "NT AUTHORITY\NETWO RK
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
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\NETWO RK SERVICE account to
the database. I checked the security setting on the app folder at C:
\Inetpub\wwwroo t\HumanResource s and verified that NETWORK SERVICE is
added to the folder. Am I missing anything here?

Thanks,
Jonathan Kha

Sep 24 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
9583
by: Nans | last post by:
One basic ASP.NET database issue…. I have a c# app running on a iis6 on one win2k3 adv servermachine & database on other win2k server machine…(in the same domain) Using windows authentication in web.config. Set impersonate =true . Connection string has Integrated security=SSPI. Logging in with my ID which is system administrator and has rights all DBs on the sql machine. But still, I get this error..(even I tried putting for test...
0
2133
by: Mr.KisS | last post by:
Hello. I'm under Windows XP PRO SP1, IIS 5.1 ans SQL SERVER 2005 Express. When i try to open a connexion with : <connectionStrings> <add name="AppCnxStr" connectionString="Server=KLEO\SQLEXPRESS;Integrated Security=True;Database=C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\wizou.mdf" providerName="System.Data.SqlClient" />
2
10650
by: Mr.KisS | last post by:
Hello. I'm under Windows XP PRO SP1, IIS 5.1 ans SQL SERVER 2005 Express. When i try to open a connexion with : <connectionStrings> <add name="AppCnxStr" connectionString="Server=KLEO\SQLEXPRESS;Integrated Security=True;Database=C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\wizou.mdf" providerName="System.Data.SqlClient" />
1
1369
by: Gopalan | last post by:
Hi Simple for you. Cannot open database requested in login 'TestDB'. Login fails. Login failed for user 'Computername\ASPNET' The user is given permission for accessing this DB the connection string is:
0
981
by: gopim | last post by:
Cannot open database requested in login 'constant'. Login fails. Login failed for user user1. some times i got this error in my website . how to solve this problem very urgent
3
1748
by: Raymond Chiu | last post by:
Dear All, I have posted my question as below. But no answers, hope it can found here. http://forums.microsoft.com/msdn/ShowPost.aspx?postid=3377176&isthread=true&siteid=1&authhash=e09bd5812ef06751e9618ca5e2acbf8709a7521a&ticks=633469349810029562
3
1370
by: David C | last post by:
I am getting the message below trying to open the SQL 2005 db in default.aspx. System.Data.SqlClient.SqlException: Cannot open database "Mydata" requested by the login. The login failed. Login failed for user 'MYXP\generic' The web site is on an XP machine with 2005 Express. I setup a login called generic on our domain and then put that login and password into the identity impersonate section of web.config
5
3129
by: Manikrag | last post by:
Hi Team, I have copied one ASP.NET application on a new server and configured it all.Now I am getting below error when I am trying to authenticate users thru LdapAuthentication function. This function is authenticating user and thn reading data from datbase server. DOMAIN\WEBSERVER$' is nowhere in the picture but still I am not able to read the database. Here is the error. __________________________________________________________________...
7
2086
by: Ashlesha pude | last post by:
i am doin project using vb.net 2005 and using this sql query for connection sql = "select username from login order by username" con.ConnectionString = "Data Source=" & hostname & "; Initial Catalog=college;integrated security=sspi" but m getting the following error: Cannot open database "college" requested by the login. The login failed. Login failed for user 'CI4\Admin'.
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10325
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10148
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8972
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3646
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.