Hi Roger,
SEE UPDATES TO THIS POST BELOW!I just downloaded your code the other day and I feel so close to getting it. I'm trying to use GSP as a usercontrol and plug it into my existing app and existing sql server db. I'm pretty much stuck with these two errors after building my project:
Warning 1 The element 'system.web' has invalid child element 'galleryServerPro'. List of possible elements expected: 'anonymousIdentification, authentication, authorization, browserCaps, clientTarget, compilation, customErrors, deployment, deviceFilters, fullTrustAssemblies, globalization, healthMonitoring, hostingEnvironment, httpCookies, httpHandlers, httpModules, httpRuntime, identity, machineKey, membership, mobileControls, pages, partialTrustVisibleAssemblies, processModel, profile, roleManager, securityPolicy, sessionPageState, sessionState, siteMap, trace, trust, urlMappings, webControls, webParts, webServices, xhtmlConformance, caching'.
and
Error 16 Type 'GalleryServerPro.Web.Gallery' is not defined. C:\xxx\Gallery.aspx.designer.vb 23 33 Seaside2.1
I have read the admin guide cover-to-cover and searched your forums including:
http://www.galleryserver...yserverproconfiggt.aspx and
http://www.galleryserver...scx-does-not-exist.aspx
After following the instructions carefully and attempting a build I first got WindowsBase, Core, WPF reference errors as noted here (http://www.galleryserverpro.com/forum/yaf_postst1114_Integration-issues-with-existing-ASPNet-website.aspx).
I excluded all folders within my "_gs" directory inside my existing vb web application per your instructions in the reply to the above thread and that got rid of the references error, but now I still get errors at build time. On attempting to run my "gallery.aspx" page in a browser, I get a "Could not load type ..." error.
I'm not looking to lose any karma points although I would be indebted to those with some extra Karma to throw my way to help me out.
Regards,
A GSP newbie
UPDATED: I have torn my hair out over this application. Basically, with regards to Visual Studio 2010 and .net 4, if one follows the instructions (to integrate w/ existing site and existing db) in the admin guide perfectly, this application will not work. It will not compile.
This site says you don't have to add references to your app. Well, adding references was the only way for me to even get it to recognize GallleryServerPro.Web.Gallery. Once I added the references (and excluded all the folders in the gs directory), I finally got the app to compile and go through the install wizard. However, after the install completed successfully, my page with the user control will not work. It throws the error:
Could not load file or assembly 'AjaxControlToolkit, Version=1.0.10920.32880, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies....
The admin guide says if you have .net 3.5 or higher that you don't need ajax 1.0. What gives? What can I do to fix this? I tried to add code like this based on posts in the forum:
Code: <runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v2.0.50727">
<dependentAssembly>
<assemblyIdentity name="AjaxControlToolkit" publicKeyToken="28f01b0e84b6d53e" />
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.1.40412.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
But, that doesn't seem to work either. Same error. I tried to see which ajax version I have by viewing the properties of the AjaxToolKit in my references. I already have the AjaxTookKit in my existing project as a reference so I didnt copy the one from the bin folder.
Please help!!! I don't have many hairs left!
Regards,
-Carnac