Results 1 to 10 of 10

Thread: [RESOLVED] Problem publishing to Windows 2008 server

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    589

    Resolved [RESOLVED] Problem publishing to Windows 2008 server

    I have an Ajax enabled web app created with Visual Studio 2005 - .Net framework 2.0. I publish this to a Windows 2003 server and everything works fine.

    I now need to publish to a Windows 2008 server with IIS 7.0. Whereas before I used to publish to http:// .... (because the site on the 2003 server was Frontpage server extension enabled} I can't see how to do this in IIS 7.0 so I have published to a share on the server at \\servername\websites\nameofwebsite

    When I try to run the site I get this:

    Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

    Any help much appreciated.

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

    Re: Problem publishing to Windows 2008 server

    Hey,

    Do you know if the .Net Framework 2.0 has been installed on that server?

    Gary

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    589

    Re: Problem publishing to Windows 2008 server

    Yes it has ... the problem as far as I can see is that the current server (Windows 2003) has the System.Web.Extensions version 1.0.61025.0 and 3.5.0.0 on it. The Windows 2008 server only has the 3.5.0.0 version on it.

    Can you copy assemblies? Or do I have to copy a dll?

    I'm about to start using a newer development box with VS2008 on it ... can I convert the existing web sites to .Net Framework 3.5? And if I do this, I guess it will use the later version of System.Web.Extensions?

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

    Re: Problem publishing to Windows 2008 server

    Hey,

    Lets just clear one thing up...

    An assembly, is a DLL.

    Yes, you can upgrade a project between .Net 2.0 and .Net 3.5. This is a project setting. In actual fact, when you load the VS2005 project in VS2008 it should give you the option to update the .Net Framework version. It may not do the complete job, and you will still need to manually remove the references to the earlier version of the assembly, and replace them with the new version.

    Gary

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    589

    Re: Problem publishing to Windows 2008 server

    Thanks for that.

    With regard to 'an assembly is a dll' - why is that if I look (for example) in the bin folder of a web app I see dlls which can be copied - if I look in C:\Windows\assembly all I see is a list of 'Assembly Names' which, if I right click, only give me the option to uninstall, not copy, them.

    When I get on to my new dev machine with VS 2008 on it - what's the best technique for copying my existing sites over from my old development box to my new one? Do I just copy the folder hierarchy over for the sites and then use 'Open Site'?

    Cheers
    Last edited by Webskater; Oct 5th, 2010 at 08:02 AM.

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

    Re: Problem publishing to Windows 2008 server

    Because you can't easy copy a DLL/assembly out of the GAC. There is a way to do it, but you have to go to the command line and type in some commands to do it.

    That really comes down to the sites that you have been working on. Have you been using the "Web Site" or "Web Application" template? Do you not have some form of Source Control to store all your files in?

    Gary

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    589

    Re: Problem publishing to Windows 2008 server

    Yes, all the files are in Visual Source Safe. So I guess I set a new working folder. (I know I'm being thick here - I'm kind of used to just working on my own dev box, on my own).

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

    Re: Problem publishing to Windows 2008 server

    That would be the best way of doing it, yes.

    Not at all, everyone has to start somewhere, you are going into an area that you are not familiar with, so of course you are going to have some questions.

    Gary

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    589

    Re: Problem publishing to Windows 2008 server

    Thanks again.

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

    Re: [RESOLVED] Problem publishing to Windows 2008 server

    Not a problem at all, more than happy to help!

    Gary

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