CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: NewsGroup Date Entered: 9/22/2007 5:53:34 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 6 Views: 106 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
hemant_vikram
Asp.Net User
Access to the path 'C:\Inetpub\WWWroot\MyWebAppl\App_Data' is denied.9/22/2007 5:53:34 AM

0/0

Hi All, 

I have VS 2005 installed in my machine along with SP1 (Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack 1 (KB926601) ). My web application (not web site) executes perfectly in my local machine. But after publishing my web application and deploying it to the server, i get the following exception when trying to access the database. Access to the path 'C:\Inetpub\WWWroot\MyWebAppl\App_Data' is denied.

            I'm not using this (App_Data) Special folder at all in my web application. There is no folder as such!!! Do i need to install this SP1 or any hotfix to my server or this is some other issue? Please help me out of this problem.


Thanx and Regards,
Hemant
MatsL
Asp.Net User
Re: Access to the path 'C:\Inetpub\WWWroot\MyWebAppl\App_Data' is denied.9/22/2007 1:20:38 PM

0/0

Do you use a provider such as MembershipProvider or ProfileProvider?

They default to that directory. Check your web.config for any references also.


Mertil Interaktion
http://www.mertil.se

Be a part of the Community Recognition Program. Click "Mark as Answer" on the post that answered your question. This gives you points and rewards the person who helped you as well.
hemant_vikram
Asp.Net User
Re: Access to the path 'C:\Inetpub\WWWroot\MyWebAppl\App_Data' is denied.9/22/2007 1:25:54 PM

0/0

Hi MatsL,

              I 'm using Profile but not sure if this Profile Provider. Below is a part of my web.config file that shows the profile properties I 'm using in my web application.

<anonymousIdentification enabled="true"/>

<profile enabled="true">

<properties>

<add name="LoggedUsername" type="string" allowAnonymous="true"/>

<add name="Name" type="string" allowAnonymous="true"/>

<add name="Email" type="string" allowAnonymous="true"/>

<add name="Privilege" type="Int32" allowAnonymous="true"/>

</properties>

</profile>


Thanx and Regards,
Hemant
MatsL
Asp.Net User
Re: Access to the path 'C:\Inetpub\WWWroot\MyWebAppl\App_Data' is denied.9/22/2007 1:35:28 PM

0/0

That's what's causing it I think, it stores the profile data in a database in App_Data.

Don't you have that folder on your dev machine? There is btw a checkbox in the publish dialog to include files from App_Data.


Mertil Interaktion
http://www.mertil.se

Be a part of the Community Recognition Program. Click "Mark as Answer" on the post that answered your question. This gives you points and rewards the person who helped you as well.
hemant_vikram
Asp.Net User
Re: Access to the path 'C:\Inetpub\WWWroot\MyWebAppl\App_Data' is denied.9/24/2007 5:31:43 AM

0/0

Hi MatsL ,

               I don't know where it stores the profile data Coz i didn't find any folder with the name App_Data in my web application. S, I don't have folder in my dev machine at all.

                Then I published the application as per your suggesstion as to check the checkbox that includes files from App_Data. After deploying this published web site, I found there is new folder by this name (App_Data) added but is empty. I got a different error this time when executing the application. The error is: Unable to connect to the database.

Hope we are getting closer to the solution of this problem Big Smile


Thanx and Regards,
Hemant
MatsL
Asp.Net User
Re: Access to the path 'C:\Inetpub\WWWroot\MyWebAppl\App_Data' is denied.9/24/2007 7:32:56 AM

0/0

Then where the heck is your database? Smile

It must be configured to be somewhere else. What is your connectionstring called btw, is it LocalSqlServer? That's the name of the default connectionstring that the provider use. Perhaps the db on your local machine has some tables that aren't present on the production?

 Also, set trace="true" in the page directive on a page and put this in your page_load:
Trace.Write(ConfigurationManager.ConnectionStrings["LocalSqlServer"].ConnectionString);

Then you should see what database he's connecting to.


Mertil Interaktion
http://www.mertil.se

Be a part of the Community Recognition Program. Click "Mark as Answer" on the post that answered your question. This gives you points and rewards the person who helped you as well.
hemant_vikram
Asp.Net User
Re: Access to the path 'C:\Inetpub\WWWroot\MyWebAppl\App_Data' is denied.9/25/2007 5:19:57 AM

0/0

Hi MatsL Big Smile,

              I tried publishing the web applicatio 2nd time (using the check box checked to include App_Data along with radio button that includes all the file and this time it created a App_Data folder along with a database (aspnetdb.mdb) inside it. Strange as why it didn't created the database when i published first Confused

              I deployed the application this time with the App_Data folder along with the database and configured the LocalSqlServer to use sa account to connect to the database and not it is working fine Yes. Thousands of thanks MatsL Cool and now I understand whatz going behind the scene.

              Also, I 'm having a different database for my application and therefore, for my web application to work, i need 2 databases???. Is there any way I can make it one.

             


Thanx and Regards,
Hemant
7 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Access to the path 'C:\Inetpub\WWWroot\MyWebAppl\App_Data' is ... Access to the path 'C:\Inetpub\WWWroot\MyWebAppl\App_Data' is denied. I'm not using this (App_Data) Special folder at all in my web ...




Search This Site:










bug? asp:hiddenfield not auto created in designer.vb

asp.net page title: having new line

making web application with exe module ?

installation issue

the following module was built either with optimizations enabled or without debug information

wap on visual web developer 2005 express edition?

define exactly position an object in webform?

accesssing controls in code behind

error generating designer file

vbcrlf does not start a new line in asp.net 2.0.

website project and web application project

unable to open aspx pages with crystal 11 release 2

warning: generation of designer file failed: inherits attribute not found.

no symbols loaded problem after reinstallation of windows xp

master pages question

'attempted to read or write protected memory.this is often an indication the other memory is corrupt'

edit and continue not working

splitting up an existing site

web application project now working

pulling the database using webapp to my hosting site

web profile generator addin registration problems!!

create virtual fails if virtual already exists

saving layout structure

club starter kit remote server error

.csproj file corrupted

problem with .net framework 2.0 in windows 2003 server

allowdefinition='machinetoapplication error - iis 5 to iis 6?

solution file syntax for web application projects

using reflection on web site's main assembly

missing asp.net web application template vs 2005

  Privacy | Contact Us
All Times Are GMT