**
Update Oct '08
thanks to Jivtesh who pointed out that this has been resolved in the GP 10 installer
**
The plan was to create a custom aspx page that loads the Sales Order History for a debtor, and display it on a data grid; then to load that page from within an iFrame, passing the GP debtor ID as a parameter within the URL. We can store the GP debtor ID in the 'Account Number' field on the CRM Account entity.
So, first attempt: I couldn't load GP from the installer, because .NET 2.0 was not installed. Hmm. Yes it was, in fact I had .NET SP1 and .NET 3.0 SP1 installed. But the GP installer didn't recognise .Net 2.0 SP1 as a valid install of .Net 2.0. So I hunted and saw KB947538, available on PartnerSource, giving instructions on how to crack the msi, skipping the .Net check.
Seems simple enough.
Except it just didn't work. I was told that 'Microsoft Application Error Reporting' was not installed (which actually has something to do with Dr Watson), except it was... So I spent quite a bit of time trying to get Dr Watson installed, and get through to the installer. A bit of jiggery pokery later, I had the core GP product installed, and optimistically moved onto the Web Services installation...
I wasted an hour or so by getting myself confused between the Domain for the VPC AD (LITWAREINC) and the machine name (MOSS - Incidentally, why is the CRM VPC called MOSS?) - but that was my mistake, and when I put the right credentials in, I installed the Web Services straight away. Browse to them... there they are. Hurray!
So now for the application code. Firstly, go to the SDK documentation; and it really is very good. There's sample code for each and every web method, and I quickly put together a function to connect to GP, and get all Sales Orders for a debtor, filtered by debtorId.
But it didn't work.
I connected to the Web Service, but when I invoked the relevant method (GetSalesOrderList) it simply threw an unhandled exception. Bah :(
I wish I could tell you exactly what the problem was; I wish I knew more about the minutiae of Microsoft technologies; I wish I had a gold-plated Cadillac...
So anyway, I took a vanilla CRM VPC, and followed the advice of the many developers on the forums who told me (about 3 days ago!!) to simply uninstall .net before the GP install, then re-install it after...
Basically:
- uninstall .Net 3.0 SP1 (you have to uninstall the later framework, otherwise the .net 2 uninstall fails)
- uninstall .Net 2.0 SP1
- Install GP, which will install .Net 2.0
- Install GP Web Services
- Reinstall .Net 3.0
- Reconfigure IIS to set the Dynamics CRM web folder to use Asp.net v2.0.50727; since the uninstall of .Net 2.0 reverted the site to use v1.1.4322, which breaks CRM.
- Let Windows update patch the 2 frameworks up to SP1...
Bob's your uncle; the methods seem to work now, and we can (finally) start on the aspx page.
Hope this helps anybody attempting to 'quickly' put a demo together of these two integrated technologies.
Hey Ian,
ReplyDeleteJust an FYI, last month the GP Team released a new installer GP 10 SP2 with Feature Pack, that does not have the .Net 2.0 SP1 issues.
But it was pretty irritating, when it was there!
Jivtesh
Keep on writing, great job!
ReplyDeletemy site :: payday loan lenders
Amazing blog! Is your theme custom made or did you download it from
ReplyDeletesomewhere? A design like yours with a few simple adjustements would really make my blog jump out.
Please let me know where you got your theme.
Kudos
Look into my homepage :: instant cash
Have you ever considered writing an e-book or guest authoring on other blogs?
ReplyDeleteI have a blog centered on the same topics you discuss and would really like to have you share some stories/information.
I know my audience would value your work. If you are even remotely interested, feel free to shoot me an e-mail.
Feel free to surf to my page no broker payday loans
Hi, i feel that i noticed you visited my site thus i got here to return the desire?
ReplyDelete.I'm trying to find things to enhance my site!I suppose its good enough to use a few of your ideas!!
my web blog :: ladies wigs