When trying to run a Visual Studio 2010 program under Task Scheduler, it always gives a return code of 3762507597.

I am trying to run a Visual Studio 2010 program under Task Scheduler. We were running the program under Scheduled Tasks
in Windows XP with no problems. When it runs under Task Scheduler it always gives a return code of 3762507597. If I run
the program out of Task Scheduler it runs fine. Running Task Scheduler as Administrator and running the program with
Run with highest privileges.. Any help or suggestions would be appreciated....  Thanks

Hi,
Could you let us know the exact error message? How did you configure it?
Please follow this guide to check your settings:
Use the Task Scheduler to Launch Programs Without UAC Prompts
http://www.7tutorials.com/use-task-scheduler-launch-programs-without-uac-prompts
Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Karen Hu
TechNet Community Support

Similar Messages

  • Error When Trying To Publish In Visual Studio 2013 C# Project

    I have a C# Winforms app in Visual Studio that has a problem. when I click on Project->Properties->Publish and click on the Options button, I get a prompt saying "An error occurred trying to load the page. An item with the same key has already
    been added."
    What causes this and how do I fix it?

    Carl,
    Here's a screenshot of my project's Solution Explorer:
    OK, so I have a file called "Resources.resx" and another folder down below called "Resources" which contains images. Which one should I rename and what do I do about possible errors that might pop up when I try to Build or Run the app?
    Hello,
    I mean the .resx file, but based on your screenshot, the Resources.resx file was generated by Visual Studio and it was not added by yourself, right?
    This issue has beend discussed in the following thread, you could compare it with yours to narrow down this issue, since the error message shows that the project added duplicate data.
    http://stackoverflow.com/questions/3003914/vs2010-an-item-with-the-same-key-has-already-been-added
    You could follow that thread to check both the .resx file and the .csproj file to see whether there are duplicate data have been added.
    Regards,
    Carl
    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.

  • Crystal Report errors when installing visual studio 2010 app

    I'm trying to install a Visual Studio 2010 application on two client's machines and I get a different error on each one.  Both errors point to Crystal Reports.
    I have a feeling that I'm supposed to install something on the client's machines but I'm not sure what.
    The first client's error says that CrystalDecisions.Windows.Form Version 13.0.2000.0 cannot be loaded.
    The second client's error says that FlashControlV71. Version 1.0.3187.32366 needs to be installed in the GAC.
    What am I supposed to install on the client's machines?  Or if that's not the problem, what is causing the errors?
    This is my first visual studio app so I'm a complete newbie.
    Thanks for any help or advice.

    Thanks for your reply.  I installed the runtime (x64) and am now getting a new error on the first client's machine.  I think it's telling me that I installed the wrong version of the runtime.  The client is running x64t Win 7 so I chose the x64 runtime to install. 
    System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions are insufficient, or the Crystal Reports runtime is not installed correctly. Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.  Please go to http://www.businessobjects.com/support for more information.
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()
       --- End of inner exception stack trace ---
       at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
       at IM_CMETracking.ReportViewer.CrystalReportViewer1_Load(Object sender, EventArgs e)
       at System.Windows.Forms.UserControl.OnLoad(EventArgs e)
       at CrystalDecisions.Windows.Forms.CrystalReportViewer.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WmShowWindow(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    The second client is running XP.  The error I'm getting on their machine is this:
         CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException:    Unsupported Operation. A document processed by the JRC engine cannot be opened in the C++ stack.
    Thank you for your help.

  • Disabling copy feature in Crystal Reports for Visual Studio 2010 SP2

    Hi ,
    When I tried Crystal Reports for Visual Studio 2010 SP2 , I saw a new feature which allows user to copy content of the report after selecting it. I am using .net 4.0 winform application. I want to suppress this feature. I want the selection of objects in report to work as earlier version.  I could hide the copy icon in toolbar . But that doesn't change the way selections happens in the report . Please tell me how to suppress the copy feature completely when we use SP2 ?

    Hi Jijo Paul,
    We found a hidden method to disable the copy as it used to be. It is hidden meaning it's not supported so if you run into any problems using it or if it gets removed there is nothing we can do for you but give this a try:
    // this hides the button and disables the CTRL C command
    crystalReportViewer1.ShowCopyButton = false;
    crystalReportViewer1.SelectionMode = CrystalDecisions.Windows.Forms.SelectionMode.None;
    Thanks again
    Don

  • Crystal Reports Version for Visual Studio 2010 Fails to Install

    Hi -
    I am trying to install the CR redistribution package for .Net 4.  When I run CRRuntime_32bit_13_0.msi I get an Error 1904 when it tries to register the commonobjmodel.dll.  If I manually register the dll using regsvr32 I get the following message:
    "The module 'commonobjmodel.dll' failed to load.  Make sure the binary is stored
    at the specified path or debug it to check for problems with the binary or dependent .DLL files."
    The dll does exist and is in the correct directory.  Is there another installer I should be using?
    Thanks.
    - Andrew

    Entering "1904 crystal" into the search box at the top right corner of this page, gives the following KB:
    [1534393  - "Error 1904. Module C:Program FilesSAP BusinessObjects..dtsagent.dll failed to register ..." when installing Crystal Reports for Visual Studio 2010 MSI runtime|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533333334333333393333%7D.do].
    See if that helps. If not, there are other KBs that will come up for CRVS2010...
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • System.Security.VerificationException: Operation could destabilize the runtime during code coverage run in visual studio

    I have a unit test that basically does the following:
    Creates an app domain using minimum priviledges.  The MarshalByRefObject that is living in the app domain, loads another assembly to execute.  This new assembly basically takes in a data object defined in a separate assembly, and returns a
    new data object of that type.
    All this works fine in debug mode, or when running w/out code coverage.  The Sandbox assembly is signed.
    The exception that gets thrown is this:
    Test method TestProject1.UnitTest1.TestMethod1 threw exception:
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Security.VerificationException: Operation could destabilize the runtime.
    ClassLibrary3.Bar..ctor()
    ClassLibrary2.Foo.TestMethod(Bar testBar)
    System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
    System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
    System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
    ClassLibrary1.RemoteSandBox.Execute(String assemblyPath, String scriptType, String method, Object[] parameters)
    ClassLibrary1.RemoteSandBox.Execute(String assemblyPath, String scriptType, String method, Object[] parameters)
    ClassLibrary1.SandBox.Execute(String assemblyPath, String scriptType, String method, Object[] parameters) in c:\users\la22426\documents\visual studio 2010\Projects\TestProject1\ClassLibrary1\Sandbox.cs: line 43
    TestProject1.UnitTest1.TestMethod1() in c:\users\la22426\documents\visual studio 2010\Projects\TestProject1\TestProject1\UnitTest1.cs: line 21
    Unit Test code:
    [TestClass]
    public class UnitTest1
    [TestMethod]
    public void TestMethod1()
    using (SandBox sandbox = new SandBox())
    string assemblyLocation = Path.Combine(Environment.CurrentDirectory, @"..\..\..\ClassLibrary2\bin\Debug\ClassLibrary2.dll");
    object result = sandbox.Execute(assemblyLocation, "ClassLibrary2.Foo", "TestMethod", new Bar() { X = "test" });
    Assert.IsNotNull(result);
    Data Object code:
    namespace ClassLibrary3
    [Serializable]
    public class Bar
    public Bar() { }
    public string X { get; set; }
    Assembly to execute code:
    namespace ClassLibrary2
    public class Foo
    public Bar TestMethod(Bar testBar)
    return new Bar() { X = testBar.X };
    Sandbox code:
    namespace ClassLibrary1
    public class SandBox : IDisposable
    AppDomain Domain { get; set; }
    RemoteSandBox RemoteSandBox { get; set; }
    public SandBox()
    var setup = new AppDomainSetup()
    ApplicationBase = AppDomain.CurrentDomain.BaseDirectory,
    ApplicationName = Guid.NewGuid().ToString(),
    DisallowBindingRedirects = true,
    DisallowCodeDownload = true,
    DisallowPublisherPolicy = true,
    //DisallowApplicationBaseProbing = true,
    var permissions = new PermissionSet(PermissionState.None);
    permissions.AddPermission(new SecurityPermission(SecurityPermissionFlag.Execution));
    permissions.AddPermission(new ReflectionPermission(PermissionState.Unrestricted));
    this.Domain = AppDomain.CreateDomain(setup.ApplicationName, null, setup, permissions,
    typeof(RemoteSandBox).Assembly.Evidence.GetHostEvidence<StrongName>());
    this.RemoteSandBox = (RemoteSandBox)Activator.CreateInstanceFrom(this.Domain, typeof(RemoteSandBox).Assembly.ManifestModule.FullyQualifiedName, typeof(RemoteSandBox).FullName).Unwrap();
    public object Execute(string assemblyPath, string scriptType, string method, params object[] parameters)
    return this.RemoteSandBox.Execute(assemblyPath, scriptType, method, parameters);
    public void Dispose()
    if (this.Domain != null)
    AppDomain.Unload(this.Domain);
    class RemoteSandBox : MarshalByRefObject
    public RemoteSandBox()
    public object Execute(string assemblyPath, string scriptType, string method, params object[] parameters)
    //we need some file io permissions to load the assembly
    new FileIOPermission(FileIOPermissionAccess.Read | FileIOPermissionAccess.PathDiscovery, assemblyPath).Assert();
    Assembly assembly;
    try
    assembly = Assembly.LoadFile(assemblyPath);
    finally
    CodeAccessPermission.RevertAssert();
    Type type = assembly.GetType(scriptType, true);
    MethodInfo methodInfo = type.GetMethod(method);
    object instance = (methodInfo.IsStatic) ? null : Activator.CreateInstance(type);
    object returnVal = null;
    returnVal = methodInfo.Invoke(instance, parameters);
    return returnVal;

    I marked the shared data library with the attributes:
    [assembly: AllowPartiallyTrustedCallers]
    [assembly: SecurityRules(SecurityRuleSet.Level2, SkipVerificationInFullTrust = true)]
    And then marked  the data class Bar with the attribute:
    [SecuritySafeCritical]
    And got a little more insight into what's going on:
    Test method TestProject1.UnitTest1.TestMethod1 threw exception:
    System.MethodAccessException: Attempt by security transparent method 'Microsoft.VisualStudio.Coverage.Init_d2f466df4c65e2a7bb5d7592c49efef0.Register()' to call native code through method 'Microsoft.VisualStudio.Coverage.Init_d2f466df4c65e2a7bb5d7592c49efef0.VSCoverRegisterAssembly(UInt32[],
    System.String)' failed.  Methods must be security critical or security safe-critical to call native code.
    Microsoft.VisualStudio.Coverage.Init_d2f466df4c65e2a7bb5d7592c49efef0.Register()
    ClassLibrary3.Bar..ctor() in c:\users\xxx\documents\visual studio 2010\Projects\TestProject1\ClassLibrary3\Bar.cs: line 13
    TestProject1.UnitTest1.TestMethod1() in c:\users\xxx\documents\visual studio 2010\Projects\TestProject1\TestProject1\UnitTest1.cs: line 21
    Since the injected code coverage il is doing some native stuff, it's throwing.  Any ideas on how to allow this?

  • I can't install MS Visual Studio 2010 ultimate

    Hi everyone
    I'm trying to install MS Visual Studio 2010 in my laptop, but it get stuck on this point shown in snap shot. I've installed this several times before but now i can't, even I installed my windows again but the problem is same. I'm using windows 7 ultimate.
    Please help me if someone knows about it. 

    Hi,
    Could you please clarify some information like from where you are installing the Visual Studio 2010 ultimate. Are you trying to use web installer or you downloaded the ISO from Microsoft web site.
    If it web installer, It may cause by connection issue during the installation. Please try download the content online or copy the content from your DVD to some folders from your disk, then try the installation again. And try to use the tool in below link
    to check your ISO checksum.
    http://support.microsoft.com/kb/841290
    Then you can follow up the steps  in the link to install your VS:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/60f71a54-506e-4c70-be98-e993ce6d1ddf/visual-studio-installation-tips?forum=vssetup
    If the error also occurs, please use http://aka.ms/vscollect  to gather the installation logs. You will find vslogs.cab from %temp% folder. Please upload the file to 
    https://onedrive.live.com/   and share the link here.
    Best Wishes!
    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. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Is it possible to use Firefox to debug javascript files when running a web application using visual studio 2010

    I am trying to debug a ASP.Net web application within visual studio 2010 using Firefox. I am able to set breakpoints in my C# code and they work but if I set a breakpoint in a javascript file then these do not work when using Firefox. Is there any way to do this?

    Of course you can. I use the VS2010 built-in Javascript debug tool a lot, not only for IE, but also for firefox.
    I encountered the "break point not working" issue several times, according to my experience, following is the solution to this problem, give them a shot:
    1. There maybe errors in your javascript code, have a close look at your code, try to find the errors or eliminate this possibility.
    2. Sometimes you have to refresh the page once after the page is loaded the first time. This solves the problem most of the time.

  • Connectiong Visual Studio 2010/2013 to SQL Database and Running VS Windows Form App in the Windows Azure Cloud

    Hi, good day
    Im going to have a little presentation before I finished my OJT and the topic that was given to is cloud computing. One of the task I need to do is to set up an application where in it can run and access real time on the "cloud". Now my prob is
    I already have windows azure account, made my database, BUT don't know how to connect it to my Visual Studio 2010/2013 (which is more preferable?), and if I ever connect it when my Windows Form is made can it run on the cloud also, how? Please help. Thank
    you so much.
    PS: I will be discussing this with people who doesn't know much about computing can you send me tips what to discuss? Double Thank You. :)

    Thank you for the help.. Another thing can I run my Windows Form App also on the cloud? Like if I present is it possible that the application that I will be doing can be uploaded and accessed on the cloud by the audience and can be used by many at the
    same time? Can you tell me how? Or give me a source how to do it? I downloaded the azure tools but I don't how to use it. I checked and tried activating and fixing my IIS and enabling support for ASP but still nothing, when I try to do cloudservice it says
    "get azure tools" even though I already have it installed in my laptop, and when I try to right click and upload the project to azure I don't see the usual option 'Upload to Microsoft Azure'. My app is a simple phonebook app with add, edit, delete and search
    function. Thanks again..

  • Group Tree issue when refreshing- Crystal for Visual Studio 2010 WPF Viewer

    Hello,
    We've run into an issue when refreshing reports with the WPF viewer for Visual Studio 2010. After the report is refreshed, the Group Tree is blank and it should have values. For example, you run a report and see values in the Group Tree. If you refresh the report with the same parameter values the Group Tree is blank.
    Has anyone run into this yet?
    Thanks,
    Tyler

    That is correct.
    I just did a quick test and was not able to reproduce the issue.
    Details of test:
    1) Create a new app;
    File | New | Project
    Visual Basic | reporting -> Crystal Reports WPF Application
    2) Add the "Open File" button to the viewer (ShowOpenFileButton off of the WPF viewer properties)
    3) Run app
    4) Browse to a report that has a number of groups >250
    5) Refresh report using the Refresh button on the viewer
    I'll work on this a bit later today, see if I can repro it another way. Meanwhile, can you provide mode details (code) on how you repro the issue?
    - Ludek

  • Problem when adding ABAP custom webservice with Visual Studio 2010

    Hi All,
    After creating a webservice for a custom RFC function developed in a ECC6.0 SAP machine, I tried to add it to a Visual Studio 2010 windows aplication (through a web reference connection).
    The sequence I've done is:
    - Create RFC in ABAP, with testing ok
    - Create a WEBSERVICE with the ABAP editor
    - Configured the webservice with SICF with:
         Procedure: Standard
         Logon data: standard R3 user
         Security requirement: Standard
         Authentication: Standard SAP User
    Then, in SOAMANAGER I copied the webservice URL and tried to add it to Visual Studio 2010, but it keeps asking me the user and password. I try to supply the R3 username and password but if fails.
    Why is ECC6.0 asking the user and passord if I've defined a SAP user for the login process?
    Is there any way to disable this?
    Thanks,
    Manuel Dias

    Hello Manuel,
    You can use the following code:
    CredentialCache cache = new CredentialCache();
          cache.Add(new Uri("WEBSERVICEURL:PORTNUMBER/"), "Basic", new NetworkCredential("USERNAME", "PASSWORD"));
    SAP needs a password.
    Kind regards,
    JK

  • Run visual studio 2010

    Could MAC ruan visual studio 2010?

    Only if you run Windows, either via Boot Camp or one of the virtualization solutions (Parallels Desktop, VMWare Fusion, or VirtualBox). Visual Studio is exclusively a Windows application.
    Regards.

  • Visual Studio 2010 Upgrade - Unable to view some reports

    I converted an application that had been developed in VS2005 so that it would run in VS2010.  The application contains several Crystal Reports.  Now when I debug the application I can only view some of the reports.  With the others I get an exception with the message "Unable to find the report in the manifest resources.  Please build the project and try again." 
    The ones that work and the ones that don't all have the Build Action set to Embedded Resource.  I have tried removing a report from the project and then adding it back, but that made no difference.  A new report displayed fine. 
    Does anyone have any ideas about what could cause some of the reports to throw this exception?

    OK, here is the link to the thread I am replying to Visual Studio 2010 Upgrade - Unable to view some reports
    And here is what I posted to start the thread that I am replying to:
    I converted an application that had been developed in VS2005 so that it would run in VS2010. The application contains several Crystal Reports. Now when I debug the application I can only view some of the reports. With the others I get an exception with the message "Unable to find the report in the manifest resources. Please build the project and try again."
    The ones that work and the ones that don't all have the Build Action set to Embedded Resource. I have tried removing a report from the project and then adding it back, but that made no difference. A new report displayed fine.
    Does anyone have any ideas about what could cause some of the reports to throw this exception?
    As you can see, I have described the exception that occurs when I try to view some, but not all, or the reports while debugging.  I have also tried deleting a report and adding it back in but it made no difference.
    Is this enough information?

  • Crystal Report 13 Visual Studio 2010 SQL Server 2008 R2 ODBC Problem

    Hi Everybody,
    I am new in Crystal Report.
    I developed a web application in Visual Studio 2010, and my Database is SQL Server 2008 R2.
    I created reports using Crystal Report 13 in Visual Studio and my Operating System is Windows 7 32-Bit.
    I used ODBC Connection System DNS for my application.
    It is running fine even after Hosting on my local PC.
    But it creates problem when hosted on my Team Leader PC and Test Server.
    Their Configurations are same but only difference is "SQL Server 2008" Not R2
    The Error I am getting is "Failed to open the connection".
    When I Host the same on my another team member PC, I am getting the error like
    "Failed to open the connection. Details: [Database Vendor Code: 4060 ] Database Connector Error: ' [Database Vendor Code: 4060 ]' Failed to open the connection. Failed to open the connection. TestVr {CE268132-D2BD-43EC-BE45-0BCD847FBCDA}.rpt Details: [Database Vendor Code: 4060 ]"
    I tried various solution to fix this bug.
    But i am unable to do this and not getting any idea to fix this issue.
    If anyone can guide I will be thankful to him.
    All suggestions are appreciable.
    Thank you

    Hi,
    Please use the top right search box. for ex below search which will return many useful kb's, articlea and forum threads where simillar issues are discussed.
    [http://www.sdn.sap.com/irj/scn/advancedsearch?query=failedtoopentheconnection|http://www.sdn.sap.com/irj/scn/advancedsearch?query=failedtoopentheconnection]
    Most probably the issue is missing database client driver / provider.
    Install the driver used to connect the rpt to the db on the server and then create a 32 bit DSN with the same name as the dev machine..
    Hope this helps,
    Bhushan.

  • Sap business one studio 9.0 for microsoft visual studio 2010

    Hi Experts,
    After added a new project, Sap business one 9.0 Add-on Project, that project can't be loaded in Visual Studio 2010.
    When try to re-load the project in the Solution Explorer, the project stays as (unavailable), and the next line says, The project file was unloaded.
    I'm using :
    - Windows 7 professionnel 64 bits. (With no virtual machine)
    - Sap business one studio for Microsoft studio 32 bits. (Visual Studio  2010)
    - Sap business one studio 32 bits. (PL12)
    I've already tried to :
    -  Reload the project in the contextual menu.
    -  Run Visual Studio as Administrator.
    So VisualStudio, B1, DI-API and SBO Studio are all on the same version. (32 bits)
    [I've installed before B1 64 bits, but it did't work with visual studio 2010, because visual studio 2010 is available just in 32 bit version. so i uninstalled everything]
    NB  : I'm still in evaluation period of SAP Businness one 9.0.
    Can u please help me to solve this problem.
    Thank you a lot.
    Regards,
    Amine

    Hi, everyone
    I'm also having issue with SAP B1 for Microsoft visual studio. I've tried creating a project sap b1 add-on using b1s file still indicating unavailable.
    please help...

Maybe you are looking for