Solved

asp.net 4.0 on new IIS7.5 server

Posted on 2013-01-24
5
860 Views
Last Modified: 2013-01-25
New install of 2008R2 added role IIS7.5

Have very little experience with 7.5,  90% of my sites run on 6.0. and asp.net 2.0

Copied a asp.net 4.0 site to the iis7.5 webserver. Created a new website and set the bindings.


I did see that Framework 4 Client profile and 4 Extended are installed, do I need to download more?

Surprised there was not a asp.net application pool already defined so I created a Classic 4.0 app pool, but when I run the site I get a 404 error.

When I changed it back to default apppool I get an ASP.NET error unrecognized target framework, but it does the find the site.

Is there something I need to do to set permission for the new app pool?

Or am I on the wrong track entirely?

Thanks,

Rolf
0
Comment
Question by:rolfg
  • 3
  • 2
5 Comments
 
LVL 14

Accepted Solution

by:
binaryevo earned 500 total points
ID: 38818659
You shouldn't have to.  Did you map the site to the directory where the site resides ( im sure you already checked that though )?  Ive never deployed a site per say the way your doing it, I typically grab the full .net framework.  I would suggest trying that out to see if maybe that would be the fastest way to get your site up and working since it probably involves the least amount of work.  Once you install that make sure that the app pool is pointed to the right version of the framework and your site should work.  Is there anything in the .net app that has dependencies ( may want to check this also )?
0
 

Author Comment

by:rolfg
ID: 38818698
It's actually a bit more complicated.

I reinstalled the os, the old inetpub/wwwroot directory were still there from before the install.

All I did was create a website and point it to that pre existing directory. And then added the asp.net 4 pool since it was not there... I do not recall having to do this on other installs.

Wondering if I missed something during the install.

Rolf
0
 

Author Comment

by:rolfg
ID: 38819129
Baffled by the fact that the framework 4.0 app pools were not listed on the iis server, only 2.0 even though Programs and features said they were, I downloaded the full 4.0 framework and re-installed.

Choices were repair and remove, confirming it was installed. Did repair and voila the 4.0 application pools showed up. I deleted the one I had created, picked the one that came from the installer and the site works.
0
 

Author Comment

by:rolfg
ID: 38819240
I've requested that this question be closed as follows:

Accepted answer: 0 points for rolfg's comment #a38819129
Assisted answer: 250 points for binaryevo's comment #a38818659

for the following reason:

Thanks!
0
 
LVL 14

Expert Comment

by:binaryevo
ID: 38819164
So my suggestion for installing the full .net version turned out to fix the issue ( regardless of which option you picked on install ).  I would appreciate the points.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now