Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspdotnet_website_programming thread: Problems getting started


Message #1 by "Kim Rossey" <Kim_Kman@h...> on Thu, 4 Apr 2002 04:02:19
When I open the solution I get an error message stating the project for 
the main section ThePhile cannot be opened. 

I tryed two downloads with no luck. So I end up with ThePhile (Project not 
found) The rest load in fine.

Also using XP with IIS 6.0 the section in machine config for setting user 
to SYSTEM is commented out. How do I handle this on my machine for the 
event logging?

Thanks,

Kim

Message #2 by "KM" <km5624@y...> on Thu, 4 Apr 2002 09:58:20 -0500
Kim,
I'm using XP and did get the download to work.

I had problems the first try, then I erased everything that I created
the first time and tried the installation again reading precisly what
the instructions said.  Make sure you unzip the project to the c:\wrox
folder (if using the c drive).

For the event logging change in the machine.config file, the commented
section you are seeing in the machine.config file is the commented
section explaining the flags for the section you need to change.  Look
right below those comments and you will see the actual code that needs
to be changed to "SYSTEM".  After you change the code, reboot your
machine.

I did all this and it worked for me.

Good Luck,
Kevin

> -----Original Message-----
> From: Kim Rossey [mailto:Kim_Kman@h...] 
> Sent: Thursday, April 04, 2002 4:02 AM
> To: Website Programming with ASP.NET
> Subject: [aspdotnet_website_programming] Problems getting started
> 
> 
> When I open the solution I get an error message stating the 
> project for 
> the main section ThePhile cannot be opened. 
> 
> I tryed two downloads with no luck. So I end up with ThePhile 
> (Project not 
> found) The rest load in fine.
> 
> Also using XP with IIS 6.0 the section in machine config for 
> setting user 
> to SYSTEM is commented out. How do I handle this on my 
> machine for the 
> event logging?
> 
> Thanks,
> 
> Kim
> 
> 



_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com



Message #3 by "Kim Rossey" <Kim_Kman@h...> on Thu, 4 Apr 2002 18:47:42
Thank you Kevin,

Yes I figured out the SYSTEM section.

I am thinking though I perhaps have a corrupt ThePhile.csproj
Everything else loads up fine. However once I have it open in VS.Net and 
try reload for the ThePhile.csproj it tells me it cannot load from Web. 
Also If I try to open ThePhile.suo it tells me it is not a valid solution 
file.

I have tryed it on both my XP box and last night on a Win2K box. I will 
keep playing with it and see if I can get it going.

Question: Are you using the download where the most recent files are dated 
03/26/02 ?

Regards,
Kim


Kim,
I'm using XP and did get the download to work.

I had problems the first try, then I erased everything that I created
the first time and tried the installation again reading precisly what
the instructions said.  Make sure you unzip the project to the c:\wrox
folder (if using the c drive).

For the event logging change in the machine.config file, the commented
section you are seeing in the machine.config file is the commented
section explaining the flags for the section you need to change.  Look
right below those comments and you will see the actual code that needs
to be changed to "SYSTEM".  After you change the code, reboot your
machine.

I did all this and it worked for me.

Good Luck,
Kevin

Message #4 by "KM" <km5624@y...> on Thu, 4 Apr 2002 13:17:22 -0500
Kim,
Yes, I am using that download.

I had problems in the beginning also.  But I literally erased everything
that I did.  The sql database, all the unzipped files that I put in
c:\wrox and I deleted the VisualStudio.net project itself.  Start over
completely instead of poking around, at least that's what finally worked
for me.  

> -----Original Message-----
> From: Kim Rossey [mailto:Kim_Kman@h...] 
> Sent: Thursday, April 04, 2002 6:48 PM
> To: Website Programming with ASP.NET
> Subject: [aspdotnet_website_programming] RE: Problems getting started
> 
> 
> Thank you Kevin,
> 
> Yes I figured out the SYSTEM section.
> 
> I am thinking though I perhaps have a corrupt ThePhile.csproj 
> Everything else loads up fine. However once I have it open in 
> VS.Net and 
> try reload for the ThePhile.csproj it tells me it cannot load 
> from Web. 
> Also If I try to open ThePhile.suo it tells me it is not a 
> valid solution 
> file.
> 
> I have tryed it on both my XP box and last night on a Win2K 
> box. I will 
> keep playing with it and see if I can get it going.
> 
> Question: Are you using the download where the most recent 
> files are dated 
> 03/26/02 ?
> 
> Regards,
> Kim
> 
> 
> Kim,
> I'm using XP and did get the download to work.
> 
> I had problems the first try, then I erased everything that I 
> created the first time and tried the installation again 
> reading precisly what the instructions said.  Make sure you 
> unzip the project to the c:\wrox folder (if using the c drive).
> 
> For the event logging change in the machine.config file, the 
> commented section you are seeing in the machine.config file 
> is the commented section explaining the flags for the section 
> you need to change.  Look right below those comments and you 
> will see the actual code that needs to be changed to 
> "SYSTEM".  After you change the code, reboot your machine.
> 
> I did all this and it worked for me.
> 
> Good Luck,
> Kevin
> 
> 



_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com



Message #5 by "Kim Rossey" <kim_kman@h...> on Fri, 5 Apr 2002 07:32:34
Thanks Kevin, Ha I tryed a few ore times with no luck. I am going to take 
a break and just read for a while. Perhaps something will come to light. 

Regards,
Kim


> Kim,
Yes, I am using that download.

I had problems in the beginning also.  But I literally erased everything
that I did.  The sql database, all the unzipped files that I put in
c:\wrox and I deleted the VisualStudio.net project itself.  Start over
completely instead of poking around, at least that's what finally worked
for me.  

Message #6 by "KM" <km5624@y...> on Fri, 5 Apr 2002 11:45:44 -0500
Kim,
When you clicked "rebuild" to rebuild the solution in VS.net did you
receive any errors?

Kevin

> -----Original Message-----
> From: Kim Rossey [mailto:kim_kman@h...] 
> Sent: Friday, April 05, 2002 7:33 AM
> To: Website Programming with ASP.NET
> Subject: [aspdotnet_website_programming] RE: Problems getting started
> 
> 
> Thanks Kevin, Ha I tryed a few ore times with no luck. I am 
> going to take 
> a break and just read for a while. Perhaps something will 
> come to light. 
> 
> Regards,
> Kim
> 
> 
> > Kim,
> Yes, I am using that download.
> 
> I had problems in the beginning also.  But I literally erased 
> everything that I did.  The sql database, all the unzipped 
> files that I put in c:\wrox and I deleted the 
> VisualStudio.net project itself.  Start over completely 
> instead of poking around, at least that's what finally worked 
> for me.  
> 
> 



_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com



Message #7 by "Kim Rossey" <kim_kman@h...> on Sat, 6 Apr 2002 00:44:17
Rebuild All: 19 succeeded, 0 failed, 0 skipped

Builds all except ThePhile which it refuses to load in VS.Net Ent 1.0

File structure is as documented c:\wrox\ThePhile
Virtual is pointing to c:\wrox\ThePhile and aliased as 
http://localhost/ThePhile

Thanks,
Kim

> Kim,
When you clicked "rebuild" to rebuild the solution in VS.net did you
receive any errors?

Kevin

> -----Original Message-----
> From: Kim Rossey [mailto:kim_kman@h...] 
> Sent: Friday, April 05, 2002 7:33 AM
> To: Website Programming with ASP.NET
> Subject: [aspdotnet_website_programming] RE: Problems getting started
> 
> 
> Thanks Kevin, Ha I tryed a few ore times with no luck. I am 
> going to take 
> a break and just read for a while. Perhaps something will 
> come to light. 
> 
> Regards,
> Kim
> 
> 
> > Kim,
> Yes, I am using that download.
> 
> I had problems in the beginning also.  But I literally erased 
> everything that I did.  The sql database, all the unzipped 
> files that I put in c:\wrox and I deleted the 
> VisualStudio.net project itself.  Start over completely 
> instead of poking around, at least that's what finally worked 
> for me.  
> 
> 



_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com



Message #8 by "Kim Rossey" <kim_kman@h...> on Sat, 6 Apr 2002 09:23:36
I did get the application up and running on my Win2K box so I am excited 
about that. Looks great!! Now will dig in for a while and come back to the 
XP problem later. I did just try another redo from zilch and still it 
loads everything and builds everything except the ThePhile project. I am 
stumped on this one.

> Rebuild All: 19 succeeded, 0 failed, 0 skipped

> Builds all except ThePhile which it refuses to load in VS.Net Ent 1.0

> File structure is as documented c:\wrox\ThePhile
V> irtual is pointing to c:\wrox\ThePhile and aliased as 
h> ttp://localhost/ThePhile

> Thanks,
K> im

> > Kim,
W> hen you clicked "rebuild" to rebuild the solution in VS.net did you
r> eceive any errors?

> Kevin

> > -----Original Message-----
>>  From: Kim Rossey [mailto:kim_kman@h...] 
>>  Sent: Friday, April 05, 2002 7:33 AM
>>  To: Website Programming with ASP.NET
>>  Subject: [aspdotnet_website_programming] RE: Problems getting started
>>  
>>  
>>  Thanks Kevin, Ha I tryed a few ore times with no luck. I am 
>>  going to take 
>>  a break and just read for a while. Perhaps something will 
>>  come to light. 
>>  
>>  Regards,
>>  Kim
>>  
>>  
>>  > Kim,
>>  Yes, I am using that download.
>>  
>>  I had problems in the beginning also.  But I literally erased 
>>  everything that I did.  The sql database, all the unzipped 
>>  files that I put in c:\wrox and I deleted the 
>>  VisualStudio.net project itself.  Start over completely 
>>  instead of poking around, at least that's what finally worked 
>>  for me.  
>>  
>>  

> 

> _________________________________________________________

> Do You Yahoo!?

> Get your free @yahoo.com address at http://mail.yahoo.com

> 

Message #9 by "KM" <km5624@y...> on Sat, 6 Apr 2002 14:35:29 -0500
Kim,
Glad to hear that.  As far as it working on XP... That's what I'm using,
so it does work.

Kevin

> -----Original Message-----
> From: Kim Rossey [mailto:kim_kman@h...] 
> Sent: Saturday, April 06, 2002 9:24 AM
> To: Website Programming with ASP.NET
> Subject: [aspdotnet_website_programming] RE: Problems getting started
> 
> 
> I did get the application up and running on my Win2K box so I 
> am excited 
> about that. Looks great!! Now will dig in for a while and 
> come back to the 
> XP problem later. I did just try another redo from zilch and still it 
> loads everything and builds everything except the ThePhile 
> project. I am 
> stumped on this one.
> 
> > Rebuild All: 19 succeeded, 0 failed, 0 skipped
> 
> > Builds all except ThePhile which it refuses to load in 
> VS.Net Ent 1.0
> 
> > File structure is as documented c:\wrox\ThePhile
> V> irtual is pointing to c:\wrox\ThePhile and aliased as
> h> ttp://localhost/ThePhile
> 
> > Thanks,
> K> im
> 
> > > Kim,
> W> hen you clicked "rebuild" to rebuild the solution in VS.net did you
> r> eceive any errors?
> 
> > Kevin
> 
> > > -----Original Message-----
> >>  From: Kim Rossey [mailto:kim_kman@h...] 
> >>  Sent: Friday, April 05, 2002 7:33 AM
> >>  To: Website Programming with ASP.NET
> >>  Subject: [aspdotnet_website_programming] RE: Problems 
> getting started
> >>  
> >>  
> >>  Thanks Kevin, Ha I tryed a few ore times with no luck. I am 
> >>  going to take 
> >>  a break and just read for a while. Perhaps something will 
> >>  come to light. 
> >>  
> >>  Regards,
> >>  Kim
> >>  
> >>  
> >>  > Kim,
> >>  Yes, I am using that download.
> >>  
> >>  I had problems in the beginning also.  But I literally erased 
> >>  everything that I did.  The sql database, all the unzipped 
> >>  files that I put in c:\wrox and I deleted the 
> >>  VisualStudio.net project itself.  Start over completely 
> >>  instead of poking around, at least that's what finally worked 
> >>  for me.  
> >>  
> >>  
> 
> > 
> 
> > _________________________________________________________
> 
> > Do You Yahoo!?
> 
> > Get your free @yahoo.com address at http://mail.yahoo.com
> 
> > 
> 
> 



_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com



Message #10 by "Wylie" <cwylie@i...> on Mon, 8 Apr 2002 05:04:34
Hi Folks,

I have two problems, neither of which I can figure out.  I have followed 
all the directions to 

the tee and have gone through the installation process a second time just 
to make sure.  Both times I have had the same problems.

********* Error #1 ************
Server Error in '/thephile' Application.
----------------------------------------

Security Exception 
Description: The application attempted to perform an operation not allowed 
by the security policy. To grant this application the required permission 
please contact your system administrator or change the application's trust 
level in the configuration file. 

Exception Details: System.Security.SecurityException: Requested registry 
access is not allowed.

Source Error: 


Line 29: 			if (!EventLog.SourceExists("ThePhile.COM"))
Line 30: 			{
Line 31: 				EventLog.CreateEventSource
("ThePhile.COM", "Application");
Line 32: 			}
Line 33: 			EventLog.WriteEntry("ThePhile.COM", 
message, entryType);
 

Source File: c:\wrox\thephile\philepage.cs    Line: 31 

********* End Error #1 *********

This error happens when I try to open the web site.  It concerns 
permissions.  I am running a default setup of IIS and have made no 
modificaitons to the machine.config file other than what was requested by 
thePhile setup instructions.

The error is happening in a subroutine that posts error messages to an 
event log.  I simply put a return at the top of this routine, to avoid 
creating the EventSource or posting to it, and then tried to startup the 
site again.  

********* Error #2 ************
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: Login failed for user 'sa'. Reason: Not associated with a 
trusted SQL Server connection.

********* End Error #2 *********

I have checked my SQL Enterprise Manager and as sa account does exist 
with "" as the password.  The sa account is included in thePhile database.

Any ideas would be appreciated.

Thanks,
Wylie
Message #11 by "KM" <km5624@y...> on Mon, 8 Apr 2002 02:06:41 -0400
Wylie,
After you change the machine.config file make sure you reboot...........


Kevin

> -----Original Message-----
> From: Wylie [mailto:cwylie@i...] 
> Sent: Monday, April 08, 2002 5:05 AM
> To: Website Programming with ASP.NET
> Subject: [aspdotnet_website_programming] Problems getting started
> 
> 
> Hi Folks,
> 
> I have two problems, neither of which I can figure out.  I 
> have followed 
> all the directions to 
> 
> the tee and have gone through the installation process a 
> second time just 
> to make sure.  Both times I have had the same problems.
> 
> ********* Error #1 ************
> Server Error in '/thephile' Application.
> ----------------------------------------
> 
> Security Exception 
> Description: The application attempted to perform an 
> operation not allowed 
> by the security policy. To grant this application the 
> required permission 
> please contact your system administrator or change the 
> application's trust 
> level in the configuration file. 
> 
> Exception Details: System.Security.SecurityException: 
> Requested registry 
> access is not allowed.
> 
> Source Error: 
> 
> 
> Line 29: 			if 
> (!EventLog.SourceExists("ThePhile.COM"))
> Line 30: 			{
> Line 31: 				EventLog.CreateEventSource
> ("ThePhile.COM", "Application");
> Line 32: 			}
> Line 33: 			EventLog.WriteEntry("ThePhile.COM", 
> message, entryType);
>  
> 
> Source File: c:\wrox\thephile\philepage.cs    Line: 31 
> 
> ********* End Error #1 *********
> 
> This error happens when I try to open the web site.  It concerns 
> permissions.  I am running a default setup of IIS and have made no 
> modificaitons to the machine.config file other than what was 
> requested by 
> thePhile setup instructions.
> 
> The error is happening in a subroutine that posts error 
> messages to an 
> event log.  I simply put a return at the top of this routine, 
> to avoid 
> creating the EventSource or posting to it, and then tried to 
> startup the 
> site again.  
> 
> ********* Error #2 ************
> 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: Login failed for user 'sa'. Reason: Not 
> associated with a 
> trusted SQL Server connection.
> 
> ********* End Error #2 *********
> 
> I have checked my SQL Enterprise Manager and as sa account does exist 
> with "" as the password.  The sa account is included in 
> thePhile database.
> 
> Any ideas would be appreciated.
> 
> Thanks,
> Wylie
> 



_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com



Message #12 by "Christopher Wylie" <cwylie@i...> on Mon, 8 Apr 2002 07:43:29 -0600
Hi Kevin,

I had tried rebooting a few times yesterday, but to no avail.  This morning
it worked fine.  I guess there is still mystery in the modern world.

The sql sa account problem I worked around by changing the connection
strings in the application from:
<ConnectionString>server=(local);database=ThePhile;uid=sa;pwd=;</ConnectionS
tring>

to:
<ConnectionString>server=(local);database=ThePhile;Trusted_Connection=true;C
onnect Timeout=30;</ConnectionString>

Not elegant, but everything is working now.

Thanks for your feedback.

Wylie


  Return to Index