Click to See Complete Forum and Search --> : Configuration error.
rapidz
05-03-2007, 04:37 AM
If anyone can solve this, they will make my day!!!
I can't view any of my code locally...
when I try, this is the error I get. I have no idea what it is.
Any help would be MUCH appreciated.
***ERROR MESSAGE BELOW***
Server Error in '/skizone' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: An error occurred loading a configuration file: Failed to start monitoring changes to 'C:\Documents and Settings\Nick\My Documents\Websites\skizone' because access is denied.
Source Error:
[No relevant source lines]
Source File: C:\Documents and Settings\Nick\My Documents\Websites\skizone\web.config Line: 0
Ribeyed
05-03-2007, 04:51 AM
have you copied the code from somewhere else to your machine?
Have you checked the permissions on the files you are trying to open/modify?
rapidz
05-03-2007, 04:57 AM
i have copied the code from another machine yes...
how would i check/change permissions. thankyou for the help.
Ribeyed
05-03-2007, 05:01 AM
navigate to your file location, find the files right click go to properties. If you have moved them from disk they will be read only, you need to uncheck the read only checkbox.
rapidz
05-03-2007, 05:14 AM
the read-only checkbox wasn't ticked, so i don't think that is the issue. I've got IIS running and fully functional. i don't understand this.
rapidz
05-03-2007, 05:47 AM
any other ideas? i seriously have to get this working soon...
Ribeyed
05-03-2007, 06:04 AM
Have you tried browsing the file through IIS?
check to make sure that the default website in IIS points to the same folder as your code.
rapidz
05-03-2007, 06:21 AM
Ribeyed, thanks for all your help, i think i'm steadily getting somewhere.
There is a different error now:
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 42: by Microsoft that offers a single logon and core profile services for member sites.
Line 43: -->
Line 44: <authentication mode="Forms">
Line 45: <forms name="CookName" protection="All" timeout="20" loginUrl="Default.aspx">
Line 46: <credentials passwordFormat="Clear">
Source File: c:\inetpub\wwwroot\asp\web.config Line: 44
What could that be down to, all your help is much appreciated.
Ribeyed
05-03-2007, 07:44 AM
ok,
in IIS go to your default website and right click, go to properties. CLick home Directory tab. In the application settings panel click create. This should configure your directory as an application.
rapidz
05-03-2007, 08:44 AM
ok. thankyou very much, i can now view the site.
The problem now lies with the database. I'm getting this error...
Server Error in '/asp' Application.
The Microsoft Jet database engine cannot open the file 'C:\Documents and Settings\Nick\My Documents\Websites\skizone\asp\Database\Skishop.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: The Microsoft Jet database engine cannot open the file 'C:\Documents and Settings\Nick\My Documents\Websites\skizone\asp\Database\Skishop.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
Source Error:
Line 65:
Line 66: Conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\\Documents and Settings\\Nick\\My Documents\\Websites\\skizone\\asp\\Database\\Skishop.mdb"
Line 67: Conn.Open()
Line 68:
Line 69: 'strSql
Source File: c:\inetpub\wwwroot\asp\NewUser.aspx.vb Line: 67
Stack Trace:
[OleDbException (0x80004005): The Microsoft Jet database engine cannot open the file 'C:\Documents and Settings\Nick\My Documents\Websites\skizone\asp\Database\Skishop.mdb'. It is already opened exclusively by another user, or you need permission to view its data.]
System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +1054849
System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +53
System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +27
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +47
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.OleDb.OleDbConnection.Open() +37
SkiManager.WebForm4.btnSuscribe_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\asp\NewUser.aspx.vb:67
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
Apparently i'm told its a common error, but i don't know a solution to it. If you could fix that one, you are a legend. (you're already a legend, but you'll be even more so)
Ribeyed
05-03-2007, 09:26 AM
find your database and right click, properties. You have to add ASPNET user permissions to read/write to the database.
rapidz
05-03-2007, 09:45 AM
cheers Ribeyed, check your pm's mate.