Jump to content

Recommended Posts

Posted

Migration .Net Framework 1.1 applications to .Net Framework 4.0

 

Steps

  • Download the application from TFS that you desired to migrate.
  • Open the Visual Studio 2010 IDE and browse to the project folder [downloaded application] and open the solution/project file[vb or cs] follow the migration wizard and continue until wizard finishes.
  • By default the migrated project is targeted to Compile against .net framework 2.0 Build the project once and make sure there aren’t any compilation errors
  • After successful compilation update the project to target to .net Framework 4.0 and rebuild once again

Update the project properties (Target CPU : x86 and Target Framework : .Net Framework 4.0)

 

  • Replies 221
  • Created
  • Last Reply

Top Posters In This Topic

  • dotnetrockz

    32

  • puli_keka

    31

  • karna11

    28

  • Suhaas

    16

Posted

Converting .net 1.1 to 2.0 on VS 2005.

 

It copied all the .vb files to App_Code folder and when I am compiling the whole project it is giving me various errors. Most of them I think are  similar .For e.g.: I have 2 files libFunction.vb, 2.vb. I am using libFunction.vb class class in 3.vb file.

 

Compiler Error Message: BC30560: 'LibFunction' is ambiguous in the namespace 'webProject1'.

 

Line 12: Dim LibFunction As New webProject1.LibFunction

 

It used to work perfectly in 1.1 but in 2.0/VS2005 it is giving me above error 

Posted

post the errors here...mostly they will be assembly refernce errors or some components which dont work no more in 2.0/4.0

Converting .net 1.1 to 2.0 on VS 2005.

 

It copied all the .vb files to App_Code folder and when I am compiling the whole project it is giving me various errors. Most of them I think are  similar .For e.g.: I have 2 files libFunction.vb, 2.vb. I am using libFunction.vb class class in 3.vb file.

 

Compiler Error Message: BC30560: 'LibFunction' is ambiguous in the namespace 'webProject1'.

 

Line 12: Dim LibFunction As New webProject1.LibFunction

 

It used to work perfectly in 1.1 but in 2.0/VS2005 it is giving me above error 

Posted

Converting .net 1.1 to 2.0 on VS 2005.

 

It copied all the .vb files to App_Code folder and when I am compiling the whole project it is giving me various errors. Most of them I think are  similar .For e.g.: I have 2 files libFunction.vb, 2.vb. I am using libFunction.vb class class in 3.vb file.

 

Compiler Error Message: BC30560: 'LibFunction' is ambiguous in the namespace 'webProject1'.

 

Line 12: Dim LibFunction As New webProject1.LibFunction

 

It used to work perfectly in 1.1 but in 2.0/VS2005 it is giving me above error 

 

use the fully qualified namespace at the place where you are getting this error for ex: if you "FileDialog" keyword, then change it to   System.Windows.Forms.FileDialog or the one that matches your present context and build the sol again. 

Posted

Converting .net 1.1 to 2.0 on VS 2005.

 

It copied all the .vb files to App_Code folder and when I am compiling the whole project it is giving me various errors. Most of them I think are  similar .For e.g.: I have 2 files libFunction.vb, 2.vb. I am using libFunction.vb class class in 3.vb file.

 

Compiler Error Message: BC30560: 'LibFunction' is ambiguous in the namespace 'webProject1'.

 

Line 12: Dim LibFunction As New webProject1.LibFunction

 

It used to work perfectly in 1.1 but in 2.0/VS2005 it is giving me above error 

  u need to go u r  references section of u r  Project and go to add a new reference, where I browsed to Windows/Microsoft .NET/Frameworks/2.0/System.dll - When u tried adding this assembly, it 'll gives some message like gurthu ledhu but check box of click cheyyi "apply to all items" then yes ani kottu.

 

it 'll solve i think 

Posted

 we upgraded mvc3 to mvc 5

I have the following base controller

public class MyController : BaseController

public class BaseController : Controller
{
protected override void Execute(RequestContext requestContext)
{
  base.Execute(requestContext);
}
}

 

ee Execute() method fire ayithale enduku ? MVC5 lo vere changes emanna cheyala

Posted

http://www.jamesshore.com/Blog/Dependency-Injection-Demystified.html

 

"Dependency Injection" is a 25-dollar term for a 5-cent concept. anta 2w2r5gm.jpg

 

super simple chesi chepadu 

 

What is dependency injection?

In a nutshell, dependency injection is a design pattern where external dependencies are “injected” into components rather than baked in.

If that made your eyes glaze over, think about it like this: imagine your friend asked you to drive him to the supermarket:

 

 

You would probably just hop in your car and take him:

 

 

But what if your friend asked you to drive him and his 5 friends to the supermarket, but your car only seats 4?

3.jpg

You would need a bigger car, right? Well, the good news is that since most cars implement the same interface (steering wheel, accelerator, brakes, etc.), you’re not only capable of driving your own car but many other cars as well. So if you had access to say, your mom’s minivan, you could complete the trip:

4.jpg

At the root of it, that’s what dependency injection is all about. Instead of you being stuck having to always use your car for your trips, you will be given the correct car to use based on the circumstances.

Bringing this back into software terminology, in the analogy above you (the driver) are a class and the car is your dependency. You depend on the car to drive your friend(s) to the supermarket. It doesn’t matter which car you use, so long as it’s familiar to you. Without dependency injection, the You class might look something like this:

 

1 2 3 4 5 6 7 8 9 10 11

public class You {
private Car myCar = new Car();
 
public void Drive(IList<Person> passengers, Location destination)
{
foreach (var passenger in passengers)
myCar.AddPassenger(passenger);
 
myCar.Drive(destination);
}
}
view raw gistfile1.cs hosted with ❤ by GitHub

 

Notice how you’ll always be using that particular instance of Car to complete the trip. With dependency injection however, the You class would look something like this:

 

 

 

 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

public class You {
private ICar myCar;
 
public You(ICar car)
{
myCar = car;
}
 
public void Drive(IList<Person> passengers, Location destination)
{
foreach (var passenger in passengers)
myCar.AddPassenger(passenger);
 
myCar.Drive(destination);
}
}

 

 

Posted

[quote name="vinuu" post="1305235181" timestamp="1398892317"]

ltt[/quote
Nuvvu enni nerchukuntavamma....eppudu .net aa lol

Posted

Nissam mayya, karna  and other dbians..

 

maa vollu Ninject use chesi savadobbings.. please guide me to some articles/materials/tutorials on Ninject and dependecy injection..   without Ninject oka chinna console app kuda create cheyatle janalu..

Posted

Nissam mayya, karna  and other dbians..

 

maa vollu Ninject use chesi savadobbings.. please guide me to some articles/materials/tutorials on Ninject and dependecy injection..   without Ninject oka chinna console app kuda create cheyatle janalu..

plural site loo bagundhi, Ninject, DI gurinchi, search chesi vuntee post chesthaa inka

Posted

evaraina dotnet people online unnara  :5_2_108:

cheppu mater enti?

×
×
  • Create New...