Solved

asp.net 4.0 on new IIS7.5 server

Posted on 2013-01-24
5
853 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

747 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

8 Experts available now in Live!

Get 1:1 Help Now