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


Top 5 Contributors of the Month
Kaviya Balasubramanian
Sgraph Infotech
Imran Ghani
Post New Web Links

Windows 7 destroys .NET 4.0 config

Posted By:      Posted Date: September 24, 2010    Points: 0   Category :.NET Framework
 
I discovered today that the Windows 7 RTM upgrade install option causes major problems if you have .NET 4.0 Beta 1 installed.  It prevents any .NET application that doesn't have the <requiredRuntime> element in its .exe.config file from running.  The kind of problems I saw:

- Can no longer compile C++/CLI programs, error C1108, "alink.dll" not found
- Trying to repair Visual Studio causes an endless chain of prompts showing error 2908
- Trying to reinstall .NET 3.5 SP1 fails with a silent crash

My advice: be sure to uninstall VS2010 and .NET 4.0 Beta 1 before installing Windows 7.

I could have used that advice.  I narrowed the problem down to the LoadLibraryShim() entry point in mscoree.dll failing with a file-not-found error.  Without it being able to load fusion.dll, a .NET program will quickly die.  I did discover a workaround.  Uninstalling VS2010 didn't solve the problem, re-installing .NET 4.0 did.  I'm afraid I'm now stuck with this beta forever, definitely contemplating installing Win7 from scratch.  If only I had two days.
Hans Passant.


View Complete Post


More Related Resource Links

Not able to read Config File data in Windows Service

  
While I'm trying to read connection string which is in App.Config file I'm getting error like "Object reference not set to an instance of an object." string strconn = System.Configuration.ConfigurationManager.AppSettings["ConnectionString"].ToString(); For the windows service where I need to keep app.config file and how to integrate that config file with the windows service exe file. Thanks in advance.

Error reading .config file in Windows Forms app - Access is denied

  
I'm attempting to read a connection string from a .config file in a Windows Forms app on a test laptop. A previous version of the application worked just fine, but now I get a configuration exception thrown - "Configuration system failed to initialize." The inner exception message says - "An error occurred loading a configuration file: Access is denied". The user I'm logged in as is in the Administrators group and there's no obvious problems with the config file. The same config file works just fine on my dev machine so it's not an issue with ordering of the XML. Any ideas would be greatly appreciated.If a response to your question is helpful or answers it please mark it as such!

Error reading .config file in Windows Forms app - Access is denied

  
I'm attempting to read a connection string from a .config file in a Windows Forms app on a test laptop. A previous version of the application worked just fine, but now I get a configuration exception thrown - "Configuration system failed to initialize." The inner exception message says - "An error occurred loading a configuration file: Access is denied". The user I'm logged in as is in the Administrators group and there's no obvious problems with the config file. The same config file works just fine on my dev machine so it's not an issue with ordering of the XML. Any ideas would be greatly appreciated.If a response to your question is helpful or answers it please mark it as such!

Access to the path 'C:\Windows\system32\config' is denied

  

I am using Katmai Feb 2008 CTP on 64 bit enterprise vista.

I am getting following error, when I am trying to add dafult detail attributes with a role in report model.

 

getting the same error when trying to add filter in a report model.



Access to th path 'C:\Windows\system32\config' is denied.

 

..
Aqurs


wcfserviceapplication: how to change web.config to app.config host in windows

  

I am new to wcf and wrote a wcfserviceapplication. Basically its  a web service. VS2010 created a web.config which I edited to include my endpoints. I want to host this service on windows so I know i need an app.config. Can I just rename my web.config to an app.config? WHat do I need to do for this?  TO install in windows can I add the serviceinstaller to the same project as my service?

Thank you


Windows Vista error Framework\v2.0.50727\config\machine.config 0x80070570

  
I've Windows Vista sp1 Business, but now all applications that require .NET frammework don't work and give me the error:

error C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config parser error 0x80070570.

I've try to reinstall .net 2.0 framework but the installer said that this tool is already installed, and I try to install .NET3.0 framwork but the problems already exist.

I've used the tool "netfx_setupverifier_new.zip" for verify the installation and this gives me this log error:

[07/01/08,11:07:01] Beginning of new SetupVerifier activity logging session
[07/01/08,11:07:01] Activity log file location: C:\Users\Ivan\AppData\Local\Temp\setupverifier_main_07-01-08_11.07.01.txt
[07/01/08,11:07:01] Error log file location: C:\Users\Ivan\AppData\Local\Temp\setupverifier_errors_07-01-08_11.07.01.txt
[07/01/08,11:07:01] Detected operating system: Windows Vista (x86)
[07/01/08,11:07:09] Starting verification for product .NET Framework 2.0
[07/01/08,11:07:09] Section [Files - .NET Framework 2.0 (Common)] - start parsing entries
[07/01/08,11:07:09] File C:\Windows\system32\mscoree.dll is installed on the system
[07/01/08,11:07:09] File C:\Windows\system32\netfxperf.dll is installed on the system
[07/01/08,11:07:09] File C:\Windows\system32\dfshim.dll is installed on the system
[07/01/08,11:07:09] File C:

WCFService host in windows can you use web.config?

  

I want to host my wcfserviceapplication in windows. But VS generated a web.config not an app.config. Is that fine for windows or only IIS. IF not how do I convert from web.config to app.config.

How do I install in windows the service(serviceinstaller on this service app?)

 


ASP.NET (Razor) on Windows 2008 R2 + IIS7.5: config issues

  

Hi;
I'm struggling to make my asp.net, using razor, to work on a Windows 2008 R2 + IIS7.5 server.

I can start the application (inside an "Application" folder within the "Default Web Site" but, my default.cshtml pages does not come up.
I did set the default document value to use default.cshtml as 1st try and only other entry is for index.html. All child level inherit from this top level (IIS root) setting. I verified my web.config file and there is no overwritting of the default document handling there.

If I access http://server/appfolder/ I get a 404; if I append default.cshtml to the request, my page show up.
Also, I use MVC URI, I have a page called start.cshtml in a "/modules" folder of my Application folder. I should be able to access it using http://server/appfolder/modules/start/ but again, it shows a 404. http://server/appfolder/modules/start.cshtml shows the page.

Note that all this works just fine when I run the application on my dev machine with IIS Express

I have IIZ7.5 + ASP.NET + set up file mapping handleing (for *.cshtml extention), this extension is not listed into the denied list (or I wouldn't even be able to access it when requesting a page), I have installed the MVC 3 component using the Web Platform and a bunch of other things (URL Routing 2 for example) to try to make my application work as it does on local d

Clean Web.Config Files (VS 2010 and .NET 4.0 Series)

  
.NET 4 includes a new version of the CLR, and a new .NET 4 specific machine.config file (which is installed side-by-side with the one used by .NET 2, .NET 3 and .NET 3.5).

The new .NET 4 machine.config file now automatically registers all of the ASP.NET tag sections, handlers and modules that we've added over the years, including the functionality for:

.ASP.NET AJAX
.ASP.NET Dynamic Data
.ASP.NET Routing (which can now be used for both ASP.NET WebForms and ASP.NET MVC)
.ASP.NET Chart Control (which now ships built-into ASP.NET V4)
What this means is that when you create a new "Empty ASP.NET application" project in VS 2010, you'll find that the new default application-level web.config file is now clean and simple:

Windows Service Applications Tutorials

  
You can easily create services by creating an application that is installed as a service. For example, suppose you want to monitor performance counter data and react to threshold values. You could write a Windows Service application that listens to the performance counter data, deploy the application, and begin collecting and analyzing data.

Serving Silverlight Apps from Windows Mobile

  
Even if mobile dev is not my every day work, thanks to the .Net Compact Framework, it's still .Net programming.

Here is the scenario:

You come back home, you have a windows mobile phone wifi capable and you want to quickly get access to your phone pictures from your home network.
You just activate the Wifi, run my app and then browse to the provided link from any computer on the network.

Getting Started with Windows SharePoint Services

  
Of all of the capabilities of SharePoint, I thought I would start with the most basic installation - as a corporate intranet. It is likely that we will need to discuss some of the elements of SharePoint as we go along, so this also gives us the opportunity to review these elements for future reference.

Before going into too much detail, I would like to point out that you can try the core SharePoint framework (known as Windows SharePoint Services or WSS) for free. On Microsoft's Web site you can download a trial version of Virtual PC 2004 (VPC). Using VPC, you can install the Windows 2003 Evaluation Kit and the WSS add-on. This combination will give you 45 days to evaluate the setup.

Building a Searchable Phone Directory with Windows SharePoint Services

  
I want to continue to build out the intranet site we've started in our previous articles. A standard item in every intranet is a staff/employee list. Most companies implementing Windows SharePoint Services (WSS) are large enough to have a database that contains all employees. We will use the aggregation features of SharePoint to include data from this database into our intranet.

Getting Started with Windows Communication Foundation

  
Windows Communication Foundation (WCF) provides a unified framework for rapidly building service-oriented applications that makes it easy to build and consume secure, reliable, and transacted Web services. It unifies the capabilities in ASMX, WSE, Remoting, COM+, and MSMQ; therefore developers need to learn only one programming model.

Application Architecture in Windows Forms 2.0

  
Applications have special support in Windows Forms. For starters, you can manage and tailor your application's lifetime, and, when the work flow is disrupted by an unhandled exception, you can choose from several methods of response. Then, there are several application models that you can employ, including Single Document Interface (SDI) and Multiple Document Interface (MDI) applications, each of which can support either multiple-instance or single-instance mode, the former the VS05 default and the latter requiring special consideration. All applications, however, can discover and use a wide variety of information about the system and environment they execute in.

Application Architecture in Windows Forms 2.0-Single-MDI Applications

  
Consider an MDI application like Microsoft Excel; files opened from the file system (by double-clicking) are all opened as separate child windows within the parent Excel window.7 For the first instance of an MDI application to open a new child window to display the file that was passed to the second instance of the application, the second instance must be able to communicate with the initial instance.

Windows Presentation Foundation and your architecture

  
Windows Presentation Foundation (WPF) is a new client user interface technology that ships as part of the .NET 3.0 Framework. Architects have long faced the challenge of selecting an appropriate presentation tier technology for their applications. In recent times, if you are developing for the Windows platform, it was at least a fairly short list. You either built a web application, a smart client, a mobile device, or some combination of those depending on your target audience. Which one you picked gave you a fairly short list of practical options in the .NET space - ASP.NET, Windows Forms, and Compact Framework respectively.
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