The login failed when connecting to SQL Server XXX

zzheng
Member Posts: 30
Hi, Guys, I have this error when i am using 2009 web service.
1) SQL Server is installed in my local PC
2) Navision Web Server is in my local PC
3) Navision Web Service is in my local PC
4) I create a website which is calling Navision Web Service, this website is installed in another PC.
5) I am using windows authentication for this website.
So when everytime i run the website from my VS2010, the webservice is working well, everything is fine,
but after i deployed my website to the other PC, I always got error "The login failed when connecting to SQL Server XXX".
Any idea how to find out why?
1) SQL Server is installed in my local PC
2) Navision Web Server is in my local PC
3) Navision Web Service is in my local PC
4) I create a website which is calling Navision Web Service, this website is installed in another PC.
5) I am using windows authentication for this website.
So when everytime i run the website from my VS2010, the webservice is working well, everything is fine,
but after i deployed my website to the other PC, I always got error "The login failed when connecting to SQL Server XXX".
Any idea how to find out why?
0
Comments
-
I have deployed the website to my local machine,
now eveything is in the same machine,
but i still have the same error,
](*,)0 -
I have checked the SQL Log, it said that "Login failed for user "IIS APPPOOL\.net2.0". Reason: Token-based server access validaion failed with an infrastructure error
So meansing that, when it access SQL, it is using "IIS APPPOOL\.net 2.0", not my windows log in.
Anyone knows that how can i change the setting, so that it will use windows authentication to log in?0 -
Anyone knows in the IIS application POOL, the DefaultAppPool, for the Identity to ApplicationPoolIdentity or NetworkService?0
-
isn't the problem in the site/app itself?
You can check here for all kinds of connections to web services:
http://blogs.msdn.com/b/freddyk/0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions