Results 1 to 16 of 16

Thread: Windows 7 IIS Problems

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2009
    Posts
    39

    Exclamation Windows 7 IIS Problems

    I have looked for an answer to this but have had no luck so here i am.

    I have a pre-compiled site that is deployed on several laptops to run locally under IIS.

    I have it working on Vista but i have now been given 10 laptops that have windows7 installed for it to run on.

    I've set everything up the same as on the vista machines but all i get is the dreaded 'file is not pre-compiled' error message.

    The files are identical on the 2 laptops and i've been through IIS and made sure that all of the settings are the same and i've checked the permissions on the folders where the site is located and all seems to be the same.

    Does anyone have any ideas as to anything else i can check?

    Are there any differences in the setup of IIS in Windows 7?

    my boss is breathing down my neck to get this sorted and i'm all out of ideas.
    Please help!

    thanks.

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Windows 7 IIS Problems

    Hey,

    What version of Visual Studio did you use to create the application? And which version of the .Net Framework are you targetting?

    Gary

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2009
    Posts
    39

    Re: Windows 7 IIS Problems

    It was build using VS2005 and targetting .net v2

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Windows 7 IIS Problems

    Hey,

    So the first thing to check would be that .Net Framework 2.0 is installed and correctly configured in IIS on the laptops.

    Gary

  5. #5

    Thread Starter
    Member
    Join Date
    Jan 2009
    Posts
    39

    Re: Windows 7 IIS Problems

    Its not listed in the add/remove programs, only 3.5.
    doesnt that include v2? do i really need to install it separately?

    thanks for the help.

  6. #6
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Windows 7 IIS Problems

    Hey,

    .Net 3.0 and .Net 3.5 are based on .Net 2.0, so in theory, it should be there.

    The question would be whether ASP.Net has been registered in IIS correctly. I am not on a machine that has IIS 7 installed, so I can't do some confirmations for you.

    Gary

  7. #7

    Thread Starter
    Member
    Join Date
    Jan 2009
    Posts
    39

    Re: Windows 7 IIS Problems

    thanks for the ideas.
    I'll go back and have another look.
    its weird. everything seems to be the same but there is obviously something different somewhere along the line.

    cheers

  8. #8
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Windows 7 IIS Problems

    Hey,

    If you haven't done so already, I would suggest you have a look at the following:

    http://msdn.microsoft.com/en-us/library/bb763174.aspx

    Gary

  9. #9
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Windows 7 IIS Problems

    This can happen if not all of the DLLs that your app needs have been copied over. So, how did you deploy to the Win7 machines?

    Try deploying again but make sure that all of your DLLs are there. Especially non-.NET ones. Have a look at your references and match it up with the bin folder. Have a look at the .config file and its references and make sure it matches what's in the bin folder.

  10. #10
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Windows 7 IIS Problems

    Another thing might be if you have assemblies in the GAC on one machine, that haven't been registered on the other machines. Making sure all the necessary assemblies are in your applications bin directory will correct this though.

    Gary

  11. #11

    Thread Starter
    Member
    Join Date
    Jan 2009
    Posts
    39

    Re: Windows 7 IIS Problems

    Thanks for all of the suggestions.
    I shall try them all.

  12. #12
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Windows 7 IIS Problems

    Hey,

    If you get it working, remember to post your solution back here, that way other people can benefit as well.

    Gary

  13. #13

    Thread Starter
    Member
    Join Date
    Jan 2009
    Posts
    39

    Re: Windows 7 IIS Problems

    yeah, will do.
    thanks again.

  14. #14

    Thread Starter
    Member
    Join Date
    Jan 2009
    Posts
    39

    Re: Windows 7 IIS Problems

    OK, i found a fix.

    it was all down to the assemblies that were included. and SQL Server express.

    I had SQL Express 2008 installed and this worked fine on the XP laptops. however.......

    Initially, there was a message saying that 2008 had 'known compatibility issues' with Wondows 7. But i plowed on through and everything seemed to be ok.

    I tracked the error to a dll that 2008 seems to remove.

    I uninstalled 2008, located a copy of 2005 Express and voila....all was well with the world.

    so, there is your answer. if you are using windows 7, and you want a SQL Server database, use 2005.



    thanks again for the help.


  15. #15
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Windows 7 IIS Problems

    SQL 2008 works fine on Win 7 and Win 2008 R2 for me, might be updates or something similar missing. But if that works for you, good enough.

  16. #16
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Windows 7 IIS Problems

    Hmmm, I have to say that I also have SQL Server 2008 on my Windows 7 machine, and it works just fine.

    Gary

    P.S. Remember to mark your thread resolved if your question has been answered.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width