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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Update XBAp application

Posted By:      Posted Date: September 16, 2010    Points: 0   Category :WPF
I just changed my app.config file in my clickonce internet only deployment. Then i tried accesin my weblink, so it obviosuly gave me a application deployment error, then i went to mageUI.exe and opened the application.manifest and saved with the signature certificate. then opened the xbap and saved with the signature file. And also referenced the application manifest in the xbap. Below is the error when the try to access my xbap from the IE 7 Note : one thing to note is i am signing with a different certification file than the original because i see the public key token being different. UNKNOW ERROR : the applicatin cannot be deployed because of an unknown error. Contact the application publisher for more information. To use an InpacehostingManager object created with launchINprocess parameter set to true, the application must be browser- hosted or custom-hosted. When i click on the OpenError log button, i see the following but has no error or exception in the file PLATFORM VERSION INFO  Windows    : 6.1.7600.0 (Win32NT)  Common Language Runtime  : 2.0.50727.4952  System.Deployment.dll   : 2.0.50727.4927 (NetFXspW7.050727-4900)  mscorwks.dll    : 2.0.50727.4952 (win7RTMGDR.050727-4900)  dfshim.dll    : 4.0.31106.0 (Main.031106-0000) SOURCES  Deployment url   : somethin

View Complete Post

More Related Resource Links

.XBAP site cannot be displayed - Faulting application PresentationHost.exe, version 3.0.6920.1427

Hi all Firstly let me start by saying I am not a developer/.net/xbap or any other type of programmer so please excuse my ignorance to anything related. I have an application installed on a w2k3 std 32bit SP2 server with terminal services and Citrix Presentation Server 4.5. This applicaiton accesses the vendors website over the internet through a .xbap page. When accessing this .xbap approximately half the users get "Internet Explorer Cannot Display This Webpage" while the other half have no issue at all. The version of IE is v7.0.5730.13. When IE returns "Internet Explorer Cannot Display This Webpage" the following error is logged in the application log: Event Type: Error Event Source: Application Error Event Category: (100) Event ID: 1000 Date:  9/10/2010 Time:  11:28:27 AM User:  N/A Computer: <server> Description: Faulting application PresentationHost.exe, version 3.0.6920.1427, faulting module kernel32.dll, version 5.2.3790.3959, fault address 0x0000bee7. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. Data: 0000: 41 70 70 6c 69 63 61 74   Applicat 0008: 69 6f 6e 20 46 61 69 6c   ion Fail 0010: 75 72 65 20 20 50 72 65   ure  Pre 0018: 73 65 6e 74 61 74 69 6f   sentatio 0020: 6e 48 6f 73 74 2e 65

Deploy XBAP application with WCF Service Reference into multiple environments

Hi, we have a multiple environment setup (local, Development servers, QA servers, prod servers, etc.) and we are building an XBAP application that uses WCF Services to connect to databases.  We code and unit test everything locally and then deploy to our Development servers for more thorough unit testing.  The issue that we are having is that we don't see how to update the deployed XBAP application to use the Development server deployed WCF Service.  The only way we've been able to do this is by having to change the reference on my local machine, complie, and redeploy the XBAP.Question:  How do we configure a deployed XBAP's Service Reference to point to the same service on a different server than what it was originally compiled/deployed with?  (Like in some configuration file...NOTE: but we also don't see a config file after deploying the XBAP.)  We don't want to have to update the Service Reference for QA, Prod, Training, Stage, etc. on our local machines, compile and redeploy every time we need to migrate the application to a new environment.Thanks!

Sdf file doesn't update once the application close

     i have configured for data sync setup using configure data synchronization wizard, then deploy the application in emulator. while run the application the data has synched back and forth from client to server on two way sync.  once application get closed the sdf.file is only having  existing data which is same as we got end point of configuration. we can view the updated data while run the application. but we restart application we didn't have the updated and newly inserted data . i don't know what i missed in config. it would be great help if anyone guide me.

how to periodically update database file of my wpf application?

Hi, I have a WPF Windows application which we distribute to our clients. The application consists of some database table which changes every month. eg. the application users a  exchange rate table which is valid for one month. What is the best approach to update the data in these table. Please note that the whole application is not changing but only the data in it changing. Please guide me with some options how I can achieve this task. Thank You. Mohamed Ziyad

Need to create a service to allow client application to update their data



I want to create a  WCF Service to transfer data to our clients application(WPF).

The Data I am trying to send is as follows.

ID  Code          Description   unit    Rate

1   104200000   LIVE GOAT      NOS     25

2   104200000   LIVE GOAT2    NOS    25

3   104200030   LIVE GOAT3    KGS     10

4   104202030   Water             LTR      5

and so on till ~ 11000 records.

What I have done so far is. Created a service which return a list of data.


 public List<Classes.TariffData> GetTariffData()
var currentTariffData = new List<Classes.TariffData>();

using (var myConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString))
const string query = "select a.ID,a.Code,a.Description,a.unit,a.rate,a.rate3 from tariff.dbo.tariffdata a, tariff.dbo.code_history b where a.id = b.id and b.endofvalidity is null";
using (var myCommand = new Sq

Remote Debug an XBAP application in VS 2010



I have an XBAP application that I created in VS 2010.  On my local machine I browse to the XBAP on the hosting server, via the folder structure [UNC] and run it.  The application does load and start.  I then go to "Attach to Process" in VS 2010 and browse to the server [which has msvsmon.exe running], but I cannot see the process to attach to.  I can debug ASP.NET applications remotely with no issues.  What am I doing wrong?

Thanks in advance

System.Deployment.Application.DeploymentDownloadException on PDB in XBAP



I am trying to include the pdb for an xbap application in VS 2010 and I am getting download errors when running my xbap.  I check the directory where the files are and the pdb file exists there.  Here is the error output:

 Windows    : 6.1.7600.0 (Win32NT)
 Common Language Runtime  : 4.0.30319.1
 System.Deployment.dll   : 4.0.30319.1 (RTMRel.030319-0100)
 clr.dll    : 4.0.30319.1 (RTMRel.030319-0100)
 dfdll.dll    : 4.0.30319.1 (RTMRel.030319-0100)
 dfshim.dll    : 4.0.31106.0 (Main.031106-0000)

 Deployment url   : http://localhost:10000/EEAdmin.xbap
 Application url   : http://localhost:10000/Application%20Files/EEAdmin_1_0_0_0/EEAdmin.exe.manifest

 Deployment Identity  : EEAdmin.xbap, Version=, Culture=neutral, PublicKeyToken=c79b6a703d3f35af, processorArchitecture=msil
 Application Identity  : EEAdmin.exe, Version=, Culture=neutral, PublicKeyToken=c79b6a703d3f35af, processorArchitecture=msil, type=win32


Access to update application files stored in Program Files, restricted on a Windows 7 device when us


Hi all,


I'm here to solve a problem, and that is our application, which speaks to a central server on startup, checks for updates and if found, updates its local files (stored in Program Files) with those pushed from the central server.  Currently, we are getting access denied exception when this updater tries to add/edit files in this special directory.  What I am looking for is a way to accomplish this updating process without moving these application files to a different location.

how to update data in the intranet application through Internet


my application is in Intranet,  but in my application mail is trigger to the user, and in that mail (outlook) user getting one link of that application so that he can update "YES"

My problem is that when the user is not in office and he is using Blackberry, at that time intranet link will not work.........

so, any solution that anybody can update through internet.


Update Active Directory attributes - Security Answer and Password - Console Application



I need to update active directory properties(attributes) through console application like Title,mail,sn,passwordQuestion,passwordAnswer.

DirectoryEntry.Properties["passwordQuestion"].Value = "What is your Favorite Color?";
DirectoryEntry.Properties["passwordAnswer"].Value = "green";

after updating , i check the attributes in Active Directory. All its fine.

the "password answer" saved as plan text.

After logged into asp.net portal with user's credential, it is working fine. After logout, When i goto click forgot password link, it ask the email address after that display the security password question and need to be enter the security password answer.

when i enter the security password answer in the text box , after click submit, it throw the error.

Invalid length for a Base-64 char array. Exception Stack Trace: at System.Convert.FromBase64String(String s) at System.Web.Security.ActiveDirectoryMembershipProvider.Decrypt(String encryptedString) at System.Web.Security.ActiveDirectoryMembershipProvider.ResetPassword(String username, String passwordAnswer) at System.Web.Security.MembershipUser.ResetPassword(String passwordAnswer) at


But i update the passwordQuestion,passwordAnswer through web application(portal)

Publishing new version of XBAP causes System.Deployment.Application.DeploymentException


Hello all, I'm currently developing a full trust XBAP. I'm hosting the published release version of the XBAP on my Windows Azure storage account. 

Recently, when I publish a new release version of the XBAP, some users receive a System.Deployment.Application.DeploymentException when trying to access the new version of the XBAP. The previous version of the XBAP worked on their computers no problem.

I did some research that suggest this exception may be caused if the version number of the XBAP is not incremented upon release. (I double checked, the release number IS automatically incremented). I also read I should use mage -cc to clear the cache before building and publishing. I tried both of these solutions to no avail.

If a user receives this error I can get the XBAP to run on their computer if I manually delete the appdata/Local/Apps/2.0/Data...  folder where the XBAP is cached. 

So my question is, how can publishing a new version of the XBAP (with a properly incremented version number) cause the XBAP to stop working on a computer where the previous version ran without error? What could cause the need to delete the appdata/Local/Apps/2.0/Data... folder where the XBAP is stored to fix the problem? And is there any way to ensure that this problem won't happen in the future?

Thanks for your help. The gory exception det

ASP.net web application not working after patch update(sp2) on server 2003


Dear All

I have ASP.Net web application server publish with iis6,Resently I install service patch 2 for my server 2003 , after this patchupgrade I cant accsess this application via web browser.I cant see any error massage also. but it can access from firefox and Chrom. then I uninstall this sp2 from my server, then I can access from IE7 and firefox.

But I need to install SP2 on this PC , How can I do it



Microsoft TechNet Forum Bandara

Microsoft's Collaborative Application Markup Language (CAML) Loop

discovered an interesting error recently while working with Microsoft's Collaborative Application Markup Language (CAML) that, surprisingly, had received no ink. Partly what surprises me about this is that the error may require you to rewrite large sections of your code if you haven't previously considered this SharePoint limitation. I'll start with some context, but first of all the error is:

Integrating a Legacy Web Application in SharePoint

This month we will continue with the theme of deploying Microsoft's SharePoint as a company intranet by describing a method for integrating a legacy Web application inside a SharePoint site.

In many companies the intranet site is not just a home page with announcements. It houses Web applications used by many different departments. In last month's article, I built a page to search the employee table in Northwind (the sample database included in Microsoft's SQL Server). This month, I will move the Web pages used to add/remove records from the table into the SharePoint intranet.

ASP.Net Gridview Edit Update Cancel Commands

In ASP.Net 2.0, GridView Control also provides the functionality to edit and update the data retrieved from the database using CommandField template. You can cancel the action using Cancel Command of the CommandField. GridView consists of events that can be used to perform the actions like edit, update and cancel upon the Data items displayed in the ASP.Net GridView Data Control.

How to format and update GridView and DataGrid rows using JQuery

The behavior described in this question is as expected. When you set text of a cell in grid, it directly affects HTML that is going to be rendered. When you set text value of a cell, it means that you are setting innerText of the cell. The column that GridView creates for command fields (Edit, Delete and Select) are a (anchor) or button elements. So you can see what will happen if you set text value in that cell. It will wipe out those link or button controls and replace them with simple text string.

MVC architecture in ASP.Net using C# and Microsoft Data Access Application block

The Model-View-Controller (MVC) pattern separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes [Burbeck92]:

Model. The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).

View. The view manages the display of information.

Controller. The controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.
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