Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 18th, 2003, 07:32 PM
Registered User
 
Join Date: Aug 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default keep getting an error with ThePhile

I keep having a problem, not sure if this would be a place to ask. I downloaded the code for ThePhile from the site and installed it. I wanted to see what the project would look like before I continue with chapter 2 as the book suggested. I followed all the steps and I keep getting the following error.

I tried double checking everyting, since i notice that there are inconsistancies with how ThePhile was being spelled in the instructions.

I also notieced that every time i refresh the browser with the error, a different file name other than ocafqwfo.dll like in the error below appears.

I working with the C# edition on XP professional.

can anyone help me???

---------------------

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: File or assembly name ocafqwfo.dll, or one of its dependencies, was not found.

Stack Trace:
System.IO.FileNotFoundException: File or assembly name ocafqwfo.dll, or one of its dependencies, was not found. File name: "ocafqwfo.dll" at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.Load(AssemblyName assemblyRef) at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.Xml.Serialization.Compiler.Compile() at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings) at System.Xml.Serialization.XmlSerializer..ctor(Type type) at Wrox.WebModules.Polls.Configuration.ModuleConfig.G etSettings() in C:\wrox\ThePhile\Modules\Polls2\Polls.Configuratio n\Configuration.cs:line 24 at Wrox.WebModules.Polls.Business.Question.GetCurrent ID() in C:\wrox\ThePhile\Modules\Polls2\Polls.Business\Que stion.cs:line 128 at Wrox.WebModules.Polls.Web.Controls.User.Poll.DataB ind() in C:\wrox\ThePhile\Modules\Polls2\Poll.ascx.cs:line 123 at Wrox.WebModules.Polls.Web.Controls.User.Poll.Page_ Load(Object sender, EventArgs e) in C:\wrox\ThePhile\Modules\Polls2\Poll.ascx.cs:line 114 at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain() Fusion log follows: === Pre-bind state information === LOG: Where-ref bind. Location = C:\WINDOWS\TEMP\ocafqwfo.dll LOG: Appbase = file:///C:/wrox/ThePhile LOG: Initial PrivatePath = bin Calling assembly : (Unknown). === LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/WINDOWS/TEMP/ocafqwfo.dll.
  #2 (permalink)  
Old August 29th, 2003, 10:31 AM
Registered User
 
Join Date: Aug 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have run into this same problem and to fix it you need to give ASPNET user account permissions to the \Windows\Temp folder. For testing, you can just give that user admin rights and it should be fixed.

  #3 (permalink)  
Old September 4th, 2003, 12:53 PM
Registered User
 
Join Date: Sep 2003
Location: Atlanta, GA, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jnesbitt
Default

I also get this error message but after I give the aspnet user account admin privledges it still doesn't work. I contacted support@wrox.com but have received no response.
It's a shame to pay so much for a book that is completely dependent upon the downloaded code while it doesn't even work. These publishers should start focusing on quality rather than just churning these books out as fast as they can. Reminds me of software development. :)
If anyone finds a fix for this please let me know. The book is useless without getting the code to run.
Thanks

  #4 (permalink)  
Old February 4th, 2004, 10:07 AM
Registered User
 
Join Date: Feb 2004
Location: , , United Kingdom.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've also got this problem and would love to know if a solution has now been found. I'm using XP Pro and as a result I'm unable to edit the user account permissions for the \Windows\Temp folder.

Many thanks
  #5 (permalink)  
Old February 4th, 2004, 10:40 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

What do you man with "and as a result I'm unable to edit the user account permissions"? Are you referring to the fact that you don't have a Security tab on the Properties dialog of your files and folders?

If so, open a Windows Explorer, choose Tools | Folder Options, switch to the View tab and scroll all the way down the list. Make sure that Use simple file sharing (Recommended) is not checked.

Once you uncheck that option, your Properties dialogs will have a Security tab, so you can set the security settings.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #6 (permalink)  
Old February 4th, 2004, 10:49 AM
Registered User
 
Join Date: Feb 2004
Location: , , United Kingdom.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar, thanks for your reply.

Yes, I can now see the security settings and the <MYCOMPUTERNAME>\ASPNET user is already added to the permissions for Windows\Temp but I am still getting the same error?

Thanks,
Mike
  #7 (permalink)  
Old February 4th, 2004, 10:56 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

How does the code look like for the page that's causing the error? (I don't have the book, so I don't know exactly what this is all about).

How did you install .NET? Did you do a default install? Using default security accounts? Are you running this against the 1.1 or the 1.0 framework? If I am not mistaken, the book was written (and thus compiled) against the 1.0 framework.

Imar

---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #8 (permalink)  
Old February 4th, 2004, 11:06 AM
Registered User
 
Join Date: Feb 2004
Location: , , United Kingdom.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The stack trace for the error is almost identical to that at the top of this thread.

I don't think the error is caused by the code on the page as I have not altered the downloaded code.

I'm using Microsoft .NET Framework Version 1.0.3705.288.

I can't recall exactly how I installed .NET I recall having to play around with it for ages as I was trying to get the Microsoft Commerce Starter Kit up and running, which I eventually did.

Should I try upgrading to 1.1?
  #9 (permalink)  
Old February 4th, 2004, 11:47 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

I just downloaded the code, and here's what I did to get the code to work:

1. Unzipped to c:\Wrox
2. Restored the Backup database
2a. Added MyServerName\IUSR_MyServerName to the list of users for ThePhile database. You may need to add MyServerName\ASPNET as well.
3. Added an Application / Virtual Directory called ThePhile in IIS so http://localhost/ThePhile would look at c:\Wrox\ThePhile
4. Open the ThePhile.sln solution file in Visual Studio .NET 2002
5. Commented out all code that uses CreateEventSource (three or four locations):
Code:
// if (!EventLog.SourceExists("ThePhile.COM"))
// {
//   EventLog.CreateEventSource("ThePhile.COM", "Application");
// }
// EventLog.WriteEntry("ThePhile.COM", Server.GetLastError
//    ().Message, EventLogEntryType.Error);
Due to the limited access rights for the ASPNET account, it's no longer possible to create an event source at run-time. (This used to be possible in early betas).
6. Changed all connection strings located in the .config files in the Config folder to a suitable one. I used: server=MyServerName\VSDotNet;Database=ThePhile;Int egrated Security=SSPI, but you may need to modify that.
6. I rebuilt the entire project (Build | Rebuild solution).
7. I opened Default.aspx and everything worked as expected.

Did you also follow these steps?

You may also have another security issue that I don't have. My C drive is formatted with FAT, not NTFS. However, the OS runs from D which is NTFS formatted, so I don't think it's an ASP.NET security issue.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #10 (permalink)  
Old February 4th, 2004, 12:23 PM
Registered User
 
Join Date: Feb 2004
Location: , , United Kingdom.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks again for your reply Imar.

I have already followed those instructions except adding the db user and commenting out the other locations where CreateEventSource occurred, but I am still getting the same error as above.

I'm glad you've got the site up and running though! Shows it does work!

Many thanks,
Mike
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ThePhile project installation eugz BOOK: ASP.NET Website Programming Problem-Design-Solution 14 November 14th, 2006 02:27 PM
Error restoring thePhile DB dinble BOOK: ASP.NET Website Programming Problem-Design-Solution 1 March 20th, 2006 07:58 AM
ThePhile - Access Error to XML file cewekoolz BOOK: ASP.NET Website Programming Problem-Design-Solution 1 February 16th, 2005 02:16 AM
Error while running/executing project thePhile seetha_l BOOK: ASP.NET Website Programming Problem-Design-Solution 0 June 11th, 2004 11:31 AM
ThePhile: Restoring Database mbschmitt BOOK: ASP.NET Website Programming Problem-Design-Solution 2 July 29th, 2003 07:58 AM



All times are GMT -4. The time now is 06:23 AM.


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