Click here to Skip to main content
15,902,445 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys,

i have published my web application(asp.net),

it includes bootstrap themes, where there is one folder called as 'LESS' in which i have a theme.less file, but this folder with this file is NOT getting publishing.

CAN ANYBODY HELP ME TO SORT OUT THIS..

plzz its urgent...

I FIND ONE CODE:

/**
* Bootstrap-Admin-Template by onokumus@gmail.com
* Version : 2.1.2 
* Author : Osman Nuri Okumuş 
* Copyright 2013
*/
/*
 Name    : style-switcher.js
 Author  : ono <http://onokumus.com />
 Version : 1.0
 */
// Load lesscss files
yepnope.addPrefix('less', function (resourceObj) {
    resourceObj.forceCSS = true;
    resourceObj.attrs = {
        'rel': 'stylesheet/less',
        'type': 'text/css'
    };
    return resourceObj;
});
var styleSwitcher = {
    init: function () {
        var $this = this;
        less = {
            env: 'development'
        };
        // Style Switcher CSS
        yepnope([
        {
            load: 'assets/css/style-switcher.css'
        },
        {
            load: 'assets/lib/colorpicker/css/colorpicker.css'
        },
        {
            load: 'assets/lib/cssbeautify/cssbeautify.js'
        },
        {
            load: 'assets/lib/colorpicker/js/bootstrap-colorpicker.js',
            complete: function () {
                yepnope([
                {
                    load: 'less!assets/less/theme.less'
                },
                {
                    load: 'assets/lib/less-1.5.1.min.js',
                    complete: function () {
                        $this.build();
                        if (Modernizr.localstorage) {
                            if (localStorage.color) {
                                $this.colorSelectorA.css('background-color', localStorage.color);
                            }
                            if (localStorage.pattern) {
                                $this.patternImage = localStorage.pattern;
                            }
                        }
                    }
                }
                ]);
            }
        }
        ]);
    },



Thanks & Best Regards,

ABDUL SUBHAN
Posted
Updated 4-Apr-17 0:28am
v4
Comments
"Not getting published" is not clear. Can you give a clear picture of what you have done to publish the site?
Nelek 19-Dec-13 3:05am    
Don't think we can read minds or do astral projections to see your monitor. If you need help, the least you could do is to add some relevant code to your question or to explain your problem in such a way, that the users of CP can understand it. Otherwise, nobody will be able to help you.

Please use the "improve question" and add relevant information or a piece of code envolved. There are thousands of ways to screw things up, how are we supposed to know which one did you choose?

Please read:What have you tried?[^]

By the way... all questions are urgent. But saying it is not going to bring your answer sooner, people here work, sleep and do private things, then help for free in the spare time. So please be patient
abdul subhan mohammed 19-Dec-13 3:07am    
i have published my web app'n, in which i have one folder LESS which contains... theme.less
but when i published my app'n its not copying this folder'less'with theme.less...
abdul subhan mohammed 19-Dec-13 4:46am    
Dude, i got u, what u want to tell....

But what i'm telling is,
Its nothing about the code... there is no issue of code...

steps what i did:
1.CREATED ONE WEB APPLICATION IN VS-10 IN ASP.NET USING C# AND ALSO ADDED BOOTSTRAP INIT.

2.DEBUG N TESTED

3.PUBLISHED

4.IN IIS, 'CONVERTED INTO APPLICATION'

5.CONFIGURED ITS SETTINGS, LIKE: SELECTING APP'N POOL, LOGIN PAGE AS DEFAULT, ETC.,

6.BROWSE ON IE LOCALHOST

APPLICATION IS RUNNING WELL N GOOD, BUT ITS SHOWING...
-=>"FileError: 'http://localhost/Warehouse/assets/less/theme.less' wasn't found (404)"
ON TOP OF THE PAGE.

THE PROBLEM HERE IS THAT, THE FOLDER 'LESS' IS PRESENT IN MY APP WHEN I CHECKED IN VS-10,
BUT ITS NOT GETTING COPIED AFTER PUBLISHING THE APPLICATION IN PHYSICAL PATH AS:INETPUB,WWWROOT,WEAREHOUSE,ASSESTS,'FILE NOT FOUND(LESS)'

EACH N EVERY FILE WAS COPIED(PUBLISHED) BUT NOT THE "LESS/THEME.LESS".

WHY???

HOW DO I GO, NOW.. PLZ LET ME KNOW...


THANKS
Member 10434230 19-Dec-13 7:36am    
Can you verify your proj file, to see that the files in folder are included correctly

1 solution

Its just matter of one setting to include your file to your published version.

before publishing your website just follow this step.

right click over your file -> theme.less and select properties, then from the build action select "content"

now published your website again, it will include that file to your newly published version.

Reference[^]


if you still facing issue to access that file over web browser you just need to add MIME Types to your iis or web.cofig file

XML
<system.webServer>
  ...
  <staticContent>
    <mimeMap fileExtension=".less" mimeType="text/css" />
  </staticContent>
</system.webServer>
 
Share this answer
 
v2
Comments
abdul subhan mohammed 19-Dec-13 10:46am    
Dear Tejhas, thanQ v.v.v.....much. God Bless You
abdul subhan mohammed 19-Dec-13 11:04am    
Dude, its still showing d same ERROR, even though the folder n file is now got published...
is located but i dont know why it is showing that error... any idea
Tejas Vaishnav 20-Dec-13 0:59am    
I have updated my answer for more solution. please refer that and let me know its working or not?

reference

http://stackoverflow.com/questions/7165624/web-host-does-not-support-less-file-extension
abdul subhan mohammed 21-Dec-13 1:00am    
now i'm getting this error!
"SyntaxError: Object doesn't support this property or method"
&
but this error is not displaying in G-Chrome, but it also not displaying the icon's images:
...
plz let me know, what to do.

thnx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900