Giter Club home page Giter Club logo

asp.net-optimization-framework-and-embeded-resource's People

Contributors

imranbaloch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

asp.net-optimization-framework-and-embeded-resource's Issues

JS and CSS files are not found when loaded from server.

Following is code is working fine without error (I have checked with try and catch) FROM AppStart:

BundleTable.VirtualPathProvider = new EmbeddedVirtualPathProvider(HostingEnvironment.VirtualPathProvider);

            //bundle for common js
            BundleTable.Bundles.Add(new ScriptBundle("~/XXXXXXX/Embedded/Js")
            .Include("~/XXXXXXX/Embedded/Scripts.jquery-1.10.2.js")
            .Include("~/XXXXXXX/Embedded/Scripts.jquery-ui.min.js")
            .Include("~/XXXXXXX/Embedded/Scripts.YYYY.js")
            .Include("~/XXXXXXX/Embedded/Scripts.YYYYY.js")
            .Include("~/XXXXXXX/Embedded/Scripts.YYYYYY.js")
            );

BundleTable.Bundles.Add(new StyleBundle("/XXXXXXX/Embedded/SelectCss")
.Include("
/XXXXXXX/Embedded/Style.XX.css")

AND

public static MvcHtmlString RenderSelect(this HtmlHelper html)
{

        var js = Scripts.Render("~/XXXXXXX/Embedded/Js").ToString();
        var css = Styles.Render("~/XXXXXXX/Embedded/SelectCss").ToString();
        return MvcHtmlString.Create(js  + css );
    }

When It is rendered on browser we are able to see Scripts.jquery-1.10.2.js, Scripts.jquery-ui.min.js, etc. But content of this files are like

The page cannot be found

The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.


Please try the following:

  • Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
  • If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.

HTTP Error 404 - File or directory not found.


With HTML syntax’s.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.