Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Next and Previous buttons don't work
sphinx
#1 Posted : Tuesday, 6 July 2010 4:56:59 PM(UTC)
Rank: Member

Joined: 30/06/2010(UTC)
Posts: 4
Location: San Diego, US

Hi Roger,

I really appreciate your product. I integrated Gallery Server Pro into existing web site (ASP.net Framework 2) it works fine on my development server and IIS 7.5. However, when I deploy my website to host server, those buttons don't work.

Here is the errors:

Line: 470
Error: 'Gsp' is undefined

and

Line: 155
Error: 'Gsp.Gallery' is null or not an object

You can check my site at http://www.miramaraikido.com/Galleries.aspx

Thanks

Roger Martin
#2 Posted : Wednesday, 7 July 2010 5:28:52 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Using Firebug on your site I see this error:

"The requested URL /gs/services/Gallery.asmx/jsdebug was not found on this server."

Check to see if you have Gallery.asmx in the specified directory. If you do, then there may be something misconfigured in your web.config, probably the handler for .asmx requests. Compare your <httpHandlers> and <handlers> sections with the ones that ship with GSP. If you can't figure it out, post or send me your web.config file and I'll take a look.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
sphinx
#3 Posted : Wednesday, 7 July 2010 7:23:13 AM(UTC)
Rank: Member

Joined: 30/06/2010(UTC)
Posts: 4
Location: San Diego, US

Hi Roger,

Thank you for your help. I checked and the file Gallery.asmx is in that dir.

here is my web.config

<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web">
<section name="galleryServerPro" type="GalleryServerPro.Configuration.GalleryServerProConfigSettings, GalleryServerPro.Configuration" allowDefinition="MachineToApplication" restartOnExternalChanges="true" requirePermission="false"/>
</sectionGroup>
<section name="cachingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Caching.Configuration.CacheManagerSettings, Microsoft.Practices.EnterpriseLibrary.Caching" requirePermission="false"/>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<connectionStrings>
<clear/>
<add name="SQLiteDbConnection" connectionString="Data Source=|DataDirectory|galleryserverpro_data.sqlite;Version=3;"/>
<add name="SqlServerDbConnection" connectionString="Data Source=(local);Initial Catalog=GalleryServerPro;Integrated Security=true;Application Name=Gallery Server Pro"/>
</connectionStrings>
<appSettings>
<add key="ComponentArtScriptControls" value="PerControl"/>
</appSettings>
<cachingConfiguration defaultCacheManager="Cache Manager">
<cacheManagers>
<add expirationPollFrequencyInSeconds="60" maximumElementsInCacheBeforeScavenging="1000" numberToRemoveWhenScavenging="10" backingStoreName="Null Storage" name="Cache Manager"/>
</cacheManagers>
<backingStores>
<add encryptionProviderName="" type="Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.NullBackingStore, Microsoft.Practices.EnterpriseLibrary.Caching" name="Null Storage"/>
</backingStores>
</cachingConfiguration>
<system.web>
<pages theme="" styleSheetTheme="" validateRequest="false">
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
</pages>
<galleryServerPro configSource="gs\config\galleryserverpro.config"/>
<!-- <trust level="Full" /> -->
<globalization uiCulture="auto:en" culture="auto:en-US"/>
<xhtmlConformance mode="Strict"/>
<compilation debug="true">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>
<!-- The <authentication> section enables configuration of the security authentication mode used by
ASP.NET to identify an incoming user.
The timeout is set to 129,600 minutes by default, which is 90 days. This allows the user to be automatically
logged in (requires selecting the "Remember Me" checkbox during login which sets a persistent cookie).
Note that when the user clicks "Log out", the persistent cookie is removed and the user will have to
log in next time. -->
<authentication mode="Forms">
<forms protection="All" timeout="129600" slidingExpiration="true"/>
</authentication>
<authorization>
<!-- <deny users="?" />-->
</authorization>
<!-- Configure the Membership provider.-->
<membership defaultProvider="SQLiteMembershipProvider">
<providers>
<clear/>
<add applicationName="Gallery Server Pro" passwordFormat="Clear" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="2" maxInvalidPasswordAttempts="50" enablePasswordReset="true" enablePasswordRetrieval="true" passwordAttemptWindow="10" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" connectionStringName="SQLiteDbConnection" name="SQLiteMembershipProvider" type="GalleryServerPro.Data.SQLite.SQLiteMembershipProvider"/>
<add applicationName="Gallery Server Pro" passwordFormat="Clear" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="2" maxInvalidPasswordAttempts="50" enablePasswordReset="true" enablePasswordRetrieval="true" passwordAttemptWindow="10" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" connectionStringName="SqlServerDbConnection" name="SqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider"/>
</providers>
</membership>
<!-- Configure the Role provider.-->
<roleManager enabled="true" cacheRolesInCookie="true" cookieProtection="Validation" defaultProvider="SQLiteRoleProvider">
<providers>
<clear/>
<add applicationName="Gallery Server Pro" connectionStringName="SQLiteDbConnection" name="SQLiteRoleProvider" type="GalleryServerPro.Data.SQLite.SQLiteRoleProvider"/>
<add applicationName="Gallery Server Pro" connectionStringName="SqlServerDbConnection" name="SqlRoleProvider" type="System.Web.Security.SqlRoleProvider"/>
</providers>
</roleManager>
<!-- Configure the Profile provider.-->
<profile defaultProvider="SQLiteProfileProvider">
<providers>
<clear/>
<add applicationName="Gallery Server Pro" connectionStringName="SQLiteDbConnection" name="SQLiteProfileProvider" type="GalleryServerPro.Data.SQLite.SQLiteProfileProvider"/>
<add applicationName="Gallery Server Pro" connectionStringName="SqlServerDbConnection" name="SqlProfileProvider" type="System.Web.Profile.SqlProfileProvider"/>
</providers>
<properties>
<add name="ShowMediaObjectMetadata" defaultValue="false" type="String" allowAnonymous="false"/>
<add name="UserAlbumId" defaultValue="0" type="Int32" allowAnonymous="false"/>
<add name="EnableUserAlbum" defaultValue="true" type="String" allowAnonymous="false"/>
</properties>
</profile>
<httpHandlers>
<remove verb="*" path="*.asmx" />
<add verb="*" path="ComponentArtUploadProgress.axd" type="ComponentArt.Web.UI.UploadProgressHandler, ComponentArt.Web.UI" />
<add verb="*" path="ComponentArtScript.axd" type="ComponentArt.Web.UI.ScriptHandler,ComponentArt.Web.UI" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
</httpHandlers>
<httpModules>
<add name="ComponentArtUploadModule" type="ComponentArt.Web.UI.UploadModule, ComponentArt.Web.UI"/>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
<sessionState mode="InProc" timeout="60"/>
<!-- The <customErrors> section controls what happens if/when an unhandled error occurs. This setting is
ignored if enableExceptionHandler=true in galleryserverpro.config.
The mode attribute must be one of these values: Off (No redirection is performed; all users get detailed
error message), On (all users are redirected to friendly error page), RemoteOnly (local users see detailed
error message, remote users are redirected) -->
<customErrors mode="Off"/>
</system.web>
<!--
The site admin page lets you specify the smtp server and port, and the entries are stored in galleryserverpro.config.
If you need to specify a username and password, you can do so here. When this section is configured, the smtp
server and port in galleryserverpro.config are ignored, so make sure to include the server and port here. Uncomment
the section below to make it take effect. -->
<!--
<system.net>
<mailSettings>
<smtp>
<network
host="relayServerHostname"
port="portNumber"
userName="username"
password="password" />
</smtp>
</mailSettings>
</system.net>
-->
<!-- By default ASP.NET prevents file uploads larger than 4 MB. To change this, increase the maxRequestLength
attribute for all pages that host the Gallery Server Pro user control. Ex: To allow files up to 2 GB, use
maxRequestLength="2097151". This value should be the same or higher than the maxUploadSize setting in
galleryserverpro.config (which is exposed on the Site admin - Media objects - General page). The maxUploadSize
setting is the preferred way to manage upload sizes, as GSP provides a friendly message when that value is
violated, which is not possible when maxRequestLength is violated.

It is also recommended to increase the timeout from the default value
of 90 seconds to allow for long-running tasks such as file uploads. Set the
executionTimeout attribute to the desired value (8 hours = 28800, 24 hrs = 86400). -->
<location path="Galleries.aspx">
<system.web>
<httpRuntime maxRequestLength="2097151" executionTimeout="86400"/>
</system.web>
</location>
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="2147483647"/>
</webServices>
<scriptResourceHandler enableCompression="true" enableCaching="true"/>
</scripting>
</system.web.extensions>
<system.webServer>
<!--
By default IIS 7 restricts uploads larger than about 30 MB. To allow larger uploads, use the <requestFiltering>
element to set a new value. The attribute maxAllowedContentLength is in bytes, so to set a new value of 2 GB,
use 2147483648 (2 * 1024 * 1024 * 1024).
Note: If you get an error that requestFiltering cannot be overriden you must edit
%windir%\System32\inetsrv\config\applicationHost.config file and change the string:
<section name="requestFiltering" overrideModeDefault="Deny" />
to:
<section name="requestFiltering" overrideModeDefault="Allow" />
-->
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483648"/>
</requestFiltering>
</security>

<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ScriptModule"/>
<remove name="ComponentArtUploadModule"/>
<add name="ComponentArtUploadModule" type="ComponentArt.Web.UI.UploadModule, ComponentArt.Web.UI"/>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory" />
<remove name="ScriptHandlerFactoryAppServices" />
<remove name="ScriptResource" />
<remove name="ComponentArtUpload" />
<remove name="ComponentArtScriptHandler" />
<add name="ComponentArtUpload" path="ComponentArtUploadProgress.axd" type="ComponentArt.Web.UI.UploadProgressHandler, ComponentArt.Web.UI" verb="*" />
<add name="ComponentArtScriptHandler" path="ComponentArtScript.axd" type="ComponentArt.Web.UI.ScriptHandler,ComponentArt.Web.UI" verb="*" />
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</handlers>

<defaultDocument>
<files>
<remove value="Galleries.aspx"/>
<add value="Galleries.aspx"/>
</files>
</defaultDocument>
</system.webServer>
</configuration>


Sincerely,
sphinx
#4 Posted : Thursday, 8 July 2010 5:10:41 PM(UTC)
Rank: Member

Joined: 30/06/2010(UTC)
Posts: 4
Location: San Diego, US

Hi Mr. Roger,

Could you please take a look at my web.config? I couldn't figure what missing.

Sincerely
Roger Martin
#5 Posted : Tuesday, 27 July 2010 1:05:02 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Check to see if your application pool is running under Classic mode. It should be running in Integrated mode.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
sphinx
#6 Posted : Wednesday, 28 July 2010 1:36:51 AM(UTC)
Rank: Member

Joined: 30/06/2010(UTC)
Posts: 4
Location: San Diego, US

Hi Mr. Roger,

I checked my web hosting site and be sure that application pool is running in Integrated mode. But I still cannot browse to next or previous photo.

Sincerely,

Sphinx
Roger Martin
#7 Posted : Wednesday, 28 July 2010 12:40:26 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I don't see anything wrong with your web.config file. Notice that your server won't serve the javascript file required for the ajax web service calls:

http://www.miramaraikido...es/Gallery.asmx/jsdebug

Notice how it works correctly on the demo site:

http://www.galleryserver...es/Gallery.asmx/jsdebug

I really don't know what could cause this, but I am pretty sure the root cause lies with your server configuration. I googled around and couldn't come up with anything, but you might search a little harder. Another thing you can try is to reinstall the MS Ajax 1.0 Extensions.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.