Activation of app , App failed with error: Unknown HResult Error code: 0x800106d9 See the Microsoft-Windows-TWinUI/Operational log for additional information.

Activation of app Microsoft.WindowsCalculator_8wekyb3d8bbwe!App failed with error: Unknown HResult Error code: 0x800106d9 See the Microsoft-Windows-TWinUI/Operational log for additional information.

Sometimes you will received above error when you open "calc" from run command.

You will receive similar error for other application too.


Activation of app ,  [Application Name] App failed with error: Unknown HResult Error code: 0x800106d9 See the Microsoft-Windows-TWinUI/Operational log for additional information.

Do below setting for windows 10 to resolve this error.

Go to C:\Program Files
You will see Windows App Folder here. (Please not Hidden Files are enable in your computer)
Apply "All APPLICATION PACKAGES" and give rights to this.





Add "All APPLICATION PACKAGES" in security and give rights to it.

Don't know exact reason but for some reason " All APPLICATION PACKAGES" rights remove from windows app folder.

It should work.

Enjoy!!!!

Posted in | 0 comments

Visual Studio 2013 Activation Key.

Below is Visual studio 2013 Ultimate key.


BWG7X-J98B3-W34RT-33B3R-JVYW9

This is working in my computer.





Below is visual studio 2013 Professional edition key

XDM3T-W3T3V-MGJWK-8BFVD-GVPKY

Below is visual studio 2013 Premium edition key
FBJVC-3CMTX-D8DVP-RTQCT-92494



Please provide your comment below.

Also if other key is working please post here. it will help others.






Posted in | 0 comments

The 'SqlStudio Editor Package' package did not load correctly.

Problem :-

---------------------------
Microsoft Visual Studio
---------------------------
The 'SqlStudio Editor Package' package did not load correctly.



The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file 'C:\Users\UserName\AppData\Roaming\Microsoft\VisualStudio\12.0\ActivityLog.xml'.



Continue to show this error message?
---------------------------
Yes   No   

---------------------------






Resolution

Go to 'Add/Remove Programs' in Control Panel

Go for "Microsoft SQL Server 2012 Data-Tier App Framework" and repair. 
Do for all version of this.

Post your output in below comments so it will help others. 

Posted in | 0 comments

Increase the time out of request/response.

Increase the time out of request/response.

Add below setting in web.config file.





<location path="page.aspx">

 <system.web>

  <httpRuntime executionTimeout="120"/>

 </system.web>

</location>




 

above configuration set timeout for page.aspx page.

Another configurtion is set the timeout for your data provider (ado.net),
add timeout=xx (while xx is seconds) in your connection string, 
also set every DbCommand.CommandTimeout property.

Enjoy !!!!!

Posted in | 0 comments

Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

Problem

Error in Application.

Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

Solution

Hello,

From error it’s look like Program which you are trying to access
either not registered nor properly installed on machine.

You can repair this program and try once again.

If this program is not register you can register it via Regsvr32.exe.

Other problem may be you are trying to use 32-bit dll in the 64 bit machine. for this you have to do below setting in your visual studio.

properties -> build -> Platform Target = x86

Similar configuration you have to do in your IIS (when you deploy your application. 
In IIS we have setting to run 32 bit application on 64 bit machine.)

Let me know if your problem still not resolved.

Enjoy !!!!!!!!


Posted in | 0 comments

Redirect website into IFrame.

Hello,


Below is code to redirect website url to IFrame.


Add IFrame in webpage.



<iframe id="IframeID" runat="server" height="100" width="100"></iframe>

Here note that we have frame with runat="server" attribute. so we can use from code behind.



IframeID.Attributes.Add("src", "http://dotnet-magic.blogspot.in");


Enjoy!!!!!

Posted in | 0 comments

Session state has created a session id, but cannot save it because the response was already flushed by the application.

This happens because sometimes (depending on the web.config configuration) the SessionID is not set in the cookie when Session_Start event executes in the global asax.

You encounter this error because at somepoint in the pagelifecycle a variable is set in the session. after the request ends, ASP.NET tries to set the SessionID too, but if the Request was flused 
(eg. this can be done by Response.Write or AJAX itself flushes the response) this exception will be thrown.



Add following code in the global.asax file:




      void Session_Start(object sender, EventArgs e) 
      {
          string sessionId = Session.SessionID;
 //This code run when new session is started.
      }

Posted in | 0 comments

Remove last semicolon from a string.

Remove last semicolon,comma from a string.

Hello,

Sometimes we need to remove last comma,semicolumn extra from a
string.

Below is simple way to do this.

text = text.TrimEnd(',');

This is better way instead of Substring option.




Posted in | 0 comments

Alter Message box from code Behind in C# Asp.Net

Alter Message Box from Code Behind


Response.Write(@"<script language='javascript'>alert('The following errors have occurred:" + ErrorDesc + ".');</script>");

Now if you want error message in secondLine.
here the trick.

Response.Write(@"<script language='javascript'>alert('The following errors have occurred: \n" + ErrorDesc + " .');</script>");

or you can double escape the \n by doing 

Response.Write(@"<script language='javascript'>alert('The following errors have occurred: \\n" + ErrorDesc + " .');</script>");

Posted in | 0 comments

Unable to copy file "obj\Debug\Project.exe" to "bin\Debug\Project.exe". The process cannot access the file "bin\Debug\Project.exe" because it is being used by another process.

Problem
Unable to copy file "obj\Debug\*.exe" to "bin\Debug\*.exe". The process cannot access the file "bin\Debug\*.exe" because it is being used by another process.


The reason behind this error is Visual Studio locks the file.

if you close your solution and reopen it your project build successfully without error.
But this is not a preferable solution  all the time.

Below is one suggestion to resolve this problem

When the problem occurs, just change the building configuration at the top (if in “Release” to “Debug” and vice versa), build and then change back to previous configuration and build again.

Hope this will help you.

Posted in | 0 comments

AutoEventWireUp


ASP.NET page framework supports an automatic way to associate page events and methods. 
If the AutoEventWireup attribute of the Page directive is set to true. the page framework calls page events automatically, specifically the Page_Init and Page_Load methods. 
In that case, no explicit Handles clause or delegate is needed.

See the below declration. this should be create when we create new page.
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="test.aspx.vb" 

The disadvantage of the AutoEventWireup attribute is that it requires that the page event handlers have specific, 
predictable names. This limits your flexibility in how you name your event handlers. 
Therefore, in Visual Studio, the AutoEventWireup attribute is set to false by default and the 
designer generates explicit code to bind page events to methods.

If you do set AutoEventWireup to true, Visual Studio will generate code to bind the events 
and the page framework will automatically call events based on their names. 
This can result in the same event code being called twice when the page runs. 
As a consequence, you should always leave AutoEventWireup set to false when working in Visual Studio.

More details : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconWebFormsEventModel.asp


Below is another way for explanation of AutoEventWireUp

If you know VB then remeber what happens if you double click on a button in "desing time" in the code an event procedure 

Button_click( ) would come up for you to enter the code.

This is a classic feature of Auto event wireup - and in VB you had to live with it.

But in .NET you can name the event handling function whatever you want and tie up the event with the corresponding handling function.

So if you have a button you could call the MyNewButton_click( ) function. But for this to be possible the "Auto Event Wire-up" property must be set to false at the page level.



Posted in | 0 comments