|
Home > Archive > Microsoft Content Management Server > March 2006 > CMS 2002 SP2 and VS2005 - Multiple Projects
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
CMS 2002 SP2 and VS2005 - Multiple Projects
|
|
| Mark Mahacek 2006-03-10, 8:47 pm |
| I don't know if I've missed this or not. I am now working on converting my
CMS project over to VS2005 and .NET 2.0. I have been programming the site
in VB as I am not comfortable enough in C. In VS2003 I had setup my
solution with a VB CMS project. I then added a C# project for custom
controls that I got from other sites. This had been working well.
Now that I'm on VS2005, I created my CMS project using the "rational guide."
I'm now adding a C# class library project to my solution. The problem is
that while VB sees the Microsoft.ContentManagement.* libraries, my C#
project does not. These two projects are both in the same solution.
--
Mark Mahacek
Merced County Office of Education
| |
| Stefan [MSFT] 2006-03-14, 2:48 am |
| Hi Mark,
did you add references to the Microsoft.... libraries?
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"Mark Mahacek" <mmahacek@mcoe.org> wrote in message
news:%23QhFiGKRGHA.4952@TK2MSFTNGP09.phx.gbl...
>I don't know if I've missed this or not. I am now working on converting my
>CMS project over to VS2005 and .NET 2.0. I have been programming the site
>in VB as I am not comfortable enough in C. In VS2003 I had setup my
>solution with a VB CMS project. I then added a C# project for custom
>controls that I got from other sites. This had been working well.
>
> Now that I'm on VS2005, I created my CMS project using the "rational
> guide." I'm now adding a C# class library project to my solution. The
> problem is that while VB sees the Microsoft.ContentManagement.* libraries,
> my C# project does not. These two projects are both in the same solution.
>
> --
> Mark Mahacek
> Merced County Office of Education
>
>
>
| |
| Mark Mahacek 2006-03-14, 5:52 pm |
| Doh
Page 337 of Building Websites with MCMS.
I'm triying to build your SiteMapProvider. It doesn't recognize the SiteMap
specific objects.
--
Mark Mahacek
Merced County Office of Education
"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:ukw5$pxRGHA.252@TK2MSFTNGP10.phx.gbl...
> Hi Mark,
>
> did you add references to the Microsoft.... libraries?
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS:
> http://tinyurl.com/6zj44
> Check out the new book as well: Advanced MCMS development:
> http://tinyurl.com/8ugwj
> ----------------------
>
>
> "Mark Mahacek" <mmahacek@mcoe.org> wrote in message
> news:%23QhFiGKRGHA.4952@TK2MSFTNGP09.phx.gbl...
>
>
| |
| Mark Mahacek 2006-03-14, 5:52 pm |
| Stefan,
I'm able to build your SiteMapProvider, but I can't get the web.config to
recognize it on my site. The only change I made was to use a different
namespace to match the rest of my project.
--
Mark Mahacek
Merced County Office of Education
"Mark Mahacek" <mmahacek@mcoe.org> wrote in message
news:uBlfmc4RGHA.4456@TK2MSFTNGP14.phx.gbl...
> Doh
>
> Page 337 of Building Websites with MCMS.
>
> I'm triying to build your SiteMapProvider. It doesn't recognize the
> SiteMap specific objects.
>
> --
> Mark Mahacek
> Merced County Office of Education
>
>
> "Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
> news:ukw5$pxRGHA.252@TK2MSFTNGP10.phx.gbl...
>
>
| |
| Stefan [MSFT] 2006-03-14, 8:47 pm |
| Hi Mark,
SiteMapProviders will be covered in detail in the new book I'm currently
working on together with Mei Ying and Spencer.
Did you follow the instructions here:
http://blogs.technet.com/stefan_gos...ion_Part_1.aspx
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"Mark Mahacek" <mmahacek@mcoe.org> wrote in message
news:up9akM6RGHA.2088@TK2MSFTNGP14.phx.gbl...
> Stefan,
>
> I'm able to build your SiteMapProvider, but I can't get the web.config to
> recognize it on my site. The only change I made was to use a different
> namespace to match the rest of my project.
>
> --
> Mark Mahacek
> Merced County Office of Education
>
>
> "Mark Mahacek" <mmahacek@mcoe.org> wrote in message
> news:uBlfmc4RGHA.4456@TK2MSFTNGP14.phx.gbl...
>
>
| |
| Mark Mahacek 2006-03-14, 8:47 pm |
| That's the page I got your code from to build the provider. The ASP error
coming back looks like it can't find the complied code, even though the DLL
is added to the reference.
I'm getting a similar error with your SimpleMCMSMembershipProvider.
Looking forward to another book.
--
Mark Mahacek
Merced County Office of Education
"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:OM78Gt8RGHA.2088@TK2MSFTNGP14.phx.gbl...
> Hi Mark,
>
> SiteMapProviders will be covered in detail in the new book I'm currently
> working on together with Mei Ying and Spencer.
> Did you follow the instructions here:
> http://blogs.technet.com/stefan_gos...ion_Part_1.aspx
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS:
> http://tinyurl.com/6zj44
> Check out the new book as well: Advanced MCMS development:
> http://tinyurl.com/8ugwj
> ----------------------
>
>
> "Mark Mahacek" <mmahacek@mcoe.org> wrote in message
> news:up9akM6RGHA.2088@TK2MSFTNGP14.phx.gbl...
>
>
| |
| Stefan [MSFT] 2006-03-14, 8:47 pm |
| Hi Mark,
could you please post the complete error message?
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"Mark Mahacek" <mmahacek@mcoe.org> wrote in message
news:uUN0Ox8RGHA.2176@TK2MSFTNGP10.phx.gbl...
> That's the page I got your code from to build the provider. The ASP error
> coming back looks like it can't find the complied code, even though the
> DLL is added to the reference.
>
> I'm getting a similar error with your SimpleMCMSMembershipProvider.
>
> Looking forward to another book.
>
> --
> Mark Mahacek
> Merced County Office of Education
>
>
> "Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
> news:OM78Gt8RGHA.2088@TK2MSFTNGP14.phx.gbl...
>
>
| |
| Mark Mahacek 2006-03-15, 5:52 pm |
| This error actually is from my MembershipProvider as I've removed the .NET
2.0 navigation controls, but they both give the same error.
VS2005 has the following in the solution explorer
Solution 'www.mydomain.org' (3 projects)
-http://localhost/www.mydomain.org/ (VB Visual Web Developer)
-MCOECustom (C# Web Control Libary)
-MCOEProviders (C# Class Library)
Each of the projects and the entire solution build without errors.
~~~~~~~~~~~~~~~~~~~~~~~~~~
Server Error in '/www.mydomain.org' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly
'MCMSMembershipProvider' or one of its dependencies. The system cannot find
the file specified.
Source Error:
Line 97: <membership defaultProvider="SimpleMCMSMembershipProvider"
userIsOnlineTimeWindow="30">
Line 98: <providers>
Line 99: <add name="SimpleMCMSMembershipProvider"
type="MCOEProviders.SimpleMCMSMembershipProvider, MCMSMembershipProvider"
applicationName="/" />
Line 100: </providers>
Line 101: </membership>
Source File: C:\cms_sites\mydomain_home\www.mydomain.org\web.config Line:
99
Assembly Load Trace: The following information can be helpful to determine
why the assembly 'MCMSMembershipProvider' could not be loaded.
=== Pre-bind state information ===
LOG: User = NT AUTHORITY\NETWORK SERVICE
LOG: DisplayName = MCMSMembershipProvider
(Partial)
LOG: Appbase = file:///C:/cms_sites/mcoe_home/www.mcoe.org/
LOG: Initial PrivatePath = C:\cms_sites\mcoe_home\www.mcoe.org\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file:
C:\cms_sites\mydomain_home\www.mydomain.org\web.config
LOG: Using host configuration file:
\\?\c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/www.mcoe.org/d2a914e2/9700ef0b/MCMSMembershipProvider.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/www.mcoe.org/d2a914e2/9700ef0b/MCMSMembershipProvider/MCMSMembershipProvider.DLL.
LOG: Attempting download of new URL
file:///C:/cms_sites/mcoe_home/www.mcoe.org/bin/MCMSMembershipProvider.DLL.
LOG: Attempting download of new URL
file:///C:/cms_sites/mcoe_home/www.mcoe.org/bin/MCMSMembershipProvider/MCMSMembershipProvider.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/www.mcoe.org/d2a914e2/9700ef0b/MCMSMembershipProvider.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/www.mcoe.org/d2a914e2/9700ef0b/MCMSMembershipProvider/MCMSMembershipProvider.EXE.
LOG: Attempting download of new URL
file:///C:/cms_sites/mcoe_home/www.mcoe.org/bin/MCMSMembershipProvider.EXE.
LOG: Attempting download of new URL
file:///C:/cms_sites/mcoe_home/www.mcoe.org/bin/MCMSMembershipProvider/MCMSMembershipProvider.EXE.
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42
| |
| Stefan [MSFT] 2006-03-16, 7:48 am |
| Hi Mark,
looks as if there is no such dll:
C:\cms_sites\mcoe_home\www.mcoe.org\bin\MCMSMembershipProvider.dll
Please double check.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"Mark Mahacek" <mmahacek@mcoe.org> wrote in message
news:ufcPF7ESGHA.196@TK2MSFTNGP10.phx.gbl...
> This error actually is from my MembershipProvider as I've removed the .NET
> 2.0 navigation controls, but they both give the same error.
>
> VS2005 has the following in the solution explorer
>
> Solution 'www.mydomain.org' (3 projects)
> -http://localhost/www.mydomain.org/ (VB Visual Web Developer)
> -MCOECustom (C# Web Control Libary)
> -MCOEProviders (C# Class Library)
>
> Each of the projects and the entire solution build without errors.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Server Error in '/www.mydomain.org' Application.
> --------------------------------------------------------------------------------
>
> Configuration Error
> Description: An error occurred during the processing of a configuration
> file required to service this request. Please review the specific error
> details below and modify your configuration file appropriately.
>
> Parser Error Message: Could not load file or assembly
> 'MCMSMembershipProvider' or one of its dependencies. The system cannot
> find the file specified.
>
> Source Error:
>
>
> Line 97: <membership defaultProvider="SimpleMCMSMembershipProvider"
> userIsOnlineTimeWindow="30">
> Line 98: <providers>
> Line 99: <add name="SimpleMCMSMembershipProvider"
> type="MCOEProviders.SimpleMCMSMembershipProvider, MCMSMembershipProvider"
> applicationName="/" />
> Line 100: </providers>
> Line 101: </membership>
>
>
> Source File: C:\cms_sites\mydomain_home\www.mydomain.org\web.config
> Line: 99
>
> Assembly Load Trace: The following information can be helpful to determine
> why the assembly 'MCMSMembershipProvider' could not be loaded.
>
>
> === Pre-bind state information ===
> LOG: User = NT AUTHORITY\NETWORK SERVICE
> LOG: DisplayName = MCMSMembershipProvider
> (Partial)
> LOG: Appbase = file:///C:/cms_sites/mcoe_home/www.mcoe.org/
> LOG: Initial PrivatePath = C:\cms_sites\mcoe_home\www.mcoe.org\bin
> Calling assembly : (Unknown).
> ===
> LOG: This bind starts in default load context.
> LOG: Using application configuration file:
> C:\cms_sites\mydomain_home\www.mydomain.org\web.config
> LOG: Using host configuration file:
> \\?\c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
> LOG: Using machine configuration file from
> C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
> LOG: Policy not being applied to reference at this time (private, custom,
> partial, or location-based assembly bind).
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
> Files/www.mcoe.org/d2a914e2/9700ef0b/MCMSMembershipProvider.DLL.
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
> Files/www.mcoe.org/d2a914e2/9700ef0b/MCMSMembershipProvider/MCMSMembershipProvider.DLL.
> LOG: Attempting download of new URL
> file:///C:/cms_sites/mcoe_home/www.mcoe.org/bin/MCMSMembershipProvider.DLL.
> LOG: Attempting download of new URL
> file:///C:/cms_sites/mcoe_home/www.mcoe.org/bin/MCMSMembershipProvider/MCMSMembershipProvider.DLL.
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
> Files/www.mcoe.org/d2a914e2/9700ef0b/MCMSMembershipProvider.EXE.
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
> Files/www.mcoe.org/d2a914e2/9700ef0b/MCMSMembershipProvider/MCMSMembershipProvider.EXE.
> LOG: Attempting download of new URL
> file:///C:/cms_sites/mcoe_home/www.mcoe.org/bin/MCMSMembershipProvider.EXE.
> LOG: Attempting download of new URL
> file:///C:/cms_sites/mcoe_home/www.mcoe.org/bin/MCMSMembershipProvider/MCMSMembershipProvider.EXE.
>
>
> --------------------------------------------------------------------------------
> Version Information: Microsoft .NET Framework Version:2.0.50727.42;
> ASP.NET Version:2.0.50727.42
>
>
>
| |
| Mark Mahacek 2006-03-16, 5:51 pm |
| (slaps hand on forehead)
I should have seen that. It's working perectly now.
--
Mark Mahacek
Merced County Office of Education
"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:OEOAKFJSGHA.4920@tk2msftngp13.phx.gbl...
> Hi Mark,
>
> looks as if there is no such dll:
>
> C:\cms_sites\mcoe_home\www.mcoe.org\bin\MCMSMembershipProvider.dll
>
> Please double check.
>
> Cheers,
> Stefan
>
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS:
> http://tinyurl.com/6zj44
> Check out the new book as well: Advanced MCMS development:
> http://tinyurl.com/8ugwj
> ----------------------
>
>
> "Mark Mahacek" <mmahacek@mcoe.org> wrote in message
> news:ufcPF7ESGHA.196@TK2MSFTNGP10.phx.gbl...
>
>
|
|
|
|
|