Webservice SOAP Exception

sharad
Member Posts: 112
Hello Friends,
I made asp.net application using NAV webservices. it runs fine on developement mode but when i publish this project and call by browser it gives following error :
Please Help me
The login failed when connecting to SQL Server SHARAD.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Services.Protocols.SoapException: The login failed when connecting to SQL Server SHARAD.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SoapException: The login failed when connecting to SQL Server SHARAD.]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +734213
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +345
NavisionPortal.CompanyInfo.CompanyInfo_Service.ReadMultiple(CompanyInfo_Filter[] filter, String bookmarkKey, Int32 setSize) in C:\Users\SHARAD\Documents\Visual Studio 2010\Projects\NavisionPortal\NavisionPortal\Web References\CompanyInfo\Reference.cs:135
NavisionPortal.WebForm1.Page_Load(Object sender, EventArgs e) in C:\Users\SHARAD\Documents\Visual Studio 2010\Projects\NavisionPortal\NavisionPortal\WebForm1.aspx.cs:32
System.Web.UI.Control.LoadRecursive() +71
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178
I made asp.net application using NAV webservices. it runs fine on developement mode but when i publish this project and call by browser it gives following error :
Please Help me
The login failed when connecting to SQL Server SHARAD.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Services.Protocols.SoapException: The login failed when connecting to SQL Server SHARAD.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SoapException: The login failed when connecting to SQL Server SHARAD.]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +734213
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +345
NavisionPortal.CompanyInfo.CompanyInfo_Service.ReadMultiple(CompanyInfo_Filter[] filter, String bookmarkKey, Int32 setSize) in C:\Users\SHARAD\Documents\Visual Studio 2010\Projects\NavisionPortal\NavisionPortal\Web References\CompanyInfo\Reference.cs:135
NavisionPortal.WebForm1.Page_Load(Object sender, EventArgs e) in C:\Users\SHARAD\Documents\Visual Studio 2010\Projects\NavisionPortal\NavisionPortal\WebForm1.aspx.cs:32
System.Web.UI.Control.LoadRecursive() +71
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178
Sharad Gupta
Navision Technical Consultant & .Net Developer
Navision Technical Consultant & .Net Developer
0
Comments
-
Are you using the same user name as when you are in dev. Is the username you are using able to access the SQL Server? Also in development, are you using your production server for the web reference or do you have a separate development server?0
-
Can you give me the way when you connect on your web service ?
UseDefaultCredential or Credential = NetworkCredent(user,pwd,domain) ...
Maybe, you have forgotten to switch the connection way
Then, if you use NetworkCredential, you must check your rules (SQL, NAV ..)Navision Technical Consultant & .Net Developer0 -
Avallack wrote:Can you give me the way when you connect on your web service ?
UseDefaultCredential or Credential = NetworkCredent(user,pwd,domain) ...
Maybe, you have forgotten to switch the connection way
Then, if you use NetworkCredential, you must check your rules (SQL, NAV ..)
I use UseDefaultCredential = true.
so tell me what should i do to solve this error. and Deploy machine and developement machine same.
Please HelpSharad Gupta
Navision Technical Consultant & .Net Developer0 -
If you use UseDefaultCredential, you consume the login who use the local session. So you must check that your user is registered on your NAV. I propose you use : Credential = new NetWorkCredential("User","Pwd","Domain") with a NAV account.Navision Technical Consultant & .Net Developer0
-
You can use the applicaton pool settings,
See here --> http://www.dynamics.is/?p=487________________________________
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com0
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