1

I am working in Visual studio 2015.App_data folder is missing while publishing the project.So I am getting an error like

<!-- Web.Config Configuration File -->

<configuration>  
    <system.web>
        <customErrors  mode="Off"/>
    </system.web>
</configuration>
ArK
  • 20,698
  • 67
  • 109
  • 136
JNas
  • 11
  • 2

2 Answers2

2

Open App_Data folder in Solution Explorer, for each file inside app_data set property "Build Action" to "Content" . Rebuild solution . publish .

I think this will work .

Reshma
  • 282
  • 1
  • 2
  • 12
1

enter image description here

Check your setting when you publish app.

M. Wiśnicki
  • 6,094
  • 3
  • 23
  • 28
  • Thanks for your reply.I have unchecked the option Exclude files from app_data,but still not getting app_data in published folder – JNas Sep 14 '16 at 11:41
  • You can always publish only 'App_Data', click right on it > Publish. – M. Wiśnicki Sep 14 '16 at 11:52
  • I am gettin a message like-File App_Data/PublishProfiles/EHRMS.pubxml was ignored as it matches the set of extensions to skip when selectively publishing. – JNas Sep 15 '16 at 05:40