M
M Noreen
I'm unable to build a web project that has a custom .NET control that I
downloaded
(from: http://blogs.msdn.com/dmitryr/archive/2006/03/26/561200.aspx)
I'm running VS 2005, ASP.NET 2.0 on my local development box. I created a
new web site with a single test page in it. I also right-clicked the
project added a Bin folder. Then I added the DLL that I downloaded to that
Bin folder. Then I copy/pasted the sample code included from the download
into a new .aspx page which included a Register Assembly directive:
<%@ Register Assembly="RssToolkit, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=d9202816019f11ea" Namespace="RssToolkit" TagPrefix="cc1" %>
But when I try to build I get two errors
Error 2 Element 'rssdatasource' is not a known element. This can occur if
there is a compilation error in the Web site. \\oicpfp1\home\e000082\My
Documents\Visual Studio 2005\WebSites\WebSite3\Default.aspx 27 29
\\oicpfp1\home\...\WebSite3\
Error 3 Request for the permission of type
'System.Web.AspNetHostingPermission, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
\\oicpfp1\home\e000082\My Documents\Visual Studio
2005\WebSites\WebSite3\Default.aspx 27
Any suggestions on what to do would be greatly appreciated.
-- Margo
(FWIW, the doc file that also came w/ the download said:
"... RSS Toolkit works in Medium Trust (RssToolkit.dll Assembly either in
GAC or in 'bin' ..."
)
So I thought just by copying the .dll file into the Bin directory of my
project, it should work...
downloaded
(from: http://blogs.msdn.com/dmitryr/archive/2006/03/26/561200.aspx)
I'm running VS 2005, ASP.NET 2.0 on my local development box. I created a
new web site with a single test page in it. I also right-clicked the
project added a Bin folder. Then I added the DLL that I downloaded to that
Bin folder. Then I copy/pasted the sample code included from the download
into a new .aspx page which included a Register Assembly directive:
<%@ Register Assembly="RssToolkit, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=d9202816019f11ea" Namespace="RssToolkit" TagPrefix="cc1" %>
But when I try to build I get two errors
Error 2 Element 'rssdatasource' is not a known element. This can occur if
there is a compilation error in the Web site. \\oicpfp1\home\e000082\My
Documents\Visual Studio 2005\WebSites\WebSite3\Default.aspx 27 29
\\oicpfp1\home\...\WebSite3\
Error 3 Request for the permission of type
'System.Web.AspNetHostingPermission, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
\\oicpfp1\home\e000082\My Documents\Visual Studio
2005\WebSites\WebSite3\Default.aspx 27
Any suggestions on what to do would be greatly appreciated.
-- Margo
(FWIW, the doc file that also came w/ the download said:
"... RSS Toolkit works in Medium Trust (RssToolkit.dll Assembly either in
GAC or in 'bin' ..."
)
So I thought just by copying the .dll file into the Bin directory of my
project, it should work...