Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 11th, 2004, 11:29 PM
Authorized User
 
Join Date: Aug 2004
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to macupryk Send a message via Yahoo to macupryk
Default Error!

I am not sure what to do with this error!

Page Error

--------------------------------------------------------------------------------
An unexpected error has occurred on this page. The system administrators have been notified. Please feel free to contact us with the information surrounding this error.
The error occurred in: http://localhost/ThePhile/Default.aspx
Error Message: Access is denied: 'Wrox.WebModules.Accounts.Business'.
--------------------------------------------------------------------------------
Stack Trace:
System.IO.FileLoadException: Access is denied: 'Wrox.WebModules.Accounts.Business'. File name: "Wrox.WebModules.Accounts.Business" at Wrox.ThePhile.Web.PhilePage.PhilePage_Load(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain() === Pre-bind state information === LOG: DisplayName = Wrox.WebModules.Accounts.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=53f5ca5bbe1645cb (Fully-specified) LOG: Appbase = file:///d:/inetpub/wwwroot/ThePhile LOG: Initial PrivatePath = bin Calling assembly : ThePhile, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null. === LOG: Attempting download of new URL file:///D:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/thephile/2030e1af/b749c980/Wrox.WebModules.Accounts.Business.DLL. LOG: Attempting download of new URL file:///D:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/thephile/2030e1af/b749c980/Wrox.WebModules.Accounts.Business/Wrox.WebModules.Accounts.Business.DLL. LOG: Attempting download of new URL file:///d:/inetpub/wwwroot/ThePhile/bin/Wrox.WebModules.Accounts.Business.DLL.

Knowledge is to be shared.
__________________
Knowledge is to be shared.
 
Old August 12th, 2004, 07:31 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

What did the system administrators say?

Try checking permissions on 'thephile' folder and make sure the ASPNET user account has access to it.

 
Old August 12th, 2004, 08:45 AM
Authorized User
 
Join Date: Aug 2004
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to macupryk Send a message via Yahoo to macupryk
Default

I still have problems this is my web.config file:
I created a data source CHARUL and I check everything I am still getting the same error below that I posted. What should I do?


<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <appSettings>
      <add key="NewsManager_SettingsFile" value="~/Config/NewsManager.Config" />
      <add key="MailingLists_SettingsFile" value="~/Config/Mailinglists.Config" />
      <add key="Polls_SettingsFile" value="~/Config/Polls.Config" />
      <add key="Forums_SettingsFile" value="~/Config/Forums.Config" />
      <add key="Accounts_SettingsFile" value="~/Config/Accounts.Config" />
      <add key="AdsManager_SettingsFile" value="~/Config/AdsManager.Config" />
  </appSettings>

  <system.web>

    <!-- DYNAMIC DEBUG COMPILATION
          Set compilation debug="true" to enable ASPX debugging. Otherwise, setting this value to
          false will improve runtime performance of this application.
          Set compilation debug="true" to insert debugging symbols (.pdb information)
          into the compiled page. Because this creates a larger file that executes
          more slowly, you should set this value to true only when debugging and to
          false at all other times. For more information, refer to the documentation about
          debugging ASP .NET files.
    -->
    <compilation
         defaultLanguage="c#"
         debug="true"
    />

    <!-- CUSTOM ERROR MESSAGES
          Set customError mode values to control the display of user-friendly
          error messages to users instead of error details (including a stack trace):

          "On" Always display custom (friendly) messages
          "Off" Always display detailed ASP.NET error information.
          "RemoteOnly" Display custom (friendly) messages only to users not running
          on the local Web server. This setting is recommended for security purposes, so
          that you do not display application detail information to remote clients.
    -->
    <customErrors
    mode="RemoteOnly"
    />

    <identity impersonate="true" />
    <!-- AUTHENTICATION
          This section sets the authentication policies of the application. Possible modes are "Windows", "Forms",
          "Passport" and "None"
    -->
    <authentication mode="Forms">
        <forms name="ThePhile" path="/" loginUrl="/ThePhile/Modules/Users/Login.aspx"
            timeout="30">
        </forms>
    </authentication>

    <!-- APPLICATION-LEVEL TRACE LOGGING
          Application-level tracing enables trace log output for every page within an application.
          Set trace enabled="true" to enable application trace logging. If pageOutput="true", the
          trace information will be displayed at the bottom of each page. Otherwise, you can view the
          application trace log by browsing the "trace.axd" page from your web application
          root.
    -->
    <trace
        enabled="false"
        requestLimit="10"
        pageOutput="false"
        traceMode="SortByTime"
        localOnly="true"
    />

    <!-- SESSION STATE SETTINGS
          By default ASP .NET uses cookies to identify which requests belong to a particular session.
          If cookies are not available, a session can be tracked by adding a session identifier to the URL.
          To disable cookies, set sessionState cookieless="true".
    -->
    <sessionState
            mode="InProc"
            stateConnectionString="tcpip=127.0.0.1:42424"
            sqlConnectionString="data source=CHARUL;user id=sa;password="
            cookieless="false"
            timeout="20"
    />

    <!-- GLOBALIZATION
          This section sets the globalization settings of the application.
    -->
    <globalization
            requestEncoding="utf-8"
            responseEncoding="utf-8"
   />

 </system.web>

</configuration>


Knowledge is to be shared.
 
Old August 12th, 2004, 08:54 AM
Authorized User
 
Join Date: Aug 2004
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to macupryk Send a message via Yahoo to macupryk
Default

I have not system admin. :-(

What should I do?



Knowledge is to be shared.
 
Old August 13th, 2004, 05:31 AM
Friend of Wrox
 
Join Date: May 2003
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Whats the name of your machine and your MSDE instance or SQL Server instance ( if you are using SQL SErver)

Charul Shukla
 
Old August 13th, 2004, 10:00 AM
Authorized User
 
Join Date: Aug 2004
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to macupryk Send a message via Yahoo to macupryk
Default

OMEGAMACHINE ==> SQL Server instance
omegamachine ==> name of machine
I am using windows 2003.

Knowledge is to be shared.
 
Old August 14th, 2004, 08:23 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You showed us your web.config, but that's not where you need to put your connection string. You hare looking at the connection string for session state, and since we're not using SQL Server for session state, that is not going to be used.

ThePhile has a separate connection string for each module. They're located in the config files in the config subdirectory. The names of these files are stated in web.config.

You need to create your database used to hold ThePhile data by restoring from the database backup file in the code download. Then you need to figure out a good connection string for your own DB, and put it into each of the .config files.

Eric
 
Old August 14th, 2004, 03:39 PM
Authorized User
 
Join Date: Aug 2004
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to macupryk Send a message via Yahoo to macupryk
Default

I get the following error when I edit each of the config files.

Page Error

--------------------------------------------------------------------------------
An unexpected error has occurred on this page. The system administrators have been notified. Please feel free to contact us with the information surrounding this error.
The error occurred in: http://localhost/ThePhile/Default.aspx
Error Message: Access is denied: 'Wrox.WebModules.Accounts.Business'.
--------------------------------------------------------------------------------
Stack Trace:
System.IO.FileLoadException: Access is denied: 'Wrox.WebModules.Accounts.Business'. File name: "Wrox.WebModules.Accounts.Business" at Wrox.ThePhile.Web.PhilePage.PhilePage_Load(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain() === Pre-bind state information === LOG: DisplayName = Wrox.WebModules.Accounts.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=53f5ca5bbe1645cb (Fully-specified) LOG: Appbase = file:///d:/inetpub/wwwroot/ThePhile LOG: Initial PrivatePath = bin Calling assembly : ThePhile, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null. === LOG: Attempting download of new URL file:///D:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/thephile/2030e1af/b749c980/Wrox.WebModules.Accounts.Business.DLL. LOG: Attempting download of new URL file:///D:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/thephile/2030e1af/b749c980/Wrox.WebModules.Accounts.Business/Wrox.WebModules.Accounts.Business.DLL. LOG: Attempting download of new URL file:///d:/inetpub/wwwroot/ThePhile/bin/Wrox.WebModules.Accounts.Business.DLL.

Knowledge is to be shared.
 
Old August 16th, 2004, 06:31 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This looks like an NTFS file access error. The last line is saying the name of the DLL that couldn't be accessed.

Does the file exist? Does the ASPNET user have permission to read the file?

It's unusual to see this kind of pathname:
d:\inetpub\wwwroot\ThePhile

We normally put it in \wrox\ThePhile, or just \ThePhile.
In any event, this has to be a virtual directory, and it has to be set up as an IIS application. Has this been done?

Eric





Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
Ch 4: Parse error: syntax error, unexpected T_SL hanizar77 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 23rd, 2008 09:17 PM
[Resolved] Error calling a sp - parameter error snufse .NET Framework 2.0 2 February 12th, 2008 04:46 PM
Parse error: syntax error, unexpected T_STRING ginost7 Beginning PHP 1 November 9th, 2007 02:51 AM
Phile Page error, visual studio error reps BOOK: ASP.NET Website Programming Problem-Design-Solution 0 September 27th, 2003 10:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.