logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
judy at Web2Market  
#1 Posted : Tuesday, September 24, 2019 9:23:25 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 289

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
We took a site live yesterday and the web.config is set with <compilation debug="false" targetFramework="4.6.2" />, but I can see the individual js and css files in the network tab of Chrome instead of a bundle. How does bundling work? Is there anything else we need to do?
Thanks
Edit- these are files that are listed in App_Start/BundleConfig.

Edited by user Tuesday, September 24, 2019 9:25:31 AM(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

shari  
#2 Posted : Tuesday, September 24, 2019 9:36:35 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 703

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
This shouldn't be happening with debug=false.

Can you please confirm the following

Did you make any customizations in BundleConfig file?
Are you seeing the issue on the retail side or on the admin?

Please share a screenshot from the console network tab if possible. It ll help to understand the issue.
judy at Web2Market  
#3 Posted : Tuesday, September 24, 2019 10:01:15 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 289

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
I can't completely log in to the admin, but can see the unbundled files on the admin login page. The site is https://estexmfg.com. I can't post a screenshot because paperclip icon is not available.
First part of web.config is:
<?xml version="1.0" encoding="UTF-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=301880
-->
<configuration>
<configSections>
<section name="syscache" type="NHibernate.Caches.SysCache.SysCacheSectionHandler, NHibernate.Caches.SysCache" requirePermission="false" />
</configSections>
<connectionStrings configSource="App_Data\database.config" />
<appSettings>
<add key="webpages:Version" value="3.0.0.0" />
<add key="webpages:Enabled" value="false" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
<add key="Theme" value="Sample" />
<add key="RouteDebugger:Enabled" value="false" />
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
</appSettings>
<syscache>
<cache region="LongTerm" expiration="3600" priority="5" />
<cache region="ShortTerm" expiration="900" priority="3" />
</syscache>
<system.web>
<customErrors mode="On" defaultRedirect="~/Errors/Error" redirectMode="ResponseRewrite">
<error statusCode="404" redirect="~/Errors/PageNotFound"/>
<error statusCode="500" redirect="~/Errors/Error"/>
</customErrors>
<trace enabled="false" requestLimit="100" pageOutput="false" localOnly="true" mostRecent="true"/>
<compilation debug="false" targetFramework="4.6.2" />
<httpRuntime targetFramework="4.6.2" maxRequestLength="20480" />
judy at Web2Market  
#4 Posted : Tuesday, September 24, 2019 10:08:29 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 289

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
Also, bundle.config has not been changed. We have a site in development now where debug is set to false and the scripts are bundled. We saw some funky behavior to the Estex live site in development when we would change the debug- it would do nothing then the next day or so, scripts were bundled. This site went live yesterday.
shari  
#5 Posted : Tuesday, September 24, 2019 11:52:06 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 703

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
I think there is an issue. Changing debug value in web.config doesn't seem to have any impact on running site.

Can you please confirm that were you running your site in debug mode before going live. In the visual studio?

We have handled this in code that while compiling if the visual studio setting is set to debug the bundling will be disabled and if it's compiled in release mode then the bundling will be enabled.

judy at Web2Market  
#6 Posted : Wednesday, September 25, 2019 6:10:40 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 289

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
I'm guessing it was built in debug mode. Since we have to rebuild these sites for so many changes and there are other developers working on the site, any one of us might compile the project. This project had a plugin that had to be compiled into AbleCommerce.dll because the plugin system wasn't fully developed and I think that developer probably compiled in debug mode- we usually do in development.
Just to be clear- changing debug in the web.config has to be done in the solution, then compiled to affect the bundling. Changing it on the live site will not do it? That probably explains some of the behavior that seemed funky with bundling.
momonosuke70826155187  
#7 Posted : Sunday, September 29, 2019 3:38:44 PM(UTC)
momonosuke70826155187

Rank: Newbie

Groups: Authorized User
Joined: 9/29/2019(UTC)
Posts: 0

Originally Posted by: judy at Web2Market Go to Quoted Post
Also, bundle.config has not been changed. We have a site in development now where debug is set to false and the scripts are bundled. We saw some funky shuttle Paris behavior to the Estex live site in development when we would change the debug- it would do nothing then the next day or so, scripts were bundled. This site went live yesterday.



Hello, I did not know that this could have caused such a problem
judy at Web2Market  
#8 Posted : Monday, September 30, 2019 6:13:17 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 289

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
Re the above post- I have no idea how the "shuttle Paris" link was put into my post!
Users browsing this topic
Guest
Forum Jump  
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.