Visual Studio, Windows 7, Web Site, Profile Exception, HELP!
Hello,
I have a major problem with a website project using visual studio 2005...
I upgraded my PC to windows 7 X64, I installed vs 2005.
I made sure all components/references matched my old Winxp PC.
With all that said...
I make no changes to the project.
My project works fine in production environment.
I publish the unchanged project to my webserver, and I get the following error when accessing the site...
[ArgumentNullException: Value cannot be null.
Parameter name: type]
System.Activator.CreateInstance(Type type, Boolean nonPublic) +7469318
System.Web.Profile.ProfileBase.CreateMyInstance(String username, Boolean isAuthenticated) +79
System.Web.Profile.ProfileBase.Create(String username, Boolean isAuthenticated) +231
System.Web.HttpContext.get_Profile() +107
MasterPage.get_Profile() +17
MasterPage.Page_Load(Object sender, EventArgs e) +563
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
I re-publish from my xp box, the error goes away.
The problem occurs on any page that trys to access the Profile object.
I have even tried converting site to .net 3.5 in VS 2008, and THE SAME ERROR OCCURS.
Something is different when the new PC compiles the DLLs.
I suspect it is caused by a slight difference in .NET 2.0 components of windows 7 (which comes with it)
I have not found a solution anywhere.
Can someone please help me with this?
October 20th, 2010 11:32pm
Ask it in the ASP.net MSDN Forums:
http://social.msdn.microsoft.com/Forums/en-US/category/netdevelopment"A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
Free Windows Admin Tool Kit Click here and download it now
October 21st, 2010 8:27am
Thanks, I have.
No bites yet.
October 21st, 2010 2:11pm