.NetTiers & Enterprise Library, with DiscountASP hosted SQL Server.. and new ASP.NET application

Discussion in 'ASP.NET / ASP.NET Core' started by Bruce, Dec 9, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Bruce

    Bruce DiscountASP.NET Staff

    wo.. that's a lot of questions!! :)

    Anyway, i went to your site and I got an error message saying that the web.config file is misconfigured.

    Line 98:
    Line 99: </system.web>
    Line 100:<configSections>
    Line 101: <section name='enterpriselibrary.configurationSettings' type='Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationManagerSectionHandler, Microsoft.Practices.EnterpriseLibrary.Configuration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' />
    Line 102: </configSections>

    You should fix that problem first.

    Did you upload the recompiled Enterprise Lib to the server? The error you are seeing indicated that the 'USEWMI;USEEVENTLOG;USEPERFORMANCECOUNTER' directives are still enabled.

    In addition, when the error is displayed, it always reference to the path on the machine where teh application is compiled. This is normal.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  2. Working on it at the moment, thank you for the reply. I'll update with more info if I get any.
     
  3. Ok, I?m really loosing my mind now!
    </o:p>
    Perhaps you guys can help me out?
    </o:p>
    I?ve got an ASP.NET 1.1 Application that I?ve been developing on my development computer.
    I wanted to go through the fun/experience of deployment, so I got some space on Discount.ASP and an SQL Database also.
    </o:p>
    I?m using ?many? UserControls both added dynamically, and some included as @control directives in the code pages. Bascially a portal type application.
    </o:p>
    I?m also using the .NetTiers codesmith templets to generate custom classes for database access logic.
    </o:p>
    I?m trying to install the asp.net application in subdirectory of my Discount.asp root directory.
    </o:p>
    My problem can be view here.
    http://www.remcreations.com/UnityPortal_New/Default.aspx
    </o:p>
    Here?s what I have done.
    </o:p>
    I have already uploaded the SQL database to the my discount asp.net database.
    I?ve used the Enterprise Library tool to re-configure the application on my development computer to access the Discount.ASP hosted database, rather than my local database.
    This is all working on my development computer.
    </o:p>
    I have also, before doing the above step, removed the USEWMI;USEEVENTLOG;USEPERFORMANCECOUNTER sections from my Enterprise Library build, and replaced the common.dll with the new one, that doesn?t access any of the registry entries. As per Bruce?s instructions. I ensured that the project folder in my development root webdirectory/project directory has these new .dll files in the bin folder.
    </o:p>
    I have set up the sub-web as an application directory using the application manager for Discount asp.net
    </o:p>
    I have built the project and copied it to the sub-directory on discount asp.net using the Visual Studio 2003 copy project utility.
    </o:p>
    I have tried opening the project from the web with Visual Studio 2003 and doing the build on the web server.
    </o:p>
    I have tried putting the .dll files for the project in both the project?s bin directory on asp.net which would be \htdocs\myprojectsubdirectory\bin, and I?ve also tried putting the .dll files in the root bin directory which is \htdocs\bin
    </o:p>
    I?m a bit confused because it still seems to be wanting to write to the evenlog and counters. It also seems to want to reference DLL files on my development C: drive?
    So perhaps it is the way I?m referencing the .dll files for the .NETTiers generated class? These are in another project, but the .dll files are in the bin folder of the web-subfolder with the application.. so I?m not sure why it has the info about the c: drive.
    </o:p>
    I know this is probably a simple referencing problem, but I'm at a complete loss to figure this one out. </o:p>
    </o:p>
    Any help at all would be appreciated.
    This is the page load code for the default test page I have posted.
    </o:p>
    http://www.remcreations.com/UnityPortal_New/Default.aspx
    </o:p>
    try</o:p>
    {</o:p>
    Employee employee = new Employee();</o:p>
    employee =SqlDataRepository.EmployeeProvider.GetByEmployeeID(153);</o:p>
    Response.Write(employee.ToString());</o:p>
    }</o:p>
    catch(Exception ex)</o:p>
    {</o:p>
    Response.Write("Exception Message: " + ex.Message + "");</o:p>
    Response.Write("Exceiption TargetSite: " + ex.TargetSite + "");</o:p>
    Response.Write("Exception StackTrace: " + ex.StackTrace + "");</o:p>
    Response.Write("Exception Source: " + ex.Source + "");</o:p>
    Response.Write("Exception InnerException: " + ex.InnerException + "");</o:p>
    }
    </o:p>
    </o:p>
     
  4. Ok, at a bit of a loss here... I'm still very new to this, but usually can hash things out like this for myself. I'm really needing help on this one.

    http://www.remcreations.com/UNITYPortal_New/ErrorPage.aspx


    The same page works perfectly on my development server, but if I do Visual Studio Copy Project to a sub-directory in discount asp, I get the error above.

    With the following code page.

     
  5. If a user goes to this web page, why would the exception be reporting the c:\inetpub\wwwroot\ stuff????

    I mean this is the one that is on Discount asp... so why is it still pointing to c: drive?
     
  6. UPDATES!.... Ok I got it working, and it only took me like a week! How fun it is to learn.

    FYI:

    The problem was the enterprise library .dll files. Of course, as Bruce said in the stiky post. The real issue was that when I re-created the enterprise library build, it was putting the new .dll files in the /bin debug or release directory for the Enterprise Library "Project" and even though I ran the batch file to move the files, they were no getting copied to the Enterprise Library Program Directory.. so any new projects got the old files.

    On moving the .dll files for enterprise library and uploading the project again, I'm good to go!
     
  7. Bruce

    Bruce DiscountASP.NET Staff

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page