Solution for Windows Store app "projectname.exe" does not contain a static 'Main' method suitable for an entry point . Error.

Hi,
I'm developed a blog reader for windows 8 store app. It was perfectly worked before. But suddenly it started to miss behave and I got an
error. No other errors were there other than that.
Error 
Program c:\Users\.........\Desktop\Blog_Reader\Blog_Reader\obj\Release\intermediatexaml\Blog_Reader.exe' does not contain a static 'Main'
method suitable for an entry point. 
C:\Users\..........\Desktop\Blog_Reader\Blog_Reader\CSC    Blog_Reader
But I found the solution while I fixing it.
Solution for that is like below.
Go to your App.Xaml and Right-Click thenGo to Properties
Check whether the Build Action is
ApplicationDefinition
If not change it to ApplicationDefinition.
Clean the code (solution) and Deploy
Now the error is fiexed.

Hi Robana, 
Good sharing on the Technet. 
This will definitely benefit other who may encounter the same issue as yours.
Thanks for your sharing again. 
Kate Li
TechNet Community Support

Similar Messages

  • Projectname.exe' does not contain a static 'Main' method suitable for an entry point .

    Hi,
    I'm developing a blog reader for windows 8 store app. It was perfectly worked before. But because of some miss behave my coding i get below error. No other errors there.
    Error    1    Program 'c:\Users\.........\Desktop\Blog_Reader\Blog_Reader\obj\Release\intermediatexaml\Blog_Reader.exe' does not contain a static 'Main' method suitable for an entry point    C:\Users\..........\Desktop\Blog_Reader\Blog_Reader\CSC  
     Blog_Reader
    Please help me to figure this.
    Thank You!

    Go to your App.Xaml and R-Click Go to Properties
    Check whether the Build Action is ApplicationDefinition
    If not change it to ApplicationDefinition. Clean the code (solution ) and Deploy..
    Chears....

  • Does not contain a static 'Main' method suitable for an entry point_

    Hello
    I want to to do a project with Entiity Framework . I add a project to my solution for my domain class and it's name is 'LinkModel.DomainClasses'.  when I prees F5 there is an error like bellow.
    Could You help me to solve this? thanks alot
    ..\Documents\Training\LinkCodeFirstLast\LinkCodeFirst\LinkCodeFirst\LinkModel.DomainClasses\obj\Debug\LinkModel.DomainClasses.exe'
    does not contain a static 'Main' method suitable for an entry point

    Hi bkshn,
    This error is caused by the missing "Main" method in your project. it is the entry point of your project.
    If you want to create a EF project, you could follow the way in the aricle below.
    https://msdn.microsoft.com/en-us/data/ee712907#codefirst
    The Main method is like below.
    class Program
    static void Main(string[] args)
    using (var db = new BloggingContext())
    // Create and save a new Blog
    Console.Write("Enter a name for a new Blog: ");
    var name = Console.ReadLine();
    var blog = new Blog { Name = name };
    db.Blogs.Add(blog);
    db.SaveChanges();
    // Display all Blogs from the database
    var query = from b in db.Blogs
    orderby b.Name
    select b;
    Console.WriteLine("All blogs in the database:");
    foreach (var item in query)
    Console.WriteLine(item.Name);
    Console.WriteLine("Press any key to exit...");
    Console.ReadKey();
    And you could start to learn the EF from the following MSDN blogs.
    https://msdn.microsoft.com/en-us/data/ee712907
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to create an unsigned appxbundle file for windows store app?

    Hi,
    Is it possible create an unsigned appxbundle file for windows store app and later sign it with my company certificate?
    If yes, how can I achieve it?
    Thanks

    You would create your own appx pacakge using
    MakeAppx.exe.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • How to use offline map for windows store app using c# and xaml

    Hi friends,
    I want to integrate offline map in my windows store app but I am not able to achieve that.
    Below is my requirement:
    When a user wants to go somewhere where she/he doesn't want to use wi-fi or mobile data but wants to use map to assist her/him to roam around. For this I want to give an option to download the map for that region/area before leaving for that place and there
    she/he can use map even in offline.
    Is it possible that I can achieve this using Bing maps?
    If yes then tell me the processes to follow.
    If no then can I achieve this using "Here" or by using any other API or by tweaking any way?
    Note: I am showing maps in case of online and user can search for directions or any places in that. I am using Bing maps for that.
    Thanks,
    S.Sandeep

    Hi Sandeepmsandy,
    There is no available code sample for this scenario. You may write your own.
    Step 1: Get pdf URL from sqlite database. Please refer to the following MSDN blog and see a code sample.
    http://blogs.msdn.com/b/robertgreen/archive/2012/11/13/using-sqlite-in-windows-store-apps.aspx. Note, you need to retarget the project to 8.1 and then get two sqlite packages from NuGet before building this sample.
    Step 2: Use some special classes to get file from serer.
    HttpWebRequest can help download small pdf files. For more information to see
    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/de96a61c-e089-4595-8349-612be5d23ee6/download-file-with-httpwebrequest?forum=winappswithcsharp. It’s easy for use, but if you want to download the larger or many files, it’s recommend to use
    BackgroundTransfer namespace. The classes in this namespace provide a power way to transfer files in the background. See a code sample from MSND.
    https://code.msdn.microsoft.com/windowsapps/Background-Transfer-Sample-d7833f61.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • Calendar Control for Windows store apps

    Im searching for a calendar control for windows store apps
    something like this, that when i select a day i get to see information about that day , like meetings and such 
    is there anything of sorts ? , free if possible.

    Hi Thought2,
    Sorry, as far as I know currently there is no in-build calendar control, but there are quite lot of third party calendar control developed by communities also companies, try to search with key words: "windows store app calendar control", you would
    be able to find some.
    Hope this helps.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Which Nuget Package for Azure Service Bus can I use for Windows Store apps?

    Hi,
    I want to use the Azure Service Bus Topics. I have an app that needs to subscribe to the Service bus Topic. The Nuget-Package for Azure Service Bus is not applicable for Windows Store Apps (I get an error during install), thats why I used the Windows Azure
    Service Bus managed for Windows Store. Unfortunatelly this API throws a Serialization Exception when I create a subscription. What can I do to use the Service bus in Windows store apps?
    Thats how I try to create the subscription:
    await Microsoft.WindowsAzure.Messaging.Subscription.CreateAsync(TOPIC_NAME, SUBSCRIPTION_NAME, CONNECTION_STRING);

    Yes this is the one I used.
    But creating a subscription with the code above throws the SerializationException mentioned in this question:
    http://social.msdn.microsoft.com/Forums/de-DE/1acb887e-d5f1-4bfb-8eb9-f8ce7390ae7b/microsoftwindowsazuremessagingsubscriptioncreateasync-throws-an?forum=servbus&prof=required.
    Maybe I do something wrong? Do I Need to do something before creating the subscription?
    I haven't found any sample that shows how you can subscribe to a Topic and receive Messages using the restricted Api for winrt :(
    Any suggestions?

  • MDT 0xc0000098 The windows boot configuration data file does not contain a valid OS entry

    hello,
    i installed WDS+MDT for OS deployment. all was working fine.
    Now i need our branch office to be able to deploy OS as well.
    I installed a new Win 2008R2 server, and installed the WDS service on it.
    When reading about this on the internet i saw i need, on the MDT at our main office, to make a link, under "Advanced Configuration" - "Linked Deployment Shares" to the new WDS server (I used this: http://www.balm.se/?p=115")
    when doing so i entered the UNC path to the new server and then, on the created link, i right click and choose "Replicate now".
    after doing so, i tried booting a laptop just to see if there is any impact, and now, I'm getting this error:
    Windows failed to start. A recent hardware or software change might be the cause. To fix the problem:
    1. insert your windows installation disk and restart your computer
    2. choose your language, and then click "Next"
    3. Click "Repair your computer"
    If you do not have this disc, contact your system administrator or computer manufacturer for assistance.
    File: \Boot\BCD
    Status: 0xc0000098
    Info: The windows Boot Configuration Data file does not contain a valid OS entry.
    I know that usually when I'm getting this message, it means that a previous MDT installation was started and did not finished correctly, and the are some [stuff] on the HD, so i do a partition erase and start over and all working fine.
    Now it's not working. I tried several computer, even new ones, and NADA.
    someone know the cause?
    I know I read something, i don't remember where or how to find it, that when doing the steps I did, it alter\change some ini or xml, or something like this. is that true? any one know on what file do i need to look and see if something is misconfigured?
    thanks a lot for your help

    hello,
    i installed WDS+MDT for OS deployment. all was working fine.
    Now i need our branch office to be able to deploy OS as well.
    I installed a new Win 2008R2 server, and installed the WDS service on it.
    When reading about this on the internet i saw i need, on the MDT at our main office, to make a link, under "Advanced Configuration" - "Linked Deployment Shares" to the new WDS server (I used this: http://www.balm.se/?p=115")
    when doing so i entered the UNC path to the new server and then, on the created link, i right click and choose "Replicate now".
    after doing so, i tried booting a laptop just to see if there is any impact, and now, I'm getting this error:
    Windows failed to start. A recent hardware or software change might be the cause. To fix the problem:
    1. insert your windows installation disk and restart your computer
    2. choose your language, and then click "Next"
    3. Click "Repair your computer"
    If you do not have this disc, contact your system administrator or computer manufacturer for assistance.
    File: \Boot\BCD
    Status: 0xc0000098
    Info: The windows Boot Configuration Data file does not contain a valid OS entry.
    I know that usually when I'm getting this message, it means that a previous MDT installation was started and did not finished correctly, and the are some [stuff] on the HD, so i do a partition erase and start over and all working fine.
    Now it's not working. I tried several computer, even new ones, and NADA.
    someone know the cause?
    I know I read something, i don't remember where or how to find it, that when doing the steps I did, it alter\change some ini or xml, or something like this. is that true? any one know on what file do i need to look and see if something is misconfigured?
    thanks a lot for your help
    For a branch solution I would use DFS(R) rather than linked deploymentshares.
    If there is infrastructure at the remote sites you could use the MDT environment at your main site, and  then at each other site use an existing server or build a new server (VM is available). Create a Deploymentshare on each sever
    and copy the contents of the MDT environment from the first site into this share.  Next you will have to add the WDS service to each site's server. For WDS add the boot image. Of course as Keith noted ensure that you
    have the same versions of MDT and the WAIK/ADK on all systems
    You can use DFS to replicate to all of the other sites, but you will still have to create a deploymentshare, and install WDS at each site. So each site talks to its own WDS server you can use the DefaultGateway parameter instead -
    [Settings]
    Priority=Default, DefaultGateway
    [Default]
    SkipBDDWelcome=YES
    [DefaultGateway]
    192.168.10.1=Bergen
    192.168.20.1=Oslo
    [Bergen]
    DeployRoot=\\MDT-Bergen\DeploymentShare$
    [Oslo]
    DeployRoot=\\MDT-Oslo\DeploymentShare$
    If this post is helpful please click "Mark for answer", thanks! Kind regards

  • Download 10g for Windows 2003 server 32 bit does not provide the correct pr

    The following Oracle OTN link provides a misleading product. It says that the following link provides the Oracle 9i Database Release 2 Enterprise/Standard/Personal/Client Edition for Windows Server 2003 (32bit) and
    what it contains is the OUI for applying the 9.2.0.3 patchset and the patchset itself. It does not contains the product.
    http://www.oracle.com/technology/software/htdocs/devlic.html?http://otn.oracle.c
    om/software/products/oracle9i/htdocs/win2k3soft.html

    >
    As far as I can tell there doesn't appear to be an Oracle10g download for
    10.2.0.4 for Windows 2003 Server. It looks like you have to download 10.2.0.1
    for Windows then apply the patch to bring it up to 10.2.0.4.
    Am I seeing this correctly or am I missing something?
    >
    Indeed you are; your eyes are definitely not lying to you. 10.2.0.4 is a patchset which can only be applied to an already existing Oracle Home.
    You might want to try and understand a little bit more about what the 10.2.0.4 means by accessing the links below.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14238/intro.htm#sthref14
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/dba.htm#sthref94
    http://wiki.oracle.com/page/Patchset+Number+Overview
    Perhaps you also ought to go through this {message:id=3251402}
    Regards,
    Phiri

  • Local Database Options for Windows Store Apps

    I am looking to create an application that will allow for entry of data from a user and write it to a database file system locally within the application.
    I am new to Windows Store type app development and are a senior developer for ERP systems for the enterprise which have rich databases and client apps that are built with a MVC type configuration. The app communicates with the database which is on the DB
    server (Oracle, IBM DB2, or SQL Server) and writes to the file system.
    For my startup applications I would like to have a simple CRUD type interface that writes to a DB that is part of the application and does not require a connection to a file server or DB server.  Internally I would like something with a few tables,
    etc.. that I can write to and then report from locally.
    In the Windows 8x development world, what is the best method and technology to use for Store Apps for this scenario?  What is the best approach? 
    Mike

    There is SQLite for Windows RT and Windows Phone.
    Search "SQLite" in vs extensions and updates

  • Nano was working perfectly until I had to reformat for windows computer. Now, it does not respond well to touch.

    I recently purchased a ipod nano and briefly had it synced with my macbook pro.  I recently sold my macbook pro and had to reformat ipod nano.  Since then, the ipod nano does not respond very well to touch commands and sometimes goes into apps that I did not select.  It is impossible to switch from page one to page two one app screen.
    Thanks,
    acdc1996

    Hey acdc1996,
    Welcome to Apple Support Communities! Even if you have a different generation of nano, you'll want to check out the troubleshooting steps in the following article as most of them would still be applicable:
    iPod nano (6th generation): Hardware troubleshooting
    http://support.apple.com/kb/TS3474
    Have a great day,
    David

  • Windows Explorer for Windows 7.1 32-bit does not display pdf title

    Using Adobe Reader XI version 11.0.08 the pdf title does not display in the Title column of Windows Explorer.  This worked under Windows XP 32-bit
    How is this fixed?
    wojw

    Here is the screen shot. Notice the Title column is empty.

  • ISO FILE FOR WINDOWS BOOTABLE DISC - ISO FILE DOES NOT WORK

    Hi Guys!
    So I'm attempting at loading windows on my new iMac via Boot Camp, I've created the ISO file, and am trying to add it on boot camp and it simply doesn't work (even though my destination drive is MS FAT 32.
    Reference this
    http://support.apple.com/en-is/HT203909
    Heres a screen shot of what pops up when i try to load the ISO file!!
    Can anyone help me?

    Please correct me if I am incorrect.. you are trying to make a bootable USB with a Windows File using Disk Utility to the use it to boot it with bootcamp? If that's the case i would advise creating the bootable device directly from the bootcamp app, and not from disk utility

  • How to find out if the company account for developing windows store apps is verified/approved?

    We have created the account for windows store app. How can I find out if the account was approved (the identity of the company)? 

    Hi,
    There is one more method,i know
    Set the JAVA_HOME and PATH
    then execute the
    $WL_HOME\wlserver_10.3\server\bin>setWLSEnv.cmd
    Go to directory which contains weblogic.jar ($WL_HOME\server\lib) and run below command
    $WL_HOME\wlserver_10.3\server\lib>java -cp weblogic.jar weblogic.version
    WebLogic Server 10.3.4.0 Fri Dec 17 20:47:33 PST 2010 1384255
    Hope this will be helpful,
    Regards
    Fabian

  • [Forum FAQ] Go to Start Screen/Desktop when closing Windows Store App

    After install Windows 8.1 Update 1, you will notice these things set by default even on touchscreen laptops and desktops:
    Windows 8.1 now boots directly to the desktop.
    Closing Windows Store Apps and go to desktop instead of Start Screen.
    Besides option “When I sign in or close all apps on a screen, go to the desktop instead of Start” since Windows 8, another new option in Taskbar Properties “Show Windows Store app on taskbar” is used to control closing app behavior.
    Features of "Show Windows Store app on taskbar" 
    When the setting is checked, all of the Windows Store apps that are currently running will display on taskbar. You can easily switch between Windows Store apps and your desktop and its applications through the taskbar. For mouse users,
    you can also access the taskbar within a Windows Store app. Just move the mouse cursor to the button of the screen, the taskbar pops up.
    When the setting is unchecked,
    Windows Store apps have no minimize button, only Close button
    Windows Store apps that are open are not visible on Taskbar
    Windows Store apps can still be pinned to the taskbar
    How do these two options work for closing app behavior?
    Modern app and Taskbar   setting
    OFF
    ON
    Boot   to desktop setting
    OFF
    Close goes to Start
    Close reveals the   app that was previously used, and eventually dead ends at the Desktop
    ON
    Close goes to desktop
    Close reveals the   app that was previously used, and eventually dead ends at the Desktop
    Know why “When I sign in or close all apps on a screen, go to the desktop instead of Start” does not work when “Show Windows Store app on taskbar” is checked on
    As MironV mentioned in the
    thread, Windows 8.1 Update is designed to introduce a number of changes for mouse and keyboard users that would help them use and switch between Windows Store apps alongside their familiar desktop applications. A lot of these changes only made sense when
    combined together, so they are toggled by one setting, which is “Show Windows Store apps on the taskbar.” This is usually enabled together with the first setting as a complimentary set of improvements for desktop users. When the setting is enabled, Windows
    Store apps are intended to feel more like regular maximized applications living on the desktop, though they are full screen only. For example, when you launch apps from Start, they appear on the taskbar until they are closed. You can also minimize them or
    switch between them by invoking the taskbar.
    Please understand that unchecking the “When I sign in or close all apps on a screen, go to the desktop instead of Start" setting has no effect on close and minimize behavior when the “Show Windows Store apps on the taskbar” setting is checked, since
    they are controlling two independent things. If you tend to use only one Windows Store app at a given time, it may seem like we’re not respecting the setting by going to the desktop.
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    I don't know if I'm the only one, but on my desktop (using mouse and keyboard only) I like to have my Start screen as my main screen.  To ensure this I made sure to uncheck the "When I sign in or close all apps on a screen, go to the desktop" box and
    check the "Show Start on the display I'm using when I press the Windows Logo key" box. I also really like having the task bar appear at the bottom even when I'm using a modern app.  Based on the settings I've chosen (i.e., boxes I've checked or not checked),
    I would expect to be taken back to the start screen and not the desktop whenever I close an app.  From what I've read from your response and from others in this thread, in order to accomplish this function (i.e., closing an app and going directly to the
    start screen) I need to uncheck the "Show Windows Store apps on the taskbar" setting.  By doing this I get the functionality I was looking for when the apps are closed and I get sent to the start screen.  However, I am now not able to see the taskbar
    when I'm in a modern app or when I'm on the start screen.  This seems counterintuitive/confusing as many have mentioned.  Not to mention it creates an additional step for users to get back to the Start screen.
    All I want to do is (1) use my start screen as my main screen, (2) see the taskbar when running whatever app I'm using (e.g., modern), and (3) go back to my start screen (and not the desktop) when I close an app.  It would only make sense that I should
    get these results if I leave the "Show Windows Store apps on the taskbar" box checked and the "When I sign in or close all apps on a screen, go to the desktop instead of Start" box unchecked; but unfortunately this is NOT the case.  I really hope that
    an update fixing this is coming sooner rather than later because this is really annoying.

Maybe you are looking for

  • ProForma Invoice Problem for srvices

    Hi my client has a report which is working properly for products but in case of services material its showing/picking complete billed values & quantities? My client want it be same as products (whatever delivered).In this case from where it would be

  • I have a link to pictures now I would like to have them open in a new window

    I finally have a link to my pictures with the correct size.  I think I want them to open in a new window.  This would make it easier for people to go back and forth to different groups.  Currently when I click on a link it shows the pictures in a sli

  • Convert string to date for Ms Access

    I have some date in a textFile!!! I get them via Buffered and FileReader into my java application and put them into a Vector! Every date is formatted as Strings and I want to convert them into a date format(YYYYMMDD). The date are not used for " Syst

  • EBS account assignment

    We are implementing electronic bank statement functionality. Our deposit clearing accounts are structured the following way. bank g/l account - 100060  deposit clearing accounting will be 100061 bank g/l account 121301 - dep clearing 121302 deposit c

  • IPod freezes programs

    I'm having problems with my iPod. Whenever I try to connect it to a computer it freezes every program that can recognize external storage devices (explorer, itunes, winamp etc.). I don't know when the problems started but I've managed to get it runni