markknowsley
Programmer
I'm trying to create a simple web part, and have followed the tutorial on (as well as a tutorial on devx) but can't get the Share Portal server to accept the web part as safe.
I'm trying to develop on a laptop and use one of three portals that we have on our server for deployment
Here's the process I've followed:
1. Downloaded the web part template from MSDN
2. Created a new project, added 'Hello World' to RenderWebPart
3. Created a strong key pair on c:\ on my laptop, set the assembly to point to this .snk file
4. Set the output path of the project to the bin directory of the portal site (on the server this is c:\inetpub\portalname\bin
5. Used sn.exe -T to get the keytoken for the project dll once solution is built, and added this (plus extra info) as a SafeControl to the web.config for the portal site
6. Updated the .dwp file on my laptop in Visual Studio with the assembly info, rebuilt the solution
7. Tried to import the web part onto the default.aspx page of the site, but get told it's not registered as safe
Can anyone see any errors in this process? Are there any better explanations about this development on the web?
Thanks in advance.
Mark.
I'm trying to develop on a laptop and use one of three portals that we have on our server for deployment
Here's the process I've followed:
1. Downloaded the web part template from MSDN
2. Created a new project, added 'Hello World' to RenderWebPart
3. Created a strong key pair on c:\ on my laptop, set the assembly to point to this .snk file
4. Set the output path of the project to the bin directory of the portal site (on the server this is c:\inetpub\portalname\bin
5. Used sn.exe -T to get the keytoken for the project dll once solution is built, and added this (plus extra info) as a SafeControl to the web.config for the portal site
6. Updated the .dwp file on my laptop in Visual Studio with the assembly info, rebuilt the solution
7. Tried to import the web part onto the default.aspx page of the site, but get told it's not registered as safe
Can anyone see any errors in this process? Are there any better explanations about this development on the web?
Thanks in advance.
Mark.