|
-
Nov 30th, 2009, 07:58 AM
#1
Thread Starter
Member
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.
-
Nov 30th, 2009, 08:03 AM
#2
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
-
Nov 30th, 2009, 09:27 AM
#3
Thread Starter
Member
Re: Windows 7 IIS Problems
It was build using VS2005 and targetting .net v2
-
Nov 30th, 2009, 09:28 AM
#4
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
-
Nov 30th, 2009, 09:40 AM
#5
Thread Starter
Member
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.
-
Nov 30th, 2009, 09:55 AM
#6
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
-
Nov 30th, 2009, 10:00 AM
#7
Thread Starter
Member
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
-
Nov 30th, 2009, 10:08 AM
#8
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
-
Nov 30th, 2009, 03:17 PM
#9
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.
-
Dec 1st, 2009, 02:33 AM
#10
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
-
Dec 2nd, 2009, 03:35 AM
#11
Thread Starter
Member
Re: Windows 7 IIS Problems
Thanks for all of the suggestions.
I shall try them all.
-
Dec 2nd, 2009, 04:01 AM
#12
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
-
Dec 2nd, 2009, 04:06 AM
#13
Thread Starter
Member
Re: Windows 7 IIS Problems
yeah, will do.
thanks again.
-
Dec 4th, 2009, 10:44 AM
#14
Thread Starter
Member
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.
-
Dec 4th, 2009, 11:30 AM
#15
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.
-
Dec 5th, 2009, 07:29 AM
#16
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|