Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Im converting one project from 2008 to 2010. in that iam getting error like

'FDR.Properties.Settings' does not contain a definition for 'RPCSS_DEVConnectionString' and no extension method 'RPCSS_DEVConnectionString' accepting a first argument of type 'FDR.Properties.Settings' could be found (are you missing a using directive or an assembly reference?)   C:\RPCSS\_svn_code_working_on_5032013_second_copy\FDR\FdrApp\eRPT.designer.cs




C#
public eRPTDataContext()
            : base(global::FDR.Properties.Settings.Default.RPCSS_DEVConnectionString, mappingSource)
        {
            OnCreated();
        }


Im getting error in this, Please anyone help me out to get rid from this issue


[edit]Code block added[/edit]
Posted
Updated 31-May-13 9:14am
v2
Comments
Richard MacCutchan 31-May-13 17:00pm    
Did you see that error message that gives you a hint abot what is missing from your source?

1 solution

Hey Richard,
Thanks for response. I solved this issue.

I got two solutions for this.

public eRPTDataContext() :
base(ConfigurationManager.ConnectionStrings["RPCSS_DEVConnectionString"].ConnectionString.ToString(), mappingSource)
{
OnCreated();
}

(or)

public eRPTDataContext()
: base(global::FDR.Properties.Settings.Default.SettingsKey, mappingSource)
{
OnCreated();
}
Here I changed application setting into configuration and to application and solved my issue. but any way my team mate working on configuration manager so now iam using first solution
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900