locked
a .ASP architecture works on Windows 2000 server but not on new Windows 2008 - 64bit RRS feed

  • Question

  • I am migrating our website off of an old Windows 2000 machine to a Windows 2008 R2 64bit machine.

    I have had to make a few tweeks, make sure I have all the right .NET versions, rebuild data sources.  I have all the web-aps working except 1 (8 of 9 working).  With this one I downloaded and am using Matt Berseth's  GridViewExportUtil .

    The .cs file resides in the App_Code folder of my website directory.  In the current production environment this application is working fine.  The compiler and browsers have no problem finding the class from the call in the default.cs class. But in the new development environment where I am trying to rebuild the website it is not working.  If I run the web-app from with in VS2010 ("view in browser") it works, but if I try to view it opening an independant instance of IE and using a localhost call, I get the error: "CS0103: The name 'GridViewExportUtil' does not exist in the current context"  and I get the same error when trying to view it from a remote machine using the http url .

    As I said, this exact code and architecture is working fine in our production environment and when run from within VS2010 on the new server.  I have no idea what the disconnect could be.

    I have not tried putting the GridViewExportUtiliy as an "in class" in my default.cs, I don't really want to do that and since it SHOULD work this way, I want to find the right solution.

    I have played with file permission issues too.  I made everything as open/shared as possible, so I am really stumped.

    (this is cross posted on the Server 2008 forum, but I think this is a more appropriate place for it...maybe, need to find a solution...) 

     


    Molly Azami GIS Developer Jackson EMC Jefferson, GA
    Thursday, March 17, 2011 2:22 PM

Answers

  • Oh for crying out loud! 

    All I had to do was convert the IIS virtual directory to an application.  I have tried this with some of my web-apps and not with others and they all worked, so I wasn't certain WHY one needed to use this feature.  Now I know...

    Fixed...finally!  thank you Andy, for replying.

     


    Molly Azami GIS Developer Jackson EMC Jefferson, GA
    • Marked as answer by memaz Friday, March 18, 2011 3:09 PM
    Friday, March 18, 2011 3:09 PM

All replies

  • The .cs files aren't used by iis, mate.

    They use the compiled version of your app.  Alll the .cs stuff in app_code gets compiled into your exe.  Or dll....

    I think if you have GridViewExportUtil.cs then your first and simplest step is to fling it in your app_code folder and include in the project.

    Recompile and see what happens.

    Thursday, March 17, 2011 5:03 PM
  • That is where it is, in the projects app_code folder

    This is a Web application, not a windows app.  It is part of a website.  I never deal with dlls of the website .cs files.

    I just searched our production machine, where this same website is running fiine,  for the dll and there is none that I can find.  I just "build website" and it works.  I believe it is a module, part of the "code behind" not a class library.   

     

     


    Molly Azami GIS Developer Jackson EMC Jefferson, GA
    • Marked as answer by memaz Friday, March 18, 2011 3:05 PM
    • Unmarked as answer by memaz Friday, March 18, 2011 3:05 PM
    Friday, March 18, 2011 2:29 PM
  • Oh for crying out loud! 

    All I had to do was convert the IIS virtual directory to an application.  I have tried this with some of my web-apps and not with others and they all worked, so I wasn't certain WHY one needed to use this feature.  Now I know...

    Fixed...finally!  thank you Andy, for replying.

     


    Molly Azami GIS Developer Jackson EMC Jefferson, GA
    • Marked as answer by memaz Friday, March 18, 2011 3:09 PM
    Friday, March 18, 2011 3:09 PM