Webservice- Posting Sales Order
pawanp
Member Posts: 90
I am trying to post a sales order through webservice(codeunit) from ASP.net project. It works on localhost it doesnt work on the webserver. It does not even show any exception in the try catch block. Anyone faced the same issue?? I am not sure what the issue is, any ideas??
0
Comments
-
i've had to overcome this issue a while back.
both problems may not be the same but here are some things to check.
eventually you will narrow it down.
nothing in try catch. i hate it when that happens.
double check your initialization settings on your services code
double check your credentials code (especially the DOMAIN pointer). there's more than one way to specify a domain. if the name doesn't work try the ip addy.
double check the url services pointers in web.config
double check the settings in the config file in the dynamics folder on the app server (i can't recall the name of the file right now)
make sure your ports are all opened properly 7047, 7049, etc.
make sure your webserver and the app server can talk.
--if they are on the same network then it won't be much of a problem
--if its on another network, you may have to create a trust relationship between the two networks so the credentials passed are accepted.
check the error log on the app server for failed login attempts or other errors which might point you in the right direction.
make sure your proxy credentials in sql server work outside of your project. use sql manager from your localhost to validate your credentials.
worse case scenario, download wireshark and get to sniffin some packets!0 -
You will also need to make sure that dialogs and messages are not used. That requires a change to the standard codeunit 80.________________________________
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com0 -
The problem was with the service initialization. I was doing an initialization in every function within the same class. A single initialization resolved the issue. Strange but it worked!!0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions