Last post Jun 18, 2015 03:14 PM by KROL_23
Jun 15, 2015 03:39 PM|KROL_23|LINK
In writing one of my first ASP websites, I have come across a little bit of a problem. I was asked to display a few reports for customers over the web. I originally was using a simple Calendar Web server control provided by the framework, but quickly realized
it really wasn't feasible to have postback occurring with every date change of the calendar, especially since I would have to incorporate 2 calendar controls in-order to get a date range for the report. I did some research, and found that I could use a calendar
extension control from the AJAX control toolkit. I found how simple this control was to use, and incorporated it into my project.
Everything was working great on my development machine, but as soon as I moved it to the server, I came across the error that I attached to this message(I hope I did at least!)-
Unrecognized attribute 'targetFramework'.
<compilation debug="true" batch="false" targetFramework="4.0">
(I hope you can see the image, or at least put together what is going on with the unrecognized 'TargetFramework' attribute). I did a little more research and found out that older versions on the Framework do not support the AJAX control toolkit. I then
found out a little about Framework 4.0 and how it incorporates an 'AppPool', which from my understanding, isolates different websites apart from one another; This includes a definition of the Framework used.
I have found a few different approaches to solve my issue, which includes registering the site to specify which version of the framework the AppPool is using. My problem is, I am not really sure what to do from here. We have a few other websites on this
server, that were developed using framework 2.0, and I do not want to disturb them in any way.
On the development machine I am running IIS V5.1, and it is a windows XP machine with SP3 installed. The server is running Windows Server 2003 with SP2 and IIS V6.0. The server has the .net Framework 4.0 installed, and the .net Framework 4 Extended, which
is also what I have on the development machine.
Can anyone provide some specific instructions to help guide me through a process that will solve my issues but WILL NOT TOUCH anything existing on this server? It hosts countless functions using multiple frameworks and I need to isolate my site from everything
else. I feel that trying the command.... 'aspnet_regiis -ir' will address my issue, but I need a more experienced user to provide concrete suggestions. The sanctity of the server trumps all. Thank you all!!
Jun 16, 2015 02:19 AM|Mikesdotnetting|LINK
Neither your dev machine or server are on supported operating systems. But from memory, you should be able to set the target framework for a specific app pool by right clicking on it in the left hand side of IIS Manager and going to Properties.
Jun 18, 2015 03:14 PM|KROL_23|LINK
Thank you very much for your response Mike. That is what I was hoping to hear from someone that knows a bit more about the subject than me. Thanks again!