Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error adding web part with stsadm

Status
Not open for further replies.

bambih

Programmer
Nov 14, 2003
9
BE
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top