asp.net with c# dropdownlist - c#

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1061: 'ASP.addemployee_aspx' does not
contain a definition for 'DropDownState_SelectedIndexChanged' and no
extension method 'DropDownState_SelectedIndexChanged' accepting a
first argument of type 'ASP.addemployee_aspx' could be found (are you
missing a using directive or an assembly reference?)

Related

Compilation Error when editing Strings.resx file in Hangfire.Core v1.7.18

Can someone help me resolve this error? I downloaded the Hangfire v1.7.18 from GitHub and I get the following error when I add/edit a key/value in the Strings.resx file.
The error is thrown on line 42 and specifically on this part - typeof(Strings).Assembly
and it looks like it is happening for .netstandard 1.3. Here is the complete error:
Error|CS1061| ‘Type’ does not contain a definition for ‘Assembly’ and no accessible extension method ‘Assembly’ accepting a first argument of type ‘Type’ could be found (are you missing a using directive or an assembly reference?) in Project Hangfire.Core (netstandard1.3) The file is src\Hangfire.Core\Dashboard\Content\resx\Strings.Designer.cs at Line 42

How can I switch between databases in startup

I have an MVP c# application where I have an SQLLite database for development purposes and a SQLServer database for deployment purposes. Whenever I try to build it with the SQL server database, it shows: "Build failed."
I am a student Informatica and our teacher says that we could solve our problem by using a simple "if else" to switch between development and deployment but we have no idea how.
We have already used dependency injection and migrations.
Here are 2 images with the error:
1)
2)
3) This is the error:
Startup.cs(41,71): error CS1061: 'DbContextOptionsBuilder' does not contain a definition for 'UseMySQL' and no accessible extension method 'UseMySQL' accepting a first argument of type 'DbContextOptionsBuilder' could be found (are you missing a using directive or an assembly reference?) [/cityofideas_dotnet/cityofideas/cityofideas.csproj]
Startup.cs(42,76): error CS1061: 'DbContextOptionsBuilder' does not contain a definition for 'UseMySQL' and no accessible extension method 'UseMySQL' accepting a first argument of type 'DbContextOptionsBuilder' could be found (are you missing a using directive or an assembly reference?) [/cityofideas_dotnet/cityofideas/cityofideas.csproj] Build FAILED.
4) Finally
Microsoft.EntityFrameworkCore.Tools.CommandException: Build failed.
at Microsoft.EntityFrameworkCore.Tools.Project.Build()
at Microsoft.EntityFrameworkCore.Tools.RootCommand.Execute()
at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args)
at Microsoft.EntityFrameworkCore.Tools.Program.Main(String[] args)
Build failed.
Please help us!

How resolve unity 2019.1.0f2 error with 2D SpriteShape?

I have unity 2019.1.0f2 version, and I have used 2d spriteshape(Version 2.0.0) in my project.I get the following error.
Assets/2D SpriteShape/Extras/Scripts/SimpleDraw.cs(39,20): error CS1061: 'Spline' does not contain a definition for 'SetBevelSize' and no accessible extension method 'SetBevelSize' accepting a first argument of type 'Spline' could be found (are you missing a using directive or an assembly reference?)

CS1061 'object' does not contain a definition for 'Text' and no extension method

Hi im getting the Error CS1061 'object' does not contain a definition for 'Text' and no extension method 'Text' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
No matter what i do i cannot seem to get rid of this error. Im trying to make the csv file importable to my SQL DB.

Variable in a class instance is inaccessible due to its protection level

I am using a demo sample from a class library named Accord.net All the referenses are ok but I get the following error message:
1> All packages listed in D:\Software Projects\Classification (SVMs)\packages.config are already installed.
1>D:\Software Projects\Classification (SVMs)\MainForm.cs(174,42,174,50): error CS1061: 'System.Array' does not contain a definition for 'GetRange' and no extension method 'GetRange' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an assembly reference?)
1>D:\Software Projects\Classification (SVMs)\MainForm.cs(177,37,177,46): error CS0117: 'Accord.Math.Matrix' does not contain a definition for 'Cartesian'
1>D:\Software Projects\Classification (SVMs)\MainForm.cs(178,17,178,23): error CS0122: 'Accord.Math.Vector' is inaccessible due to its protection level
1>D:\Software Projects\Classification (SVMs)\MainForm.cs(179,17,179,23): error CS0122: 'Accord.Math.Vector' is inaccessible due to its protection level
I can not modify the protection level of those classes to e.g public as I do not have access to them. What can I do to let this compile?

Categories