Web Service - Publish Console Application as a Web Site

Ravi_Thakkar
Member Posts: 392
Hi all experts,
In NAV Help Material for Web-Services, one example for printing the Customer List is developed using the Console Application.
So, is it possible to publish that Web Project as a Web Site rather than a *.exe file?
If yes then how?
Please, suggest.
Thanks in Advance.
In NAV Help Material for Web-Services, one example for printing the Customer List is developed using the Console Application.
So, is it possible to publish that Web Project as a Web Site rather than a *.exe file?
If yes then how?
Please, suggest.
Thanks in Advance.
0
Answers
-
You can't publish a console app as a web site (at least not that I know of). BUT, when you create a new C# project in Visual Studio, you can select ASP.NET Web Application as a template, and you can write code in there that consumes the NAV web service just like you would in a console app.0
-
Hi, Denster,
Thanks for your reply.
I got your point. But, by doing that way, if I have published a web service 'CustomerCard' through Navsion and after adding the refference in asp.net web application I do not get the intellisence for 'CustomerCard_Service', while it can be seen in asp.net console application.
Please, suggest me.
Thanks in Advance.0 -
That is an interesting issue. I've only worked with console apps so far, so I don't know if there is supposed to be a difference, but I have had problems with setting the wrong type of reference. Did you make sure it was a "web" reference in both projects?0
-
DenSter is hitting the point here - it looks like you inserted a Service Reference and not a Web Reference.
Web Reference can be found under Advanced when adding a service Reference in VS2008.Freddy Kristiansen
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.0 -
Hi All,
Thanks for your replies.
My problem related to CustomerCard_Service has been solved.
Actually it was my mistake.
Actually I had 2 Services References.
1) System Service
2) CustomerCard
I just added this combination of both as a Service reference.
While I needed to add the reference seperately, one by one.
After doing so, it is showing me CustomerCard_Service in the intellisence.
Sorry, for my misunderstandings and thanks to you all.
Now, for publishing it as a Web Site, I will go in detail and then will revert back if any issue.
Thanks.0 -
Hi, all
I created the demo web application successfully.
But, after publishing that web site, when I host it on our Intranet server, on trying to access it I am geeting error as shown in attached image.
While I have already added the user in NAV DB in Windows Logins.
Please, suggest me whether I need to do any task which I forgot or any suggestion?
Thanks in adv.0 -
Related to this post query, My problem has been solved.
Thanks for your help.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