Hi all,
I created a webpart with Visual Studio 2003 .Net. I use the webpart template from Microsoft. I changed the manifest.xml and the correspondig dwp-file for the webpart.
I made a keyfile with "sn" and referenced to it.
Then I made a cab file which contains content files and primary output.
Then I use the stsadm tool and I get the error:
"Object reference not set to an instance of an object"
------------------------------------------------------------
Manifst.xml
<Assemblies>
<Assembly FileName="SP_Spector_01.dll">
<!-- Use the <ClassResource> tag to specify resources like image files or JScript files that your Web Parts use. -->
<!-- Note that you must use relative paths when specifying resource files. -->
<!--
<ClassResources>
<ClassResource FileName="Resource.jpg"/>
</ClassResources>
-->
<SafeControls>
<SafeControl
Namespace="SP_Spector_01"
TypeName="*"
/>
</SafeControls>
</Assembly>
</Assemblies>
<DwpFiles>
<DwpFile FileName="Spector.dwp"/>
</DwpFiles>
------------------------------------------------------------------------------------------------
Spector.dwp file
<?xml version="1.0" encoding="utf-8"?>
<WebPart xmlns=" >
<Title>Spector Procurement</Title>
<Description>Spector Procurement Tool</Description>
<Assembly>SP_Spector_01, Version 1.0.0.0, Culture=neutral,PublicKeyToken=dd1c389b97e60c63</Assembly>
<TypeName>SP_Spector_01.Spector</TypeName>
<!-- Specify initial values for any additional base class or custom properties here. -->
</WebPart>
------------------------------------------------------------------------------------------
AssemblyInfo.cs
[assembly: AssemblyKeyFile("C:\\Projects\\Spector\\SP_Spector_01\\Spector.snk")]
--------------------------------------------------------------------------------------------
This is it, but I don't have a clue about what I'm doing wrong.
ANybody an idea?
THX,
Jürgen
I created a webpart with Visual Studio 2003 .Net. I use the webpart template from Microsoft. I changed the manifest.xml and the correspondig dwp-file for the webpart.
I made a keyfile with "sn" and referenced to it.
Then I made a cab file which contains content files and primary output.
Then I use the stsadm tool and I get the error:
"Object reference not set to an instance of an object"
------------------------------------------------------------
Manifst.xml
<Assemblies>
<Assembly FileName="SP_Spector_01.dll">
<!-- Use the <ClassResource> tag to specify resources like image files or JScript files that your Web Parts use. -->
<!-- Note that you must use relative paths when specifying resource files. -->
<!--
<ClassResources>
<ClassResource FileName="Resource.jpg"/>
</ClassResources>
-->
<SafeControls>
<SafeControl
Namespace="SP_Spector_01"
TypeName="*"
/>
</SafeControls>
</Assembly>
</Assemblies>
<DwpFiles>
<DwpFile FileName="Spector.dwp"/>
</DwpFiles>
------------------------------------------------------------------------------------------------
Spector.dwp file
<?xml version="1.0" encoding="utf-8"?>
<WebPart xmlns=" >
<Title>Spector Procurement</Title>
<Description>Spector Procurement Tool</Description>
<Assembly>SP_Spector_01, Version 1.0.0.0, Culture=neutral,PublicKeyToken=dd1c389b97e60c63</Assembly>
<TypeName>SP_Spector_01.Spector</TypeName>
<!-- Specify initial values for any additional base class or custom properties here. -->
</WebPart>
------------------------------------------------------------------------------------------
AssemblyInfo.cs
[assembly: AssemblyKeyFile("C:\\Projects\\Spector\\SP_Spector_01\\Spector.snk")]
--------------------------------------------------------------------------------------------
This is it, but I don't have a clue about what I'm doing wrong.
ANybody an idea?
THX,
Jürgen