.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Post New Web Links

Visual Studio, Windows 7, Web Site, Profile Exception, HELP!

Posted By:      Posted Date: October 21, 2010    Points: 0   Category :ASP.Net
 

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


View Complete Post


More Related Resource Links

Visual Studio closes itself by opening aspx-Page designer after Windows Update

  

Hey Guys,

I've a problem with my Visual Studio.

On the 13th of August 2010 i installed a Windows update on my vista sp2 pc. For this date my Visual Studio 2008 sp 1 always has closed itself by opening an aspx-page in designer view. There is no error message just closing the window. I restored a backup of my windows from the time before updating it and it helped, i could open aspx pages in the design view till the update has been installed again automatically after rebooting the pc. I can't disable windows updates, cause it's my pc at work and safety is very important. I hope you could help me out of this disaster.


Thanks

Nik


is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site p

  

is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project

 

my current project references

 

 

 

i have a very annoying iis problem

iis server stops working until app pool is recycled

 

i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem

 


Windows Azure: Developing and Deploying Cloud Apps in Visual Studio 2010

  

You'll find direct support for building Windows Azure applications in Visual Studio 2010 and Visual Web Developer 2010 Express. We'll walk you through using Visual Studio 2010 for the entirety of the Windows Azure application development lifecycle.

Jim Nakashima

MSDN Magazine April 2010


Share The Load: Report Visual Studio Team System Load Test Results Via A Configurable Web Site

  

This article discusses a new load test tool in Visual Studio 2005 Team System for performance and stress testing your Web sites, Web services, and other server components. Combined with its handy reporting capabilities, the load test tool provides some powerful options for sharing and managing test results.

Wen Ding

MSDN Magazine June 2006


Visual Studio .NET: Building Windows Forms Controls and Components with Rich Design-Time Features, P

  

This is the second of two articles discussing the extremely rich design-time features of the .NET Framework. Part 1 discussed the basics, showing you where to start and how to extend your control implementation through attributes and interfaces, as well as their effects on the property browser, code serialization, and other controls. Part 2 continues the journey by concentrating on design-time functionality that you can implement beyond your components and controls, including TypeConverters, UITypeEditors, and Designers. It would be impossible to cover everything you can do in two short articles, which is a testament to just how all-encompassing and flexible the design-time capability of the .NET Framework is.

Michael Weinhardt and Chris Sells

MSDN Magazine May 2003


Visual Studio .NET: Building Windows Forms Controls and Components with Rich Design-Time Features

  

Visual Studio .NET provides support for designing rich features into your controls and components, allowing you to set properties, set form placement, inherit from base classes, and much more. So how does Visual Studio .NET do all this? What does the Windows Forms designer do? What's the difference between a control and a component? How does Visual Studio integrate your controls so that they can access features of the .NET Framework?In this article, the authors answer these common questions by building a clock control and taking the reader along for the ride. In building the control, hosts and containers are illustrated, the property browser is explained, debugging is discussed, and a general overview of the design-time infrastructure is presented.

Michael Weinhardt and Chris Sells

MSDN Magazine April 2003


Go International!: Let Your Apps Span the Globe with Windows Forms and Visual Studio .NET

  

How would an English speaker feel if his car's owner's manual was written in German or if the dash board markings were written in Japanese because the car was manufactured in that country? This is an experience common to computer users all over the world who don't speak English as their primary language, and it's becomming more important. The Microsoft .NET Framework not only makes it possible to build international applications, but many of the tools such as Visual Studio .NET make it quite easy. This article looks at internationalization with .NET and presents real tools you can use to make all of your Windows Forms applications global-ready.

Jason R. Bell

MSDN Magazine June 2002


Windows CE: Develop Handheld Apps for the .NET Compact Framework with Visual Studio .NET

  

Smart Device Extensions (SDE) for Visual Studio .NET allow programmers to develop applications for the .NET Compact Framework, a new platform that maintains many of the features of the .NET Framework in a version optimized for handheld devices. This article shows how SDE provides access through Visual Studio .NET to a variety of .NET classes for devices running Windows CE, including classes for creating user interfaces. Data access classes and Web Services for the .NET Compact Framework are also explained. Following that overview, a sample Web Service called XMLList is built. Then the UI-the XMLList client-side application-is created.

Larry Roof

MSDN Magazine March 2002


Visual Studio 2010 on windows 7 64 bit

  

Hello

Today i have xp pro with visual studio 2005 and going to change to windows 7 with 64 bit.

Will upgrade to Visual Studio 2010 with 64 bit.

Is that a problem going from visual stuidio 2005 (32bit) to visual studio 2010 (64bit) ? Anything i should think about or if anybody had problems with this ?

The server I will deploy my webapplication is windows server 2003 (32bit).
Will it be ok to deploy webapplications that are build in vs2010 (64 bit) but deployed on a server with 32 bit ?

Maybe this is obvious to some people but I have to ask cause I'm not sure about this.

Thanks in advance

//T

 

 

 

 


Windows Mobile - Visual Studio 2008 - Erro gravar no banco SQL compact 3.5

  
Boa noite estou tentando gravar em um banco de dados Compact 3.5 com o  código abaixo. Public Conexao As New SqlCeConnection("Data Source =" & (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) & "\banco.sdf;"))         Dim command As SqlCeCommand = Conexao.CreateCommand()         Conexao.Open()         Dim Trans As SqlCeTransaction = Conexao.BeginTransaction()         command.CommandText = "INSERT INTO clifor (nom, data, numero)VALUES (?, ?, ?)"                command.Parameters.Add("@nom", txtNome.Text)         command.Parameters.Add("@data", txtData.Text)         command.Parameters.Add("@numero", txtNumero.Text)         command.Prepare()         Trans.Commit(CommitMode.Immediate)         command.ExecuteNonQuery()         command.Dispose()         Conexao.Close()

How can I debug Windows Service using Visual Studio?

  
How can I debug Windows Service using Visual Studio? I wrote in Visual Studio 2008 Command Promt: installutil -i c:\projects\MyProject\bin\debug\win.exe I did Start to may service ,but every time that I want to debug service I get: Cannot start service from the command line or a debugger. A Windows Service must first be installed (using installutil.exe) and then started with the ServerExplorer, Windows Services Administrative tool or the NET START command.   What am I doing wrong?   Thanks, Raya        

Error trying to open WPF Xaml windows from Visual Studio 2010 in Blend 4

  
Hi I have Visual Studio 2010 ultimate, and expression Blend 4. I have created a WPF 4 project in Visual Studio and when i try to open the MainWindow.xaml file in Expression Blend 4 - i get an error stating that the file or folder is not a valid blend project. Is there something i need to install for visual studio to make blend able to edit WPF Xaml files in Blend 4? I can open blend4 and create WPF applications with no problem - its just trying to open a mainwindow.xaml created in Visual Studio 2010 in blend 4 when i get the error. I am running windows 7 32 bit. Cheers Rod. Mono / DotNet Rocks!

Migrating changes from the Development to Production Site (SP2010, SPD and Visual Studio 2010)

  
Trying to find the best (least error-prone) approach to updating a live site containing content (based Documents and Tasks mainly) with changes. This got to be a common issue - a Development environment containing new features needs to be migrated over to production but the existing data and workflows with the associated tasks should be preserved. I found this thread http://social.msdn.microsoft.com/forums/en-us/sharepointdevelopment/thread/2C524797-9737-4D11-BE19-3E407C5C83CE which seems to provide a rather negative take on a tool-based approach but it's for older Sharepoint. Anything improved since then?

Setting up Visual Studio with a cloud based SharePoint site

  
I have a SharePoint site on the cloud where I access it through a URL like this one; https://exampleemeamicrosoftonlinecom-1.sharepoint.emea.microsoftonline.com I can also edit the site with SharePoint Designer by pointing to the same URL. I'm at the stage in the project where I want to do some specific things so I am going to use Visual Studio, but I don't know how to set up Visual Studio with a cloud based SharePoint site? When I go to add a SharePoint site I get the following error; A SharePoint server is not installed on this computer. A SharePoint server must be installed to work with SharePoint projects. I also tried to add the URL as a server in Visual Studio but I get the error; Server name "https://exampleemeamicrosoftonlinecom-1.sharepoint.emea.microsoftonline.com" could not be found. Make sure the server name is correct. I have SharePoint Designer working with the SharePoint site, why won't Visual Studio work?  

How to add Sharepoint dll reference to Windows Forms application project in Visual Studio 2010?

  
Hi,I am using Windows Forms application template in Visual Studio 2010 Beta. I created this for some R & D work. Now I am using Sharepoint object model in application. When I am trying to add Sharepoint dll reference from .NET tab, I can not see Windows Sharepoint Services there Which was available in Visual Studio 2005.Also If I am add this sharepoint dll from ISAPI folder (14 Hive), it is added succesfully, but it is not taking actually in project and showing me an error during running mode that theError 12 The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) Please suggest me how to add Sharepoint dll reference in Windows forms application in Visual Studio 2010?

Session State throws error in ASP.NET Site Pages for SharePoint 2010 portal using Visual Studio 2010

  

I'm developing Visual Studio 2010 solution for site pages. I’ve created Site Pages in SharePoint 2010 and I’m trying to access Session variables in code behind in ASP.NET but it throws the following error.

Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.

I set the page directive as enableSessionState=&quo

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend