# Problem with cook for dedicated server of project

**URL:** <https://forums.unrealengine.com/t/problem-with-cook-for-dedicated-server-of-project/387461>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [March 9, 2017, 8:50pm UTC](https://forums.unrealengine.com/t/problem-with-cook-for-dedicated-server-of-project/387461 "2017-03-09T20:50:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mblogest](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mblogest](https://forums.unrealengine.com/u/mblogest)\
**Post date:** [March 9, 2017, 8:50pm UTC](https://forums.unrealengine.com/t/problem-with-cook-for-dedicated-server-of-project/387461/1 "2017-03-09T20:50:31Z")

</div>

hi i use unreal 4.15 and try to package it for dedicated server  
i use this tutorial

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

in this section

1. Target file instructions for engine version 4.15  
for create mygametarget.cs  
i create a file name b562server.Target.cs  
and copy past this code  
``

`
`
`
` but when i generat code for visual studio have a error `
`

`Running D:/unreal source//Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“E:/server/b562/b562.uproject” -game -engine -progress
Discovering modules, targets and source code for project…
UnrealBuildTool Exception: ERROR: Expecting to find a type to be declared in a target rules named ‘b562Target’. This type must derive from the ‘TargetRules’ type defined by Unreal Build Tool.
`

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [March 13, 2017, 1:14pm UTC](https://forums.unrealengine.com/t/problem-with-cook-for-dedicated-server-of-project/387461/2 "2017-03-13T13:14:08Z")

</div>

Hey mblogest,

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Give that guide a try instead. However, note that you’ll need to omit the last three functions in your Target.cs file for 4.15. I’ve successfully built a dedicated server using that method multiple times. Also, give it a shot in a clean project to ensure that there is not an issue with your current project.

Let me know if that helps
