문제

I recently switched from Vista to Windows 7 (with IIS 7.5). But i can't seem to get it fully working. My problem: I run Visual Studio 2008 (sp1) (run as administrator) and i see my WebSite (webforms).

I publish my website, and all seems well, except my layout is wasted.. why? i get a 404 on my CSS and javascript file.

I read an article that you need content server (service?) installed. After some translation i figured that should be "Statische inhoud" (dutch.. translated static content).

I triple checked that the .js and .css files are in te folder i'm pointing to (tried root folder of the website), but all in veighn...

Here is my IIS-component list that is installed (in dutch). Anyone able to figure out why i get 404's? or even beter, how do i fix it?

http://img69.imageshack.us/img69/4026/iis.png

도움이 되었습니까?

해결책 2

Well, i finally figured it out :)

Hope some else will be helped by this answer: It was related to the Static File Module.

Microsoft has a solution which did not work for me. http://support.microsoft.com/kb/942052/

It was already configured this way. But i deleted it, added it again, i could access my CSS... but ASPX didn't work anymore. The Fix for that issue: Make the list Sorted, and move your static filehandler to the bottom (or a least after aspx, but probably the best is at the bottem).

Thanxs everyone for the pointers though!

다른 팁

직접적이지는 않지만 일반적인 Factory 팩토리 (SIC)를 일반적인 방법으로 사용할 수 있으며 메소드 에 대한 유형 매개 변수에 유형 제약 조건을 놓고 대리자를 제공하는 데 사용합니다.제한되지 않은 Factory<T> 클래스에.

static class Factory
{
    public static Factory<T> FromConstructor<T>() where T : new()
    {
        return new Factory<T>(() => new T());
    }
}

class Factory<TProduct>
{
    public Factory(Func<TProduct> build)
    {
        this.build = build;
    }

    public TProduct Build()
    {
        return build();
    }

    private Func<TProduct> build;
}
.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top