1 vote
Sections must only appear once per config file.

Description

 
i have used this part of code in my project just to verify.
it was looking working but found one error.
Please, look into it and if you have any suggestions or solution then post it here.

Error 1 The "BuildWebProfile" task failed unexpectedly.
System.Configuration.ConfigurationErrorsException: Sections must only appear once per config file. See the help topic <location> for exceptions. (C:\Users\harsh\Desktop\ReSearch\harsh\WebApplication2\WebApplication2\web.config line 87)
at System.Configuration.SectionRecord.ThrowOnErrors()
at System.Configuration.BaseConfigurationRecord.GetSectionRecord(String configKey, Boolean permitErrors)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission)
at System.Configuration.Configuration.GetSection(String sectionName)
at WebProfileBuilder.Builder.Initialize(String directory)
at WebProfileBuilder.Builder.GenerateWebProfile(BuildWebProfile buildWebProfile)
at WebProfileBuilder.BuildWebProfile.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult) WebApplication2

File Attachments


No files are attached


Comments

most recent at top (show oldest at top)


Updating...
Page view tracker