p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

aspdotnet_website_programming thread: Error when trying to launch "http://localhost/thephileVB"


Message #1 by johann.frot@o... on Wed, 5 Mar 2003 11:16:49
Hi, here is what I get when I want to launch the application :

An unexpected error has occurred on this page.The system administrators 
have been notified.

The error occurred in:
http://localhost/thephileVB/Default.aspx

Error Message:
L'accès au chemin d'accès "C:\wrox\ThePhileVB\Config\Polls.Config" est 
refusé.

Error Stack:
System.UnauthorizedAccessException: L'accès au chemin 
d'accès "C:\wrox\ThePhileVB\Config\Polls.Config" est refusé.
   at System.IO.__Error.WinIOError(Int32 errorCode, String str)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess 
access, FileShare share, Int32 bufferSize, Boolean useAsync, String 
msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode)
   at Wrox.WebModules.Polls.Configuration.ModuleConfig.GetSettings() in 
C:\wrox\ThePhileVB\WebModules\Polls\Polls.Configuration\ModuleConfig.vb:li
ne 35
   at Wrox.WebModules.Polls.Business.Question.GetCurrentId() in 
C:\wrox\ThePhileVB\WebModules\Polls\Polls.Business\Question.vb:line 224
   at Wrox.WebModules.Polls.Web.Controls.User.Poll.DataBind() in 
C:\wrox\ThePhileVB\WebModules\Polls\Poll.ascx.vb:line 260
   at Wrox.WebModules.Polls.Web.Controls.User.Poll.Page_Load(Object 
sender, EventArgs e) in 
C:\wrox\ThePhileVB\WebModules\Polls\Poll.ascx.vb:line 62
   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()


Anyone to help me ?
Message #2 by "Mark Hartshorn" <mark.mch1@n...> on Thu, 6 Mar 2003 10:41:07
Unfortunately, I cant read French, but the error looks very similar to 
one I received when trying to get the site running for the first time.

To fix my problem I set the SQL authentication mode to Mixed Mode rather 
than Windows Authentication.
 
Mark
Message #3 by "Penn White" <pennwhite@h...> on Thu, 6 Mar 2003 19:05:49 -0500
I can read French but it didn't help.  I got the same error message when I
tried to run 'ThePhileVB' and I have already set the SQL authentication mode
to Mixed Mode.  At least, I think I have.  I followed John Hwang's
suggestion to change the "HKEY_LOCAL_MACHINE : SOFTWARE : Microsoft :
MSSQLServer : MSSQLServer" Login Mode to '0' as suggested.  Of course, I
don't have the db working yet either, and I had figured that when I finally
got that done, it would solve the login problem, but now I'm not so sure.

Penn

> Unfortunately, I cant read French, but the error looks very similar to
> one I received when trying to get the site running for the first time.
>
> To fix my problem I set the SQL authentication mode to Mixed Mode rather
> than Windows Authentication.
>
> Mark
Message #4 by "KelleyWeb" <webologist@m...> on Fri, 7 Mar 2003 06:56:08 -0500
I installed MSDE(Sql Server engine scaled down) and had to change it from
Windows Authentication to Sql Auth. Mixed mode.
If you run regedit and search for loginMode you find that the hex value is
one by default.
Change it to 2(hex) for mixed mode.

Tim


-----Original Message-----
From: Penn White [mailto:pennwhite@h...]
Sent: Thursday, March 06, 2003 7:06 PM
To: Website Programming with ASP.NET
Subject: [aspdotnet_website_programming] Re: Error when trying to launch
"http://localhost/thephileVB"


I can read French but it didn't help.  I got the same error message when I
tried to run 'ThePhileVB' and I have already set the SQL authentication mode
to Mixed Mode.  At least, I think I have.  I followed John Hwang's
suggestion to change the "HKEY_LOCAL_MACHINE : SOFTWARE : Microsoft :
MSSQLServer : MSSQLServer" Login Mode to '0' as suggested.  Of course, I
don't have the db working yet either, and I had figured that when I finally
got that done, it would solve the login problem, but now I'm not so sure.

Penn

> Unfortunately, I cant read French, but the error looks very similar to
> one I received when trying to get the site running for the first time.
>
> To fix my problem I set the SQL authentication mode to Mixed Mode rather
> than Windows Authentication.
>
> Mark

---
Professional Design Patterns in VB.NET:
Building Adaptable Applications

Want to know how design patterns bring reusable
design and adaptabilty to your applications? How
to recognize the need for a design pattern
solution? How to select, design, and implement
the right patterns? How parts of the .NET Framework
(like the .NET Data Providers and .NET Remoting)
take advantage of design patterns? This book
presents a practical approach to using design
patterns in VB.NET, by focusing on the relevance
of design patterns in the different tiers of a
distributed n-tier architecture.

http://www.wrox.com/books/1861006985.htm


Message #5 by carlos@t... on Sun, 9 Mar 2003 17:27:07
I get exactly the same problem. In english I get this message:

Error

--------------------------------------------------------------------------
------
An unexpected error has occurred on this page.The system administrators 
have been notified.

The error occurred in:
http://localhost/thephile/Default.aspx

Error Message:
Access to the path "C:\wrox\ThePhileVB\Config\Polls.Config" is denied.

Error Stack:
System.UnauthorizedAccessException: Access to the 
path "C:\wrox\ThePhileVB\Config\Polls.Config" is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String str)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess 
access, FileShare share, Int32 bufferSize, Boolean useAsync, String 
msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode)
   at Wrox.WebModules.Polls.Configuration.ModuleConfig.GetSettings() in 
D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Polls.Configuration\ModuleConfig
.vb:line 35
   at Wrox.WebModules.Polls.Business.Question.GetCurrentId() in 
D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Polls.Business\Question.vb:line 
224
   at Wrox.WebModules.Polls.Web.Controls.User.Poll.DataBind() in 
D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Poll.ascx.vb:line 260
   at Wrox.WebModules.Polls.Web.Controls.User.Poll.Page_Load(Object 
sender, EventArgs e) in D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Poll.ascx.vb:line 62
   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()

loginMode via Regedit to hex 2,  but it makes no difference.

Thank you very much.

Carlos




I have already edited

> I installed MSDE(Sql Server engine scaled down) and had to change it 
from
Windows Authentication to Sql Auth. Mixed mode.
If you run regedit and search for loginMode you find that the hex value is
one by default.
Change it to 2(hex) for mixed mode.

Tim


-----Original Message-----
From: Penn White [mailto:pennwhite@h...]
Sent: Thursday, March 06, 2003 7:06 PM
To: Website Programming with ASP.NET
Subject: [aspdotnet_website_programming] Re: Error when trying to launch
"http://localhost/thephileVB"


I can read French but it didn't help.  I got the same error message when I
tried to run 'ThePhileVB' and I have already set the SQL authentication 
mode
to Mixed Mode.  At least, I think I have.  I followed John Hwang's
suggestion to change the "HKEY_LOCAL_MACHINE : SOFTWARE : Microsoft :
MSSQLServer : MSSQLServer" Login Mode to '0' as suggested.  Of course, I
don't have the db working yet either, and I had figured that when I 
finally
got that done, it would solve the login problem, but now I'm not so sure.

Penn

> Unfortunately, I cant read French, but the error looks very similar to
> one I received when trying to get the site running for the first time.
>
> To fix my problem I set the SQL authentication mode to Mixed Mode rather
> than Windows Authentication.
>
> Mark

---
Professional Design Patterns in VB.NET:
Building Adaptable Applications

Want to know how design patterns bring reusable
design and adaptabilty to your applications? How
to recognize the need for a design pattern
solution? How to select, design, and implement
the right patterns? How parts of the .NET Framework
(like the .NET Data Providers and .NET Remoting)
take advantage of design patterns? This book
presents a practical approach to using design
patterns in VB.NET, by focusing on the relevance
of design patterns in the different tiers of a
distributed n-tier architecture.

http://www.wrox.com/books/1861006985.htm


Message #6 by "Mark Hartshorn" <mark.mch1@n...> on Sun, 9 Mar 2003 18:44:47
Check to make sure the ASPNET user is part of the ADMINISTRATORS group.
Message #7 by carlos@t... on Sun, 9 Mar 2003 21:19:54
Thank you very much for the prompt response. I am sure that would be very 
useful to anybody with basic knowledge, but I am affraid I am a bit of a 
newby and I don't know how to check that. Are you talking IIS or SQL 
server?

Sorry about my ignorance, thanks in advance

Carlos

> Check to make sure the ASPNET user is part of the ADMINISTRATORS group.
Message #8 by steven.nelson@m... on Sun, 9 Mar 2003 23:28:13
This problem has nothing to do with SQL Server. If you debug the 
application, (or look at the more cryptic error message), you'll find the 
problems occurs at line 35 in Polls.Configuration/ModuleConfig.vb:

 - Dim fs As New FileStream(fileName, FileMode.Open)

Ie. The user you are running the web application as (ASPNET) doesn't have 
the necesary NT Permissions to open the file:

 - C:\wrox\ThePhileVB\Config\Polls.Config

To remedy this:
 - Browse to the c:/wrox in window explorer
 - Right Click on thePhile Directory and choose properties
 - Select the Security tab and click on add
 - type aspnet and click ok
 - Whilst aspnet user is selected allow them 'Full Control' 
 - Click on advanced and check 'replace permissions on child entities...' 
is ticked Click Ok and Ok again

After you have hopefully sorted out that last problem, you'll probably 
have to move onto the next snag; The SQL Server connection string. Even 
though you will be using sql server authentication and you have an 'sa' 
account with a blank password etc, the application will probably complain 
that:

 - SQL Server does not exist or access denied.

Well it it did for me. To get around this I created a new file with 
a .udl extension and executed it. I then went thru the wizard and then 
afterwards opened the file in notepad. This gave me:

 - Provider=SQLOLEDB.1;Password="";Persist Security Info=True;User 
ID=sa;Initial Catalog=thePhile;Data Source=<Whatever you machine name is>

I then removed the double quotes for the password, as it will form a 
string, and had to remove the provider as the asp.net application 
complained about it for some unknown reason. Any way I got to this:

 - Password=;Persist Security Info=True;User ID=sa;Initial 
Catalog=thePhile;Data Source=<Whatever you machine name is>

I used this to amend the sqlConnectionString/connectionString in each of 
the 7 .config file sin the project. Not sure why this infomation is not 
just held in one place, in the web.config say, but maybe that will be 
revealed further on in the book.

Hope this has been of some help, and prevents somebody else from wasting 
an hour or two of their time,

Steven
Message #9 by Carlos@t... on Mon, 10 Mar 2003 00:03:57
Thank you very much, I never expected so much support.
Problem is I am running XP and it does not have a security tab in the 
properties dialog box. It has something called Web sharing that allows 
you to add and edit accounts which I take to be equivalent. When I try to 
add ASPNET it tells me that that user already exists (although it is not 
listed) and it will not let me do anything else. There is no advance tab.
I will try to change the conexion file as well, but I wonder if there is 
any way round the permissions snag.

Thank you very much again.

Carlos
Message #10 by "Mark Hartshorn" <mark.mch1@n...> on Mon, 10 Mar 2003 00:26:29
This sounds like simply security is enabled rather than standard NT/XP 
security.

This can be disabled in Windows Explorer, Tools, Folder Options then 
select the View tab

The last check box is

use simple file sharing (recommended)

uncheck this box.

Mark

Message #11 by "Jerry Lanphear" <jerrylan@q...> on Sun, 9 Mar 2003 18:16:21 -0700
I went through all these steps too when my ASP.NET would not work on my
localhost with XP PRO. The thing that solved the problem was installing
Service Pack 2 (SP2).  The key is a file called machine.config. If you do a
search on that name you will find more information.

Regards
----- Original Message -----
From: "Mark Hartshorn" <mark.mch1@n...>
To: "Website Programming with ASP.NET"
<aspdotnet_website_programming@p...>
Sent: Monday, March 10, 2003 12:26 AM
Subject: [aspdotnet_website_programming] Re: Error when trying to launch
"http://localhost/thephileVB"


> This sounds like simply security is enabled rather than standard NT/XP
> security.
>
> This can be disabled in Windows Explorer, Tools, Folder Options then
> select the View tab
>
> The last check box is
>
> use simple file sharing (recommended)
>
> uncheck this box.
>
> Mark
>
> ---
> Professional Design Patterns in VB.NET:
> Building Adaptable Applications
>
> Want to know how design patterns bring reusable
> design and adaptabilty to your applications? How
> to recognize the need for a design pattern
> solution? How to select, design, and implement
> the right patterns? How parts of the .NET Framework
> (like the .NET Data Providers and .NET Remoting)
> take advantage of design patterns? This book
> presents a practical approach to using design
> patterns in VB.NET, by focusing on the relevance
> of design patterns in the different tiers of a
> distributed n-tier architecture.
>
> http://www.wrox.com/books/1861006985.htm
>
>
>

Message #12 by carlos@t... on Mon, 10 Mar 2003 01:28:38
Thank you for your patience.
That was helpful. I did manage to create the account and the permisssions 
and I got the message Steve predicted.
I changed the code between the conection tags to what he produced with 
the name of my computer. And I got this error message:

Error

--------------------------------------------------------------------------
------
An unexpected error has occurred on this page.The system administrators 
have been notified.

The error occurred in:
http://localhost/thephile/Default.aspx

Error Message:
There is an error in XML document (4, 31).

Error Stack:
System.InvalidOperationException: There is an error in XML document (4, 
31). ---> System.Xml.XmlException: 'Element' is an invalid node type. 
Line 4, position 31.
   at System.Xml.XmlReader.ReadElementString()
   at 
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read
1_ModuleSettings(Boolean isNullable, Boolean checkType)
   at 
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read
4_ModuleSettings()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader 
xmlReader, String encodingStyle)
   at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)
   at Wrox.WebModules.Polls.Configuration.ModuleConfig.GetSettings() in 
D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Polls.Configuration\ModuleConfig
.vb:line 38
   at Wrox.WebModules.Polls.Business.Question.GetCurrentId() in 
D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Polls.Business\Question.vb:line 
224
   at Wrox.WebModules.Polls.Web.Controls.User.Poll.DataBind() in 
D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Poll.ascx.vb:line 260
   at Wrox.WebModules.Polls.Web.Controls.User.Poll.Page_Load(Object 
sender, EventArgs e) in D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Poll.ascx.vb:line 62
   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()

I am sorry to be such a pain, but I feel I am almost there.
Thanksagain

Carlos
Message #13 by Steven Nelson <steven.nelson@m...> on Mon, 10 Mar 2003 10:33:33 -0000
Carlos,

Check you haven't malformed the xml page when you were cutting and pasting.
You might have lost an angled bracket or something. Mine reads as below.
Using this code with the machine name amended for your data source, may
correct your error:

<?xml version="1.0" ?>
<ModuleSettings xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<ConnectionString>Password=;Persist Security Info=True;User
ID=sa;Initial Catalog=thePhile;Data Source=[Machine name]</ConnectionString>
	<LockByIP>true</LockByIP>
	<LockByCookie>true</LockByCookie>
	<LockDuration>7</LockDuration>
</ModuleSettings>

Steven

-----Original Message-----
From: carlos@t... [mailto:carlos@t...]
Sent: 10 March 2003 01:29
To: Website Programming with ASP.NET
Subject: [aspdotnet_website_programming] Re: Error when trying to launch
"http://localhost/thephileVB"


Thank you for your patience.
That was helpful. I did manage to create the account and the permisssions 
and I got the message Steve predicted.
I changed the code between the conection tags to what he produced with 
the name of my computer. And I got this error message:

Error

--------------------------------------------------------------------------
------
An unexpected error has occurred on this page.The system administrators 
have been notified.

The error occurred in:
http://localhost/thephile/Default.aspx

Error Message:
There is an error in XML document (4, 31).

Error Stack:
System.InvalidOperationException: There is an error in XML document (4, 
31). ---> System.Xml.XmlException: 'Element' is an invalid node type. 
Line 4, position 31.
   at System.Xml.XmlReader.ReadElementString()
   at 
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read
1_ModuleSettings(Boolean isNullable, Boolean checkType)
   at 
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read
4_ModuleSettings()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader 
xmlReader, String encodingStyle)
   at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)
   at Wrox.WebModules.Polls.Configuration.ModuleConfig.GetSettings() in 
D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Polls.Configuration\ModuleConfig
.vb:line 38
   at Wrox.WebModules.Polls.Business.Question.GetCurrentId() in 
D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Polls.Business\Question.vb:line 
224
   at Wrox.WebModules.Polls.Web.Controls.User.Poll.DataBind() in 
D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Poll.ascx.vb:line 260
   at Wrox.WebModules.Polls.Web.Controls.User.Poll.Page_Load(Object 
sender, EventArgs e) in D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Poll.ascx.vb:line 62
   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()

I am sorry to be such a pain, but I feel I am almost there.
Thanksagain

Carlos
---
Professional Design Patterns in VB.NET: 
Building Adaptable Applications

Want to know how design patterns bring reusable 
design and adaptabilty to your applications? How 
to recognize the need for a design pattern 
solution? How to select, design, and implement 
the right patterns? How parts of the .NET Framework 
(like the .NET Data Providers and .NET Remoting) 
take advantage of design patterns? This book 
presents a practical approach to using design 
patterns in VB.NET, by focusing on the relevance 
of design patterns in the different tiers of a 
distributed n-tier architecture. 

http://www.wrox.com/books/1861006985.htm

 
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please let us know by e-mail reply
and delete it from your system; you may not copy this message or disclose
its contents to anyone.  Please note that any views or opinions presented in
this email are solely those of the author and do not necessarily represent
those of MMT Computing plc.  Finally, the recipient should check this email
and any attachments for the presence of viruses.  MMT Computing plc accepts
no liability for any damage caused by any virus transmitted by this email. 
Message #14 by "Ric Clarke" <ric@l...> on Mon, 10 Mar 2003 17:27:05
> Unfortunately, I cant read French, but the error looks very similar to 
o> ne I received when trying to get the site running for the first time.

> To fix my problem I set the SQL authentication mode to Mixed Mode 
rather 
t> han Windows Authentication.
 > 
M> ark
Message #15 by carlos@t... on Tue, 11 Mar 2003 05:59:58
Steven,
Thank you very much. That sounded very promissing, and thank you again 
for the help. But I am affraid I am at it again, and this time with a 
vengance. I tried to edit the files as you sugested but it would not let 
me save then (I think now it was because the browser was still oppened) 
so I deleted the folder and copied it again, changed the code and tried 
again. Got an error message saying it could not access. I checked IIS and 
sure enough the virtual directory gave an error so I set it up again. 
Then I got a message saying SQL server does not exist or access denied. I 
deleted the db and restored it again, checked all the sharing and 
security permissions for the folders and they are ok, but I stil get that 
message. I am sorry about the trouble, I felt like I was almost there and 
here I am back to the start. Please help me 
Thank you

The error message is:

Error

--------------------------------------------------------------------------
------
An unexpected error has occurred on this page.The system administrators 
have been notified.

The error occurred in:
http://localhost/thephile/Default.aspx

Error Message:
SQL Server does not exist or access denied.

Error Stack:
System.Data.SqlClient.SqlException: SQL Server does not exist or access 
denied.
   at System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& 
isInTransaction)
   at System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection
(SqlConnectionString options, Boolean& isInTransaction)
   at System.Data.SqlClient.SqlConnection.Open()
   at Wrox.WebModules.Data.DbObject.RunProcedure(String storedProcName, 
IDataParameter[] parameters, Int32& rowsAffected) in D:\Demian\Visual 
Studio Projects\Wrox\ThePhileVB\WebModules\Core\DBObject.vb:line 53
   at Wrox.WebModules.Polls.Data.Questions.GetCurrentId() in 
D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Polls.Data\Questions.vb:line 158
   at Wrox.WebModules.Polls.Business.Question.GetCurrentId() in 
D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Polls.Business\Question.vb:line 
227
   at Wrox.WebModules.Polls.Web.Controls.User.Poll.DataBind() in 
D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Poll.ascx.vb:line 260
   at Wrox.WebModules.Polls.Web.Controls.User.Poll.Page_Load(Object 
sender, EventArgs e) in D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Poll.ascx.vb:line 62
   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()


Thanks again
Message #16 by Steven Nelson <steven.nelson@m...> on Tue, 11 Mar 2003 09:07:22 -0000
Carlos,

Ok, carry out the instructions from the previous posts to get back to how
the application was when you got the xml error. The file is locked by the
process asp_wp.exe which prevents it from being modified. Simply restart iis
to unlock this. The easiest weay to do this is:

 - Click Start -> Run 
 - Type iisreset
 - Click Ok

After a up to 10 seconds You should be able to edit this file again.

Steven

-----Original Message-----
From: carlos@t... [mailto:carlos@t...]
Sent: 11 March 2003 06:00
To: Website Programming with ASP.NET
Subject: [aspdotnet_website_programming] Re: Error when trying to laun
ch "http://localhost/thephileVB"


Steven,
Thank you very much. That sounded very promissing, and thank you again 
for the help. But I am affraid I am at it again, and this time with a 
vengance. I tried to edit the files as you sugested but it would not let 
me save then (I think now it was because the browser was still oppened) 
so I deleted the folder and copied it again, changed the code and tried 
again. Got an error message saying it could not access. I checked IIS and 
sure enough the virtual directory gave an error so I set it up again. 
Then I got a message saying SQL server does not exist or access denied. I 
deleted the db and restored it again, checked all the sharing and 
security permissions for the folders and they are ok, but I stil get that 
message. I am sorry about the trouble, I felt like I was almost there and 
here I am back to the start. Please help me 
Thank you

The error message is:

Error

--------------------------------------------------------------------------
------
An unexpected error has occurred on this page.The system administrators 
have been notified.

The error occurred in:
http://localhost/thephile/Default.aspx

Error Message:
SQL Server does not exist or access denied.

Error Stack:
System.Data.SqlClient.SqlException: SQL Server does not exist or access 
denied.
   at System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& 
isInTransaction)
   at System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection
(SqlConnectionString options, Boolean& isInTransaction)
   at System.Data.SqlClient.SqlConnection.Open()
   at Wrox.WebModules.Data.DbObject.RunProcedure(String storedProcName, 
IDataParameter[] parameters, Int32& rowsAffected) in D:\Demian\Visual 
Studio Projects\Wrox\ThePhileVB\WebModules\Core\DBObject.vb:line 53
   at Wrox.WebModules.Polls.Data.Questions.GetCurrentId() in 
D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Polls.Data\Questions.vb:line 158
   at Wrox.WebModules.Polls.Business.Question.GetCurrentId() in 
D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Polls.Business\Question.vb:line 
227
   at Wrox.WebModules.Polls.Web.Controls.User.Poll.DataBind() in 
D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Poll.ascx.vb:line 260
   at Wrox.WebModules.Polls.Web.Controls.User.Poll.Page_Load(Object 
sender, EventArgs e) in D:\Demian\Visual Studio 
Projects\Wrox\ThePhileVB\WebModules\Polls\Poll.ascx.vb:line 62
   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()


Thanks again
---
Professional Design Patterns in VB.NET: 
Building Adaptable Applications

Want to know how design patterns bring reusable 
design and adaptabilty to your applications? How 
to recognize the need for a design pattern 
solution? How to select, design, and implement 
the right patterns? How parts of the .NET Framework 
(like the .NET Data Providers and .NET Remoting) 
take advantage of design patterns? This book 
presents a practical approach to using design 
patterns in VB.NET, by focusing on the relevance 
of design patterns in the different tiers of a 
distributed n-tier architecture. 

http://www.wrox.com/books/1861006985.htm

 
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please let us know by e-mail reply
and delete it from your system; you may not copy this message or disclose
its contents to anyone.  Please note that any views or opinions presented in
this email are solely those of the author and do not necessarily represent
those of MMT Computing plc.  Finally, the recipient should check this email
and any attachments for the presence of viruses.  MMT Computing plc accepts
no liability for any damage caused by any virus transmitted by this email. 

  Return to Index