AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 31.12.2010, 15:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
I want to demonstrate few tips possibly could be used for "fast" NAV 2009 3 tier environment setup and further modification it to working environment.

This article is not focused on "real secure" NAV installation, it just describes "how to install NAV fast and set it to work" (for example for application tests) and nothing else. Also I'm talking about simplest setup: Database + NAV Service Tier + Classic client/Role Tailored client; there is nothing about other NAV components/integrations - just NAV.

It is always is best way (supported way) install NAV as it is described in http://msdn.microsoft.com/en-us/library/dd301330.aspx but some time we just need to have working environment. And here we are...

Let's start from empty Windows 2003/2008 server.
It has already installed:
- SQL server (or it could be on another PC)
- All other prerequisites required for NST (NAV service tier). You can find it in installation cd in folder "Prerequisite Components".

First point: all actions must be done under server administrator account. Of course you can set any other account with required permissions but it is fastest&easiest way to use administrator.
  1. Install SQL database to SQL server. Backup of demo Cronus db is on CD in the folder "SQLDemoDatabaseCommonAppDataMicrosoftMicrosoft Dynamics NAV60Database".
    Create new database in SQL and restore this backup.
    If you are restoring W1 database, but will use from not EN-US, then you can change filed "checkcodepage" value to 0 in table "$ndo$dbproperty". This will prevent from possible error about different code pages when you will try to connect to db.
  2. Copy "CsideClient" folder from installation cd to somewhere on server. Start NAV CC by run finsql.exe. It is in "CsideClientprogram filesMicrosoft Dynamics NAV60Classic". Better is install CsideClient using installer, however if there is already installed another version of NAV, you can only copy folder. But here we have some workarounds as described in http://blogs.msdn.com/b/nav/archive/...m-diff-db.aspx
    Possible you will receive license error, so be ready to upload license to client and to SQL server.
  3. Install NST as it is described in
    http://blogs.msdn.com/b/nav/archive/...-remember.aspx . Please pay attention that in SC CREATE statement must to have space after every equal sign (for example: binpath= "something" DisplayName= "name")
    And one more time: more reliable is to install as described in http://msdn.microsoft.com/en-us/library/dd301130.aspx , but current is faster
  4. Go to NST folder and edit CustomSettings.config file. Most possible you need to change values for :
    1. DatabaseServer - SQL server name
    2. DatabaseName - database name on SQL server
    3. ServerInstance - serverinstance name (any name) will be used to recognize this service from RTC
    4. ServerPort - tcp port will be used for communication (it must be opened), usually 7046
    5. WebServicePort - tcp port will be used for web service, usually 7047
  5. Open server manager>Configuration>Services. Find your installed service and open properties. In "Log On" tab set up administrator account and password (we don't talk about security, just about how to run it). Start service and it must to start.
  6. Go to Diagnostics>Event Viewer>Applications. There must be new information event logged with text similar to: Service: "Service MicrosoftDynamicsNAVServer is listening to requests at net.tcp://full_qualified_servername:7046/DynamicsNAV/Service". If you have any errors instead of this message then you need to analyze where problems comes from.
  7. You can install RTC from installation cd (best way) or:
    1. Copy RTC folder to somewhere on server. Copy from installation folder "RoleTailoredClientCommonAppDataMicrosoftMicrosoft Dynamics NAV" file ClientUserSettings.config to new created RTC folder. Modify this file and add info from earlier described event:
      1. Server - this must be NST computer name
      2. ServerInstance - what you set previously on server
      3. ServerPort - tcp port set on server
    2. Start RTC like I described in http://blogs.msdn.com/b/nav/archive/...m-diff-db.aspx
      meaning create shortcut and start RTC.
  8. If you didn't install Web Service in point 3 then install it now and:
    1. Open server manager>Configuration>Services. Find your installed service and open properties. In "Log On" tab set up administrator account and password (we don't talk about security, just about how to run it). Start service and it must to start.
    2. Go to Diagnostics>Event Viewer>Applications. There must be new information event logged with text similar to: "Service: Service Microsoft Dynamics NAV Business Web Services are available at http://full_qualified_servername:704...AV/WS/Services". If you have any errors instead of this message then you need to analyze where problems comes from.
    3. If you click on it, Internet Explorer must open web service page with published services. These addresses are case sensitive - be careful with it if enter addresses manually.
  9. Yeeeee. Both services are working (it are not secure but it works). Now we can try to connect from users pc's. But usually it doesn't work - firewalls/DNS/AD replication problems...
    1. Before start next actions, check does user pc really connected to network and see server pc (even "NAV classic client" or "network ping" are good tool here); is in the same domain; user is logged to domain; and user has permissions to db on SQL server. One day I lost half hour because network cable was unplugged. If everything OK in network, go to next point.
    2. Go to server and open command prompt by run "cmd". Run "ipconfig". In answer must be IPv4 Address......192.168.1.1 (o something similar). Remember it.
    3. Return to users pc. Start RTC and set connection server address instead of "servername:7046/DynamicsNAV" to "192.168.1.1:7046/DynamicsNAV" and push "Tab". In "available companies" must to appear available companies.
      Check web service using ip address too. In IE address field must be : http://192.168.1.1:7047/DynamicsNAV/WS/Services
    4. If it still doesn't work, check firewall on server and on client: are ports 7046 & 7047 opened; is communication on these ports available and not filtered in network environment; and etc. I'm pointing on this because if we came to point 7 then services itself are good - network is bad
  10. If everything works, then easiest part is done. Now we must to make system secure, change services accounts, set SPN/delegations/users/permissions... as it is described at http://msdn.microsoft.com/en-us/library/dd301254.aspx
    But this isn't in scope of current article.
Ps. I described Microsoft Dynamics NAV 2009 SP1 installation. However we already have available NAV 2009 R2. Everything must to be the same, but I will try to look deeper to R2 and will continue current article.

These postings are provided "AS IS" with no warranties and confer no rights. You assume all risk for your use.

Best Regards
Gedas Busniauskas
Microsoft Lithuania
Microsoft Customer Service and Support (CSS) EMEA



Источник: http://feedproxy.google.com/~r/Micro...p1-3-tier.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 22:32.