JNas
JNas

Reputation: 11

While publishing asp.net application add_data folder is missing in visual studio 2015.How can i get?

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>

Upvotes: 1

Views: 2205

Answers (2)

Reshma
Reshma

Reputation: 292

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 .

Upvotes: 2

M. Wiśnicki
M. Wiśnicki

Reputation: 6203

enter image description here

Check your setting when you publish app.

Upvotes: 1

Related Questions