# RobotStudio 6.0 AddIn not loaded

**URL:** <https://tech-community.robotics.abb.com/t/robotstudio-6-0-addin-not-loaded/6436>\
**Category:** Developer Tools\
**Created:** [December 22, 2014, 9:10am UTC](https://tech-community.robotics.abb.com/t/robotstudio-6-0-addin-not-loaded/6436 "2014-12-22T09:10:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Picard1de](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@Picard1de](https://tech-community.robotics.abb.com/u/Picard1de)\
**Post date:** [December 22, 2014, 9:10am UTC](https://tech-community.robotics.abb.com/t/robotstudio-6-0-addin-not-loaded/6436/1 "2014-12-22T09:10:45Z")

</div>

Hello ,  
I´m new to create a RobotStudio AddIn. I downloaded RS6.0 and the RS 6.0 SDK / PC SDK 6.0. I´m using Visual Studio Express 2013. I created a new project using the RobotStudio Sample Add-In template and just compiled it. (.NetFramework 4.5). I placed the dll in the AddIn folder , however when starting RobotStudio the Add-In is not loaded. I get the following exception.

# RobotStudio .NET exception: Exception has been thrown by the target of an invocation.

Base exception: TargetInvocationException  
Exception has been thrown by the target of an invocation.  
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object arguments, Signature sig, Boolean constructor)  
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object parameters, Object arguments)  
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)  
at RobotStudio.ExtensionManagement.Addin.TryLoad()  
Inner exception: NullReferenceException  
Object reference not set to an instance of an object.  
at RobotStudioSampleAddin1.Class1.RegisterCommand(String id)  
at RobotStudioSampleAddin1.Class1.AddinMain()

I´m using Windows 7 / 32 Bit and running a full version of Robotstudio

---

<div class="post-metadata">

**Author:** ![Armandb](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@Armandb](https://tech-community.robotics.abb.com/u/Armandb)\
**Post date:** [February 23, 2015, 3:54pm UTC](https://tech-community.robotics.abb.com/t/robotstudio-6-0-addin-not-loaded/6436/2 "2015-02-23T15:54:49Z")

</div>

Have you create the .rsaddin file ?  
This is a sample, you can create it with notepad.

\<?xml version="1.0" encoding="utf-8" ?\>

General  
Any  
  
Addin.dll  
  
None

After create this file, rename the .txt on .rsaddin.

Just put this file with your .dll

Try it,

best regards
