Problem with webservice

welander
Member Posts: 20
Hello
I have a customer who runs NAV 2009 SP1 with SQL 2005 on Windowa server 2008 i have made a codeunit to serve as webservice and there was no problems for a long time. In the beginning the setup was running on a Windows server 2003 now it is moved to a 2008 server and here the problems begins.
The webservice is called from a ASP.NET site and it stil runs with no problems but when i add som new function call to the webservice in the NAV codeunit so the .NET program need to update the ref. there is problems with the ref. login we can type the same login 10 - 15 times with access denied and then suddenly it works.
In the event log on the NAV server there is this error every time a login failes:
Service:
User:
Type: Microsoft.Dynamics.Nav.Service.WebServices.ServiceBrokerException
Message: Service "Codeunit/FjedreWeb/$metadata" was not found!
StackTrace:
at Microsoft.Dynamics.Nav.Service.WebServices.MetadataManager.FindServiceItem(String fullName)
at Microsoft.Dynamics.Nav.Service.WebServices.MetadataManager.FindWsdlAdapter(String fullName)
at Microsoft.Dynamics.Nav.Service.WebServices.ServiceBroker.MetadataFor(UrlParser relivantURLPart, Uri orginal, TextWriter output)
at Microsoft.Dynamics.Nav.Service.WebServices.ServiceBroker.Invoke(Boolean isSoapMessage, String serviceName, Uri url, XmlReader input, TextWriter output, String sid)
at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.<>c__DisplayClass3.<>c__DisplayClass5.<ProcessMessage>b__1()
at Microsoft.Dynamics.Nav.Service.WebServices.Disposer.Scope(Code code)
at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.<>c__DisplayClass3.<ProcessMessage>b__0(StreamWriter streamWriter)
at Microsoft.Dynamics.Nav.Service.WebServices.WCFUtil.GetPopulatedMemoryStream(StreamFillingCallback callback)
at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.ProcessMessage(Message message)
at SyncInvokeProcessMessage(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
Source: Microsoft.Dynamics.Nav.Service.WebServices[/i]
I have tried to recompille all object with no luck, i just tried to open the RTC client and had another error something like (Translated from danish) "Maximum lenght for a string is 10"
hope somebody can help
Best regards Lars
I have a customer who runs NAV 2009 SP1 with SQL 2005 on Windowa server 2008 i have made a codeunit to serve as webservice and there was no problems for a long time. In the beginning the setup was running on a Windows server 2003 now it is moved to a 2008 server and here the problems begins.
The webservice is called from a ASP.NET site and it stil runs with no problems but when i add som new function call to the webservice in the NAV codeunit so the .NET program need to update the ref. there is problems with the ref. login we can type the same login 10 - 15 times with access denied and then suddenly it works.
In the event log on the NAV server there is this error every time a login failes:
Service:
User:
Type: Microsoft.Dynamics.Nav.Service.WebServices.ServiceBrokerException
Message: Service "Codeunit/FjedreWeb/$metadata" was not found!
StackTrace:
at Microsoft.Dynamics.Nav.Service.WebServices.MetadataManager.FindServiceItem(String fullName)
at Microsoft.Dynamics.Nav.Service.WebServices.MetadataManager.FindWsdlAdapter(String fullName)
at Microsoft.Dynamics.Nav.Service.WebServices.ServiceBroker.MetadataFor(UrlParser relivantURLPart, Uri orginal, TextWriter output)
at Microsoft.Dynamics.Nav.Service.WebServices.ServiceBroker.Invoke(Boolean isSoapMessage, String serviceName, Uri url, XmlReader input, TextWriter output, String sid)
at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.<>c__DisplayClass3.<>c__DisplayClass5.<ProcessMessage>b__1()
at Microsoft.Dynamics.Nav.Service.WebServices.Disposer.Scope(Code code)
at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.<>c__DisplayClass3.<ProcessMessage>b__0(StreamWriter streamWriter)
at Microsoft.Dynamics.Nav.Service.WebServices.WCFUtil.GetPopulatedMemoryStream(StreamFillingCallback callback)
at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.ProcessMessage(Message message)
at SyncInvokeProcessMessage(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
Source: Microsoft.Dynamics.Nav.Service.WebServices[/i]
I have tried to recompille all object with no luck, i just tried to open the RTC client and had another error something like (Translated from danish) "Maximum lenght for a string is 10"
hope somebody can help
Best regards Lars
0
Comments
-
Is your login longer than 10 chars? May be some problem with this...0
-
Yes the login is more than 10 but it is the same login as used on windows server 2003 and here there was no problem.0
-
New information, the problem with login to the RTC has nothing to do with the webservice problem and has been solved. When updating the webservice ref. in visual studio it looks like we are getting prompt with login for each funktion in the codeunit thats why we are getting prompt 10-15 times i think.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