Showing posts with label Software. Show all posts
Showing posts with label Software. Show all posts

July 13, 2014

Downloading .config did not succeed

Error:
- Downloading blah/blah/xyz.exe.config did not succeed
- Downloading .config did not succeed

PLATFORM VERSION INFO
Windows : 6.2.9200.0 (Win32NT)
Common Language Runtime : 4.0.30319.34003
System.Deployment.dll : 4.0.30319.33440 built by: FX45W81RTMREL
clr.dll : 4.0.30319.34003 built by: FX45W81RTMGDR
dfdll.dll : 4.0.30319.33440 built by: FX45W81RTMREL
dfshim.dll : 6.3.9600.16384 (winblue_rtm.130821-1623)

SOURCES
Deployment url : http://xyz.com/download/xyz.application
Server : Microsoft-IIS/7.5
X-Powered-By : ASP.NET
Deployment Provider url : http://xyz.com/download/xyz.application
Application url : http://xyz.com/download/Application%20Files/xyz_2_3_1_0/xyz.exe.manifest
Server : Microsoft-IIS/7.5
X-Powered-By : ASP.NET

IDENTITIES
Deployment Identity : xyz.application, Version=2.3.1.0, Culture=neutral, PublicKeyToken=91eae35baf867b49, processorArchitecture=msil
Application Identity : xyz.exe, Version=2.3.1.0, Culture=neutral, PublicKeyToken=91eae35baf867b49, processorArchitecture=msil, type=win32

APPLICATION SUMMARY
* Installable application.

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of http://xyz.com/download/xyz.application resulted in exception. Following failure messages were detected:
+ Downloading http://xyz.com/download/Application Files/xyz_2_3_1_0/xyz.exe.config did not succeed.
+ The remote server returned an error: (404) Not Found.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [7/13/2014 11:00:18 AM] : Activation of http://xyz.com/download/xyz.application has started.
* [7/13/2014 11:00:21 AM] : Processing of deployment manifest has successfully completed.
* [7/13/2014 11:00:21 AM] : Installation of the application has started.
* [7/13/2014 11:00:32 AM] : Processing of application manifest has successfully completed.
* [7/13/2014 11:00:49 AM] : Found compatible runtime version 4.0.30319.
* [7/13/2014 11:00:49 AM] : Request of trust and detection of platform is complete.

ERROR DETAILS
Following errors were detected during this operation.
* [7/13/2014 11:01:26 AM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading http://xyz.com/download/Application Files/xyz_2_3_1_0/xyz.exe.config did not succeed.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Net.WebException
- The remote server returned an error: (404) Not Found.
- Source: System
- Stack trace:
at System.Net.HttpWebRequest.GetResponse()
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.

Solution:

This error related to IIS security about .config files. you must go to your visual studio Project > Properties > Publish > Options > and checked Use '.deploy' file extension checkbox ;-)

March 24, 2014

Edit Google Document with Microsoft Word

Questions:
- How to edit google document with microsoft word
- How to open a MS Word Document from Google DOCS, edit it, and then save it directly back to Google Document
- How to change a document in Google Drive
- Editing and Working with Microsoft Office on Google Documents

Solution:
Add new REVISION by right click on your document in Google Drive and select Manage revisions... and select Upload new revision and upload your new version of document

February 08, 2014

The provider did not return a providermanifest instance

Errors:
- EntityDataSource error ...
- Error in Visual Studio 2013 and EntityDataSource
- EntityDataSource have error "the provider did not return a providermanifest instance"
- How to Fix "The provider did not return a ProviderManifest instance ...

Full Error:
The metadata specified in the connection string could not be loaded. Consider rebuilding the web project to build 
assemblies that may contain metadata. The following error(s) occurred: 
The provider did not return a ProviderManifest instance.


Solution:
Open the EDMX file and change ProviderManifestToken="2012" to ProviderManifestToken="2008"

Other Solutions (not useful for me):
1- I know this is a ridiculous solution but i think that the star (*) is not working in connection string field of Web.config :-( you can change it with project name as a project namespace reference
Before: <add name="TestEntities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl blah blah
After: <add name="TestEntities" connectionString="metadata=res://PROJECTNAME/Model1.csdl|res://PROJECTNAME/Model1.ssdl blah blah

2- Go to Run > %temp% and empty the temp folder
3- Set integrated security=False in connection string field of Web.config

October 20, 2013

Visual C++ DLL in C#

Questions:
- VC++ DLL in C#
- How to call C++ DLL in C#
- How to call a Visual C++ method in C# by DllImport
- DllImport in C# ... Visual C++ Dll
- How to use DllImport a C++ class

Error:
- Unable to find an entry point named ...

Solution:
Add these lines in VC Project
extern "C"
{
    __declspec(dllexport) int Sum(int a, int b) {return a + b;}
    __declspec(dllexport) int Mul(int a, int b) {return a * b;}
}

Add these lines in C-Sharp Project
public static class DllHelper
{
    [DllImport("XYZ.dll")]
    public static extern int Sum(int a, int b);
    [DllImport("XYZ.dll")]
    public static extern int Mul(int a, int b);
}

November 09, 2012

SQL Server cannot process this media family


ERROR:
Specified Cast is not valid (SqlManagerUI)

ERROR:
Msg 3241, Level 16, State 13, Line 1
The media family on device 'D:\1.bak' is incorrectly formed. SQL Server cannot process this media family.
Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.

CAUSE:
- Microsoft SQL Database fails to restore from higher ms-sql version
- Restoring the backup from SQL 2008 to SQL 2005 instance
- Restoring SQL backup file from SQL 2012 to SQL 2008

SOLUTION:
- Upgrade your destination sql server to upper version
- Prepare SQL data script instead of sql data backup file

October 18, 2012

CREATE FILE encountered operating system error 5


Problem:
- CREATE FILE encountered operating system error 5(Access is denied.)
- CREATE FILE encountered operating system error 5(failed to retrieve text for this error. Reason: 15105) while attempting to open or create the physical file 'PATH\FILE.mdf'.
- CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file 'PATH\FILE.mdf'.

Solution:
- Go to Control Panel > Administrative Tools > Services
- Right click on SQL SERVER (BLAH BLAH) and select the Properties
- Stop service
- Go to Log On tab and change the Log on as: to Local System Account
- Apply and Start service again ans enjoy ;-)

October 09, 2012

Mismatch between the processor architecture


Warning
There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "PATH\PROJECT.dll", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

Solution
1- In Visual Studio menu go to Build > Configuration Manager...
2- go to Platform column and select all x86 (it must be changed to Any CPU)
3- Click on <New...> and Select Any CPU
4- That's it, Compile All and Be Happy ;-)

August 08, 2012

Unable to update the EntitySet

Error:
Unable to update the EntitySet 'XYZ' because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation.

Solution:
Just add Primary Key for your Table in Database or DataModel (edmx file).

August 07, 2012

Install Window Without DVD or USB


Problem:
How to install Window 7 without DVD
How to install Window from network

Solution:
1- Download and Run TFTPBoot.exe
link: http://blog.ryantadams.com/wp-content/uploads/tftpboot.exe
link: http://www.megaupload.com/?d=V04T7KQ8
2- Change all settings (follow these screen shots)


3- Turn-on destination computer and press F12
4- after Windows Started ... type this command (on destination computer)
net use Y: \\10.0.0.102\E [PRESS ENTER]
PS: IP and Path are related your source computer
PS: After this prompt you need to enter username and password like COMPUERNAME\Administrator and password
5- Go to share folder and start windows setup ... (with these commands)
Y: [PRESS ENTER]
SETUP [PRESS ENTER]

References:
link: http://blog.ryantadams.com/2008/02/01/how-to-boot-from-the-network-pxe-boot-with-tftp-and-windows-pe
link: http://blog.dustinriley.net/2009/03/17/installing-windows-7-on-hp-mini-1000-through-network
link: http://www.expertcore.org/viewtopic.php?f=15&t=2560

July 07, 2012

Cannot set XYZ attribute value


Error:
Cannot set Name attribute value 'gridColumn01' on element 'GridColumn'. 'GridColumn' is under the scope of element 'AmaEntityGridView', which already had a name registered when it was defined in another scope.



Solution:
Change Name or other field to x:Name or other prefix like below

Example 1:
WRONG: <x:A Name="xyz"
SOLUTION: <x:A x:Name="xyz"

Example 2:
WRONG: <dxg:GridColumn Name="xyz"
SOLUTION: <dxg:GridColumn dxg:GridColumn.Name="xyz"

June 25, 2012

Only TrueType fonts are supported


Error:
Only TrueType fonts are supported. This is not a TrueType font.
ArgumentException was unhandled by user code


Solution:
Add these lines before FontDialog ShowDialog
fontDialog.AllowSimulations = false;
fontDialog.AllowScriptChange = false;

June 20, 2012

Unable to update the EntitySet Error


Error:
Unable to update the EntitySet 'XYZ' because it has a DefiningQuery and no <DeleteFunction> element exists in the <ModificationFunctionMapping> element to support the current operation.


Solution:
Don't forget the PrimaryKey for your Table.
:-D, Yes, It's simple, just set the Primary Key in Database (and update your EF)

April 15, 2012

Grouping Problem in GridControl


Problem
- Devexpress WPF GridControl Grouping Problem
- Problem WPF DXGrid with CollectionViewSource
- GridControl can't grouping
- WPF DataGrid through EF Can't support grouppoing
- DXGrid grouping problem with CollectionViewSource
- Devexpress WPF GridControl have problem with grouping
- Grouping Columns not working in dxg:GridControl

Solution
1- It has a simple, just add CollectionViewType to CollectionViewSource like below
 <CollectionViewSource CollectionViewType="ListCollectionView" x:Key="X" />    
2- Don't use of CollectionViewSource and set directly the Grid ItemSource.

Reference
HelpLink: http://www.devexpress.com/Support/Center/p/Q382933.aspx

August 14, 2011

CSR Bluetooth Problem

Error:
- How to fix BlueSoleil USB Bluetooth® Dongle on Windows 7 ...
- I have a bluetooth device and it's not activated ...
- I can't turn on my CSR Bluetooth Device
- I am using Window 7 with CSR Bluetooth Device Dongle, guide me on how to connect

Solution:
- Check the USER and you must be a administrator. (this command helps you on this &gt;whoami)
- Disable Anti-Virus software
- Disable Anti-Spyware software
- Disable Firewall software
- Uninstall Any Soleil software
- Uninstall Sony Bluespace software
- Uninstall XTNDConnect Blue Manager software
- Uninstall Microsoft Patch Q323183 (on WINDOWS XP)
- Uninstall Any drivers that were supplied with your existing Bluetooth device.
- Uninstall Microsoft IntelliType and IntelliPoint software for Bluetooth Mouse and Keyboards
- Plug-Out the bluetooth device now.
- Check the Control Panel\System and Security\Administrative Tools\Services\Bluetooth Support Service and start it
- Check the nxj.cache file and delete it (this command helps you on this &gt;dir /a/s nxj.cache)
- Restart Windows
- Install Latest WIDCOMM Bluetooth Drivers or (http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles/7zbv19ww.exe)
- Goto Safe Mode
- Install Widcomm_patcher_v2 for overwrite on these files (wbtapi.dll, BTNeighborhood.dll, BTStackServer.exe, BTTray.exe)
- Restart Windows
- Plug the bluetooth device now and enjoy

Instructions for using the patch:
1) Uninstall ALL your previous Widcomm Bluetooth drivers
2) Switch off your PC
3) Remove your Bluetooth dongle from PC
4) Start your PC
5) Install the new drivers
6) Restart your PC in safe mode
7) Run the patch
8) Restart your PC
9) Plug in your Bluetooth dongle
10) Now everything should work properly

March 20, 2011

How to fix a row in Excel

How do you fix a row in Excel?
How do you freeze a row in Excel?
How do you fix a column in Excel?
How to fix a row in Excel when you move that one stays fixed?
How fixed column/row in Microsoft Office Excel?

Solution
1- Select Row/Column
2- Select View in ribbon

3- Select Freeze Panes from Window Section
4- Enjoy :-D

March 05, 2011

Microsoft Ajax Minifier and Manual Batch File

You can used of the Microsoft Ajax Minifier into your Visual Studio 2010 without change your project files or follow of strange roadmap (link). With simple batch file you can minified all JS and CSS files and move the new minified files in minified folder. With this simple trick you can Route the CSS and JS files to minified path.
Yes, It's so simple and a tricky solution for easy going people. The hardest part of this solution is the Batch file for minified all JS and CSS files with AjaxMin.exe as Microsoft Ajax Minifier and automatic move and replace in minified folder.
@echo off
md minified
for %%J in (*.js *.css) do @AjaxMin.exe -clobber:true "%%J" -o "minified\%%J"
pause

February 14, 2011

Print Anywhere With Google Cloud Print

With Google Cloud Print you can connect your local printers to Google and go any where and connect to internet and send a print tasks to your printers from Google. It's not magic and it's so simple.
You can go to Google Chrome options and connect your home printer(s) to Google Chrome (with Google Cloud Print Service) and then if you go to any where, and send a print task from Google Applications on PC, Mobile. Google Application Website or anywhere, Google find your Google Chrome in home and send the print tasks to your home printers.

Setup
1- You can see my printers

2- Open your Google Chrome and Select Options


3- Find out Google Cloud Print in Under the Hood and select Sign-In button

4- Add you Google account (or gmail account ...) and give a success message. (i love Print a Test Page and if you love it, test it and enjoy it :-D)


5- By the way you can find Manage Print Settings... button in Google Cloud Print in Chrome Options... and go to Google Cloud Print Management and surprise.
PS: It's a first try of big G about Chrome OS and Internet Base OS and i think that Net-OS will be available and popular before 2020 if the world don't stop after 2012-21-DEC :-))

References
[1] Google Blog: http://googleappsupdates.blogspot.com/2011/01/print-from-your-phone-with-gmail-for.html
[2] Google Cloud Print Help Support: http://www.google.com/support/cloudprint/?hl=en

February 07, 2011

LC.exe Error and Devexpress

- The specified task executable "LC.exe" could not be run. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail
- LC.exe error and conflict between DXperience and .Net Framework 4.0




Solution: 
If did you have any problem with Devexpress v10.1 (and lower) and .Net Framework 4.0 then it's simple. JUST REMOVE licenses.licx file from project.

October 14, 2010

SLAM 1

This is a first version of an environment for develop SLAM (Simultaneous Localization And Mapping) algorithms. This application is a SLAM monitor can be useful for show a log file with traceable feature and useful for rescue robot competitions. For more information please don't be hesitate contact me.







Download
20090419-AMASLAM.rar (Source Code) [download]
20090419-AMASLAM.rar (Binary) [download]
20090419-loop5.rar (sample LOG) [download]
Other LOG files [link 1] [link 2]

August 17, 2010

How to add KMPlayer to Autoplay

Problem:
- How to add KMPlayer to Windows 7 Autoplay?
- When I insert a dvd disc, windows media player starts the movie but I would like to autostart the movie with KMPlayer.


Solution (Easy):
Press F2 (preferences) > Association/Capture > Association > checked "DVD" checkbox


Solution (Manually):
save below in reg file and run it .. 


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
\Explorer\AutoplayHandlers\EventHandlers\PlayDVDMovieOnArrival]
   "KMPLAYERDVDMovieOnArrival"="" 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
\Explorer\AutoplayHandlers\Handlers\KMPLAYERDVDMovieOnArrival]
   "Action"="Play DVD Movie" 
   "DefaultIcon"="C:\\Program Files\\The KMPlayer\\KMPlayer.exe,0" 
   "InvokeProgID"="KMPlayer.MediaFile" 
   "InvokeVerb"="open" 
   "Provider"="KMPlayer"

References: [link]