Use of "user control" into project server webpart
by msnnews.microsoft.com » Fri, 13 Oct 2006 16:56:56 GMT
Hello everybody,
I'm beginning to create webpart on sharepoint 2007 with visual studio 2005.
I wanted to have a design view of what i'm doing so i decided to user "user
control"
in my webpart class i do like this
InnerControl =
Me.Page.LoadControl("_/Layouts/1033/Shortcut_creation.ascx")
in this ascx file i Have
<%@ Control Language="VB" CodeFile="shortcut.vb" Inherits="shortcut" %>
I tried to add <%# import %> <%# assembly %>
because shortcut.vb is my webpart class, and this file is in the assembly
(GAC) How can i tell to the usercontrol, that the file who is catching his
events is shortcut.vb from the ASSEMBLY
Thank you in advance for you help
Yal
PS: I don't want to have inline code!
Re: Use of "user control" into project server webpart
by Rod Gill » Tue, 17 Oct 2006 07:06:47 GMT
We're not usually professional developers in this group so I suspect you
need to post to a SharePoint site with this problem. Project Server 2007uses
pure WSS3.
--
Rod Gill
Project MVP
Visit www.msproject-systems.com for Project Companion Tools and more
Similar Threads:
1.WebPart permission issue when using Microsoft.Office.Project.Server.Library
Hello everybody,
in my custom WebPart for Project 2007 Web Access I am using PSI web
services, and some of them need parameters coming from an external
library called "Microsoft.Office.Project.Server.Library".
An example are those two code lines:
using PSLibrary = Microsoft.Office.Project.Server.Library;
PSLibrary.Filter f = new
Microsoft.Office.Project.Server.Library.Filter();
This filter object is used in the ReadResources method of Resource web
service.
What happens is that I get a System.Security.SecurityException exactly
at the second code line.
Example:
System.Security.SecurityException: That assembly does not allow
partially trusted callers.
at
System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly
asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle
rmh, SecurityAction action, Object demand, IPermission permThatFailed)
at MyNamespace.ConfigurationSettings.GetResourceData()
at MyNamespace.TestWebPart.OnInit(EventArgs e)
in C:\SharePoint\TestWebPart\TestWebPart.cs:line 147
The action that failed was: LinkDemand
The assembly or AppDomain that failed was:
TestWebPart, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=61f51e230a86efb2
The Zone of the assembly that failed was: MyComputer
The Url of the assembly that failed was:
file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/80/bin/TestWebPart.DLL
While my own assemly TestWebPart.dll has the attribute
"AllowPartiallyTrustedCallers" and does of course not run with "full
trust", I am not allowed to use the
Microsoft.Office.Project.Server.Library because this library does not
allow calles from partially trusted callers like my WebPart.
For a long time I thought my assembly has been meant, but no it is
this Microsoft.Office.Project.Server.Library !
Because I may not run the final WebPart in "full trust" what
Permission do I have to assign to my WebPart in order to use that
Microsoft.Office.Project.Server.Library ? Thanks.
Bye
Termin_Terminator
2.Using PWA Reminder webpart within MOSS My site (seperate servers)
Hi,
I'm trying to get some PWA webpart to work within a seperate MOSS (current
intranet) environment.
I should install the Project Server binanries on the MOSS server, but with
no result of getting any of the webparts (reminder webpart). IIS reset dit
nog work and I also looked if the necessary features were enabled.
How to connect both worlds?
Regards, Amancio
3.WebPart permission issue when using Microsoft.Office.Project.Serve
4.Adjusting Columbn width using webpart hacks
5.Using a PWA 2007 webpart within Sharepoint (outside of PWA)
More specifically, my PWA is located at
intranet.companyname.com/projectserver/ and I want to create sites using PWA
web parts at intranet.companyname.com/clientsites/site1/
Jeff
6. inventory control using ms project
7. Frequent crashes of IE when using Active X Control Project Centre
8. Allow Users to Log on Using a Different Windows User Account