Home » Windows OS

Reloading registry..........?

Hi Friends,

If i make registry changes i have to restart, is there anyway to reload registry settings without restart through vb.net / c# ?

Kindly help me on this...?



Hi friends,

If we make any changes to the registry, Its necessary to restart the system. can we make it without restarting through program...?

kindly help me out..


Hi Friends,

If i make registry changes i have to restart, is there anyway to reload registry settings without restart through vb.net / c# ?

Kindly help me on this...?

When i create a setup for my DSL and install it on another PC, i get an error, that
an included .tt file cannot be found. It was deployed in the TargetDir\TextTemplates,
but the registry key is missing, which tell visual studio the locations of texttemplate include paths.
I´ve compared the generated Registry.wxs of a DSL Setup Project with an open source DSL.
And in my project this line was missing due some reason i dont understand:
The specifi tt file is defined in the InstallerDefinition as follows:
But why doesn´t the Textprocessor create the line above?! Any idea ?
Thanks in advance,
windows 7
visual studio 2008SP1 + SDK


Hi All,

I am in the middle of modifying the Template Pack (Contemporary Site), the SharePointCommerce project in Visual Studio 2008, for WSS.

The procedure is quite slow as I change it bit by bit, then I delete the Web Application, I retract and delete the wsp files from Sharepoint Central Administration, then I reinstall the contemporary site using the new wsp file. Then I reinstall the web services and follow again the instalaltion and configuration guide.

Is it a way of reloading the new wsp files, without recreating the web site, reinstalling the web services... ?





Is it possible to disable the

"The project 'test' has been modified outside the environment, press reload or ignore"

message and have it reload automatically?

Whenever I get the latest code from my source control system I get this prompt about 8 times, one for each project file that I have open. I have to click "reload" on every one, every time. It's infuriating.

Unchecking "Detect when file is changed outside the environment" doesn't make any difference.
Checking "Auto-load changes, if saved" also doesn't make any difference.

Both of those options work for normal code files (very handy) but not for project files!


I am doing my first WPF Browser Application, and every time I build I get prompted to reload '[My Project\Bin\Debug\Mianboard.g.cs'

I am assumming the g stands for graphics, but I could be wrong, but is there a reason this prompts me every time, or is there a way to turn this off?



Hey All ,

I have a sever with windows server 2008 r2 , and remote desktop services roles installed on.
I installed VS2010 with TFS 2008 to migrate from VS 2005 for Our Web Application.

when open VS2010 with remote desktop user account and trying to open and debug the web application , the follwing message comes

"the web application project XXX is configured to use IIS. to access local IIS web sites, you must run visual studio in the context of an administrator account"

if I add the RD users to the administrators group it work fine , but I don't want to add them to administrators group because of RDS functionality .

How can I give those users administrator's rights to run VS2010 without adding them to administrators group??

please HELP !

Hello, i want to reload a windows 7 sidebar gadget with a webpage every 5 minutes. It has an image that shows a finance chart. I tried using meta http-equiv="refresh" but it doesn't work. How can i do it? Thanks.

XML file code:
<?xml version="1.0" encoding="utf-8" ?>
<name>Bvsp 2.0</name>
<author name="Hernan">
<info url="http://www.hernan.com"/>
<logo src="images/icon.png" />
<description>Google Search</description>
<icon height="100" width="100" src="images/icon.png" />
<host name="sidebar">
<base type="HTML" apiVersion="1.0.0" src="bvsp.html" />
<platform minPlatformVersion="0.1" />
HTML file code:

<meta http-equiv="Content-Language" content="es-mx">
<meta http-equiv="refresh" content="3">
margin-left: 0px;
margin-top: 5px;
margin-right: 0px;
margin-bottom: 0px;
.style1 {
font-size: 12px;
font-family: Verdana;
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body id="body" style="background-color:#FFFFFF">

<div align="center"><a href="http://finance.yahoo.com/echarts?s=^BVSP#chart1:symbol=^bvsp;range=5d;indicator=volume;charttype=line;crosshair=on;ohlcvalues=0;logscale=on;source=undefined"><img src="http://www.gmodules.com/ig/proxy?url=http%3A%2F%2Fichart.finance.yahoo.com%2Finstrument%2F1.0%2F%5Ebvsp%2Fchart%3Brange%3D1d%2Fimage%3Bsize%3D179x98%26temp%3D4197874&log=1" alt="Bvsp" border="0"></a>


I'm attempting to check all functions, run Protect(), and then analyze any protection failures. While analyzing the protection failures, I will modify my project, rebuild, and then come back to see if the protection failure goes away.

When I do this, I have to remove my project and re-add it to get the new changes. Then I have to re-add my strong name key. Then I have to recheck all my functions again. With the MAJOR performance bug in checking boxes, this is absolutely unacceptable.

A simple solution. When focus goes away from the tool, set a flag. On activate, check your loaded binaries for changes. If a change has occurred, ask the user if they want to reload the project. You could also just add a "Reload" button.

Save the check states and reapply them as appropriate. Color code (or bold) any changes if you feel energetic. Clearly some design decisions to make if function name has been added, removed, or changed.

As a side thought, it would be nice if you provided a protected/total count to your output.

Protected (Transformed) 180 of 243 methods with 7 excluded.

This one line is so easy to understand and tells me right away what I have to work with. I know I have 7 errors. I know that I have a bunch of methods which were not protected because of selection choices. So in this example...

"Protected 242 of 243 with 7 excluded"

This quickly tells me that I missed a method somewhere because I was expecting all methods to be checked. As it is now, I have to visually scroll through all these methods and classes trying to make sure I checked everything I wanted to. Since I have to do this process over and over because of the aforementioned problem, this is painful experience.

These posts took up 45 minutes of my time today BECAUSE I was unable to use the tool properly. These problems will continue to eat up my precious dev time for the next week as I struggle with these design flaws.

It's possible I missed something... However, a forum search for "slow", "performance", and "reload" yielded no results. There isn't any help in the tool to speak of either.




From the CRM Form, i have a popup aspx page. In which i am using webservice to save data.
I am saving lookup field and date field from popup window. The data is saving to database, which i have checked. This saved data, i need to load to the CRM Form when the popup window is closed.

The script used from the server side of the popup page, after saving is:

Page.ClientScript.RegisterStartupScript(typeof(Page), "S", "<script type='text/javascript'>if (window.opener && !window.opener.closed) {window.opener.location.reload();}window.close();</script>");

After reloading the CRM Form using this script, that saved data through popup is getting empty from database. So that data is not reflecting in CRM Form( lookup & date fields). But data in Text fields
are reloaded.
Before opening the popup, the data in these fields in CRM Form was empty.

Is there any other way to reload data to CRM Form from popup window?
Or how can i assign data to a lookup field and date field  in CRM Form after
saving from aspx page.

Please help me...






I wonder why that is? I have this code in my HTML page:

<button onclick="document.location.reload(true)">reload</button>

and when clicking this button the page refreshes, but my sinked events are not invoked. Why?


Here's the code that i've used in my custom page

<WebPartPages:ListViewWebPartrunat="server"__MarkupType="xmlmarkup"WebPart="true"__WebPartId="{BB8F97D8-5DBB-418D-91AE-421BD6AAB844}"><WebPartxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns="http://schemas.microsoft.com/WebPart/v2"><Title>IWCalendar</Title><FrameType>BorderOnly</FrameType><Description/><IsIncluded>true</IsIncluded><PartOrder>0</PartOrder><FrameState>Normal</FrameState><Height/><Width/><AllowRemove>true</AllowRemove><AllowZoneChange>true</AllowZoneChange><AllowMinimize>true</AllowMinimize><AllowConnect>false</AllowConnect><AllowEdit>false</AllowEdit><AllowHide>true</AllowHide><IsVisible>true</IsVisible><DetailLink>/Lists/IWCalendar</DetailLink><HelpLink/><HelpMode>Modal</HelpMode><Dir>Default</Dir><PartImageSmall/><MissingAssembly>Cannot import this Web Part.</MissingAssembly><PartImageLarge>/_layouts/images/itevent.png</PartImageLarge><IsIncludedFilter/><ExportControlledProperties>false</ExportControlledProperties><ConnectionID>00000000-0000-0000-0000-000000000000</ConnectionID><ID>g_a129a529_24df_4ae4_877f_bc6714252026</ID><WebIdxmlns="http://schemas.microsoft.com/WebPart/v2/ListView">00000000-0000-0000-0000-000000000000</WebId><ListViewXmlxmlns="http://schemas.microsoft.com/WebPart/v2/ListView">&lt;View Name=&quot;{BB8F97D8-5DBB-418D-91AE-421BD6AAB844}&quot; MobileView=&quot;TRUE&quot; Type=&quot;CALENDAR&quot; Hidden=&quot;TRUE&quot; TabularView=&quot;FALSE&quot; RecurrenceRowset=&quot;TRUE&quot; DisplayName=&quot;&quot; Url=&quot;/SitePages/example.aspx&quot; Level=&quot;1&quot; BaseViewID=&quot;2&quot; ContentTypeID=&quot;0x&quot; MobileUrl=&quot;_layouts/mobile/viewdaily.aspx&quot; ImageUrl=&quot;/_layouts/images/events.png&quot;&gt;&lt;Toolbar Type=&quot;None&quot;/&gt;&lt;ViewHeader/&gt;&lt;ViewBody/&gt;&lt;ViewFooter/&gt;&lt;ViewEmpty/&gt;&lt;ParameterBindings&gt;&lt;ParameterBinding Name=&quot;NoAnnouncements&quot; Location=&quot;Resource(wss,noXinviewofY_LIST)&quot;/&gt;&lt;ParameterBinding Name=&quot;NoAnnouncementsHowTo&quot; Location=&quot;Resource(wss,noXinviewofY_DEFAULT)&quot;/&gt;&lt;/ParameterBindings&gt;&lt;ViewFields&gt;&lt;FieldRef Name=&quot;EventDate&quot;/&gt;&lt;FieldRef Name=&quot;EndDate&quot;/&gt;&lt;FieldRef Name=&quot;fRecurrence&quot;/&gt;&lt;FieldRef Name=&quot;EventType&quot;/&gt;&lt;FieldRef Name=&quot;Attachments&quot;/&gt;&lt;FieldRef Name=&quot;WorkspaceLink&quot;/&gt;&lt;FieldRef Name=&quot;Title&quot;/&gt;&lt;FieldRef Name=&quot;Location&quot;/&gt;&lt;FieldRef Name=&quot;Description&quot;/&gt;&lt;FieldRef Name=&quot;Workspace&quot;/&gt;&lt;FieldRef Name=&quot;MasterSeriesItemID&quot;/&gt;&lt;FieldRef Name=&quot;fAllDayEvent&quot;/&gt;&lt;/ViewFields&gt;&lt;ViewData&gt;&lt;FieldRef Name=&quot;Title&quot; Type=&quot;CalendarMonthTitle&quot;/&gt;&lt;FieldRef Name=&quot;Title&quot; Type=&quot;CalendarWeekTitle&quot;/&gt;&lt;FieldRef Name=&quot;Location&quot; Type=&quot;CalendarWeekLocation&quot;/&gt;&lt;FieldRef Name=&quot;Title&quot; Type=&quot;CalendarDayTitle&quot;/&gt;&lt;FieldRef Name=&quot;Location&quot; Type=&quot;CalendarDayLocation&quot;/&gt;&lt;/ViewData&gt;&lt;Query&gt;&lt;Where&gt;&lt;DateRangesOverlap&gt;&lt;FieldRef Name=&quot;EventDate&quot;/&gt;&lt;FieldRef Name=&quot;EndDate&quot;/&gt;&lt;FieldRef Name=&quot;RecurrenceID&quot;/&gt;&lt;Value Type=&quot;DateTime&quot;&gt;&lt;Month/&gt;&lt;/Value&gt;&lt;/DateRangesOverlap&gt;&lt;/Where&gt;&lt;/Query&gt;&lt;/View&gt;</ListViewXml><ListNamexmlns="http://schemas.microsoft.com/WebPart/v2/ListView">{A20AACE7-4C98-4BD2-8705-087BE0793C90}</ListName><ListIdxmlns="http://schemas.microsoft.com/WebPart/v2/ListView">a20aace7-4c98-4bd2-8705-087be0793c90</ListId><ViewFlagxmlns="http://schemas.microsoft.com/WebPart/v2/ListView">8921097</ViewFlag><ViewFlagsxmlns="http://schemas.microsoft.com/WebPart/v2/ListView">Html Hidden RecurrenceRowset Calendar Mobile</ViewFlags><ViewContentTypeIdxmlns="http://schemas.microsoft.com/WebPart/v2/ListView">0x</ViewContentTypeId></WebPart></WebPartPages:ListViewWebPart>




i've copied this code from autocreated Webpart Page /SitePages/example.aspx. Calendar ListView is shown on page and work correct but page reloads when user clicks on any button or hyperlink within the Calendar ListView instead of re-render the internal content. Link to page looks like this:


What do i do wrong? How to force Calendar ListView to use DHTML or UpdatePanel or any other AJAX technology?


I have a problem, i use the third part library to develop an application which support burn the file to CD.

The problem is after you burn the file to CD, the windows XP couldn't find it. there is nothing in CD when you see from file explorer.

the only way to find the file you just burned is to eject this CD and reload it again.

I guess when the first time you put the CD in the CD-rom, windows will automatically search the CD and

create an image file of CD's root directory in the memory, so next time when you want to explorer the content, windows actually

read the directory from its image instead of CD itself, my question is ,  is there any possible way

to force the windows reload the CD. thanks.


Hi. I have an ASP.Net webpage where i use Microsoft Agent Control through the HTML Object tag as follows:

<OBJECT id=AgentControl 

    style="LEFT: 0px; TOP: 0px; Width: 36px; Left: 0px; height: 40px;"  


    classid="CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F" VIEWASTEXT></OBJECT>

<!-- Speech and Agent Files Respectively.  There numerous languages available for D/L.-->



     codebase="../../../../#VERSION=6,0,0,0" id=Lernout_&_Hauspie_TruVoice_American_English_TTS_Engine1></OBJECT>

I am spawning the object on page load calling the init() function using VBScript as follows:

<script language="VBScript" type="text/vbscript">
Dim Merlin
Dim LoadChar
Dim CharLink
Dim temp
Dim loaded

function speak(sound)
Set CharLink = Merlin.Speak (sound)
end function

Public Sub Init()
On Error Resume Next
Set LoadChar = AgentControl.Characters.Load ("Merlin", "C:\Windows\msagent\chars\vrgirl.acs") 'Change to proper root depending on OS.
Set LoadChar = AgentControl.Characters.Load ("Merlin")
Set Merlin = AgentControl.Characters ("Merlin")  
      Merlin.MoveTo 1000,100
End Sub 

So the problem is, everytime the page reloads, the Character Object also reloads. How to avoid this? 

Please help me. I have tried all sort of things.





I am working on a Windows XP SP 3 system with Visual Studio 2005 Professional and Visual; Studio 2010 Professional.

As http://forums.asp.net/t/1583577.aspx I reported a problem that was fixed by re-adding DLLs from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 to C:\WINDOWS\assembly. I had attempted to fix the problem by rerunning the Framework 2.0 SDK, however this did not reload the GAC. 

Since I did not delete any item from the GAC, I am at a loss to account for their disappearance.

My question for this thread is this: What is the correct procedure to ensure that all Framework 2.0 fixes are re-loaded to the GAC.



I have defined this on App.xaml:

<nav:UriMapping Uri="/Destinations" MappedUri="/Views/Tourism/Common.xaml?Type=1"/>
<nav:UriMapping Uri="/Points" MappedUri="/Views/Tourism/Common.xaml?Type=2"/>

When the user is on Points, and I do the following:

NavigationService.Navigate(new Uri("/Destinations", UriKind.Relative));
I get the error: No Fragment support right now

How can I reload the same page passing a Type 1?

NOTE: I use custom transition between pages, this the reason I'm navigating to the same page.



First of all sorry for my English, because i'm Russian.. 

I developing a Web Part for getting some Currencies Rates from Internet Source. XMLLoader class has one method Load() which loads Currency Rates data from External Source to static variable... I want this data would be downloaded at first load of SP page which consist that web part.  So I overrided OnLoad method to check if it is postback or not... (My ascx control consists UpdatePanel to recalculate currencies dependencies). 

I'm using Fiddler to debug my http requests to detect when XMLLoader.Load() method works.. (Please see this image... Http Request for www.ecb.europa.eu)


protectedoverridevoid OnLoad(EventArgs e)
  if (!Page.IsPostBack)
   XMLLoader loader = new XMLLoader();
   List_AllCurrencies = loader.Load();

 protectedoverridevoid CreateChildControls()
  Control control = Page.LoadControl(_ascxPath);


 I've found out with Fiddler help that even when I not browsing sharepoint sites (My browser closed at all) Sharepoint tries to refresh Web Parts.. I've made this conclusion because in Fiddler capture i've got has a lot of same http request for www.ecb.europa.eu (image) Those requests arises every with 20 minutes (equal) intervals..

I really don't know why it works that way but it generates a lot of traffic even when nobody uses Sharepoint. If somebody knows any information about this issue please help.. Or just explain me how to load data other way I do. 



I am working on Custom Excel 2007 Addin development. In my application, User need to login first through Ribbon Tab and based on access rights I want to show/hide Groups/Buttons etc. I have used EditTeXtBox control for this and it works fine. But the issue is with Password Field. EditTextBox doesn't support password mode of Text (Character as a *) like Windows TextBox control has. So I decided to open a Dialog Box for User Login using Group's Dialog Launcher, But after Successful authentication I am not able to Refresh/Reload Ribbon Tab. 

The same thing is happening with Builtin Tabs (In Excel 2007 >> Home Tab >> Font Group >> There is a Arrow button in Right Bottom corner). In Builtin tab's dialog launcher if I select Font Weight = Bold and Apply, the Dialog Box gets closed and Ribbon Refreshing.

How Do I achieve this feature on Custom Excel Addin? Or is there any alternate for Login Box?

I am developing Excel 2007 Addin using C#.Net 3.5 and VS 2008.

Help is really appreciated. 



I am opening page as popup which is in other domain after closing the popup i need to reload the calling page.

Please help me.





I have two sites one is http://www.abc.com and other is https://www.xyz.com.

From http://www.abc.com site abc page will open xyz page of https://www.xyz.com site as popup after closing xyz page (popup) abc page need to reload again.

Please let me know the solution.




<< Previous      Next >>

Microsoft   |   Windows   |   Visual Studio   |   Sharepoint   |   Azure