Msbuild creating different assembly in build machine and local machine

In our deployed application(in AFS), created by msbuild in a build machine, a call to a member function from another member function in the sameclass
is failing with an exception "absolute path information is required".
My locally built application is working fine. Our application is configured as "AnyCpu" and “Debug”. I have tried msbuild build in my machine using a 32 bit msbuild and 64 bit msbuild. In
both cases the assembly created is running without a problem. So it is the build machine which is producing the problem dll
We thought we should find the core cause of the issue
Details:
The "problem" class.
 [Export("SomeName",
typeof(IDataPresenter))]
[PartCreationPolicy(CreationPolicy.NonShared)]
public class
SomeDataPresenter : MyDataPresenter
  protected void
BeginFieldsWithDi(ReportFields reportDefinition)
    if(reportDefinition.ReportDimension != null)
reportDefinition.ReportDimension.ForEach(x =>x.LogicalName=_reportHelper.AddDiStart(x.LogicalName));
    if(reportDefinition.ReportMeasure != null)
reportDefinition.ReportMeasure.ForEach(x => x.LogicalName =
_reportHelper.AddDiStart(x.LogicalName));
protected override
bool UpdateReport(ReportFields reportDefinition, bool isReportExecution)
//the following call is failing with exception"absolute path information is required".    
BeginFieldsWithDi(ReportFields reportDefinition);
//the base classes just for clarity
[PartCreationPolicy(CreationPolicy.NonShared)]
public class
MyDataPresenter: BaseDataPresenter, IMyDataPresenter
[Export("DefaultReportDataPresenter", typeof(IDataPresenter))] 
[PartCreationPolicy(CreationPolicy.NonShared)]
 public class
BaseDataPresenter: Model, IBaseDataPresenter
For BeginFieldsWithDi() function the IL in my local machine and the deployed IL is different(Only the beginning part which is given below)
IL in my machine
.method family hidebysig instance void  RemoveDiFromFields() cil managed{
  // Code size       119 (0x77)
  .maxstack  3
  .locals init ([0] class [mscorlib]System.Action`1<class [MyApp.Infra]ReportFieldsReportDimension> 'CS$<>9__CachedAnonymousMethodDelegatef',
           [1] class [mscorlib]System.Action`1<class [MyApp.Infra]ReportMeasure> 'CS$<>9__CachedAnonymousMethodDelegate10',
           [2] bool CS$4$0000)
  IL_0000:  ldnull
  IL_0001:  stloc.0
  IL_0002:  ldnull
  IL_0003:  stloc.1
  IL_0004:  nop
  IL_0005:  ldarg.0
  IL_0006:  call       instance class [MyApp.Infra]ReportFields [MyApp.Modules.Ux]MyApp.Modules.Ux.Controls.VirtualGrid.Applications.Controllers.ReportDataPresenter::get_ColumnMetadata()
IL from deployed DLL
.method family hidebysig instance void  RemoveDiFromFields() cil managed
  // Code size       119 (0x77)
  .maxstack  3
  .locals init (class [mscorlib]System.Action`1<class [MyApp.Infra]ReportFieldsReportDimension> V_0,
           class [mscorlib]System.Action`1<class [MyApp.Infra]ReportMeasure> V_1,
           bool V_2)
  IL_0000:  ldnull
  IL_0001:  stloc.0
  IL_0002:  ldnull
  IL_0003:  stloc.1
  IL_0004:  nop
  IL_0005:  ldarg.0
  IL_0006:  call       instance class [MyApp.Infra]ReportFields [MyApp.Modules.Ux]MyApp.Modules.Ux.Controls.VirtualGrid.Applications.Controllers.ReportDataPresenter::get_ColumnMetadata()
Question: What causes the IL to generate “CachedAnonymousMethodDelegate” entry in my machine and does not in the build machine (which is deployed)? 
If we can deduct the cause of the exception("absolute path information is required") from above, what is it?

Update:
Changed the code to prevent compiler from creating closures. All is fine now.
Looks like the compiler which the build machine uses is not creating the closures correctly. A bug which is already fixed perhaps(which is why it is working fine in my machine) 
protected void BeginFieldsWithDi(ReportFields reportDefinition) 
if (reportDefinition.ReportDimension != null)           
foreach (var dimension in reportDefinition.ReportDimension)
dimension.LogicalName = _reportHelper.AddDiStart(dimension.LogicalName); 
if (reportDefinition.ReportMeasure != null)           
foreach (var measure in reportDefinition.ReportMeasure)      {                   
measure.LogicalName =_reportHelper.AddDiStart(measure.LogicalName); 

Similar Messages

  • "A critical error has occurred while running the virtual machine and the machine execution has been stopped"

    I have the following error:
    "A critical error has occurred while running the virtual machine and the machine execution has been stopped"
    When I am installing grid clusterware and when is copying files from one node to other I received that virtualbox error and is stop working.
    Can somebody give me any hint how to solve it ?
    Thank you
    Eugen

    I think that is not a Clusterware issue, The clusterware installation may generating a high load on your machine and Virtual Box is not supporting.
    Check vbox.log file to identify root cause.

  • Java code to connect to remote windows machine from local machine

    Hi,
    I have developed a code to connecting remote windows M/C from local M/C by using SSH2 (ganymed-ssh2-build209.jar) API. when I run the code its giving below error. Can any one please help me how to resolve it. And also please let me know, is there any other way to connect remote windows system using java code.
    Exception.
    java.io.IOException: There was a problem while talking to <host name>:22
      at ch.ethz.ssh2.Connection.connect(Connection.java:642)
      at ch.ethz.ssh2.Connection.connect(Connection.java:460)
      at Connect.RemoteServer.ConnectWindowsServer.runCommand(ConnectWindowsServer.java:55)
      at Connect.RemoteServer.ConnectWindowsServer.main(ConnectWindowsServer.java:27)
    Caused by: java.net.ConnectException: Connection refused: connect
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(Unknown Source)
      at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.SocksSocketImpl.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at ch.ethz.ssh2.transport.TransportManager.initialize(TransportManager.java:299)
      at ch.ethz.ssh2.Connection.connect(Connection.java:591)
      ... 3 more
    JAVA Code
    import ch.ethz.ssh2.Connection;
    import ch.ethz.ssh2.Session;
    public void setAuthenticationInfo(String hostname, String username,String password) {
           this.host = hostname;
           this.userid = username;
           this.password = password;      
           this.recentCommand = "";     
           System.out.println("setting authentication info completed for host=" + host );
      public void runCommand() throws Exception {
    try{
            // Setup ssh session with endpoint
           System.out.println("starting connection with " + host);
           Connection connection = new Connection(host);
           System.out.println("connection object created..");
           connection.connect();
           System.out.println("Connect to connection");
           connection.authenticateWithPassword(userid,password);
           System.out.println(connection.isAuthenticationComplete());
           Session session = connection.openSession();
          System.out.println("connected");
      }catch (Exception e) {
      e.printStackTrace();
    Regards,
    Praveen

    Hi baftos,
    I tried to telnet remote windows machine from my local machine on port 23, its not connected and given error message like "Connect failed".
    As your response, if we can telnet to remote windows machine from local machine then we can connect from Java. Is it correct ?.
    Can you please help me to resolve this issue. And also please confirm the port (23) is correct, which I was used to connect remote machine from telnet.
    Regards,
    Praveen

  • Different transitions page build in and build out

    is there a way to create different transitions for page build in and build out in indesign?

    You are correct - that is not Indesign Terminology. I want to have a differnet page transiton when I arrive at page 2 then when I leave page 2. I want objects to animate in a particula waay when I arrive on page two, and those objects to animate away in a differnet way when I leave page 2. I can't seem to get a button to do animations AND then leave a page.

  • Urgent - Things not working the same in server and local machine

    Hi,
    I have created an advanced table under advanced table as per the instructions in the dev guide. When the Add Row button is pressed in the parent table, I am inserting rows into the child VO and hence I should see rows in the child table in the UI. This is working fine in local machine. But when I deploy in the server it is not working. The child table is showing no search conducted. I have good OAF experience and have deployed things properly. But what could I be missing?

    Hi Sumit,
    "If the Child VO is not getting executed, please check the code which is responsible to execute the child VO. Do pay attention to exit clauses (like if conditions which skips a clause) and pay attention. "
    - If those things were a problem, it wouldn't have run in the local machine also right? Also, I ran diagnostics on the server and I can see the child VO is having the rows. It is something to do with the association of the child with the parent. But again: it's working fine on the local. That's what is bothering me and that's why I need some expert help. If you want, I can send you the page, controller and the AM ( 3 files)
    Of course redeploying the entire code, importing pages and bouncing is an option that could be explored.
    - Done that multiple times with a lot of care. Cleared Cache etc etc.

  • List all printers configured from server and local machine when hosted in server machine and working from Client machine

    Hello Team
    I am developing web application in asp.net. When application run from IIS(hosted in server machine running from client machine using web browser) application should list all the configured printers in local and network.
    can any one please let me know the process, in this i was able to load printers from server, so need to load printers from local machine.
    Thanks in Advance
    Bindu

    Hi Bindu,
    I am developing web application in asp.net. When application run from IIS(hosted in server machine running from client machine using web browser) application should list all the configured printers in local and network.
    From this message, this is a web application in asp.net, and it also related to IIS.
    You should post in the dedicated ASP.Net Forum
    http://forums.asp.net
    For IIS issue, http://forums.iis.net/ IIS forum should post.
    Thanks
    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.

  • My iMac has created different iPhoto libraries? Why and how can I bring all back to one library?

    My iMac has created seperate iPhoto libraries for some reason. So now I have all my photos seperated amongst 4 libraries.
    Why did iMac do this or what did I do unwittingly that caused this?
    How do I combine all the photos back into just one library?

    Your iMac has not created seperate ;libraries - that can only happen if you direct it done adn only you know what you did.
    What are the names of the 4 libraries?
    what version of iPhoto do you have? Do you have Aperturte? Unless you have iPhoto 9.3 and Apertrue 3.3 or newer the only way to merege libraries is using the paid version of iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ - 
    LN

  • Lost audio from pc user on osx Panther machine and tiger machine

    Video chatting fine with audio next time i chated i cant here the person im video chatting with and there's no audio options in ichat there all greyed out when pc useer trys to audio chat with me it sais that im not available or that im not capable of an audio chat one minute it was working now its not and its the same on two different machines heeeelllpp please

    Hi,
    From your description, after moved a user to another PC machine, part of Outlook clients are lost. Only contacts added by mobile device remains. If I misunderstood, please point it out.
    What’s the version of your Exchange organization?
    Have you checked contact in OWA and see if all contacts are there?
    If the user moved or archived Contacts item to one or more .pst files, please reconnect them to new installation of Outlook.
    Personal Folders files are stored in the following locations:
    Microsoft Windows XP     drive:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Time Machine and Time Machine Buddy Widget trouble

    I've been having trouble with my Time Machine getting stuck on "indexing backup," so I've done as I've read in some other posts and installed the Time Machine Buddy Widget.
    But the Buddy is acting strangely, too. The moment it was installed it was showing a backup log for November 24, 2011. Either it can see nine months into the future or there's something wrong.
    I tried reinstalling it. I tried restarting the computer. Same thing. The log appears to show a successful backup, so it's definitely not reflecting what's been happening today, where there's been much spinning and no progress.

    The one thing I hadn't done is verify the HD. I just did that and found it needed repairs--a problem with the "volume file count." So that's taken care of.
    Yes, those failures were sent by backupd. I'll paste a sample of them below. Ours is a pretty simple network. Just the MacBook connecting wirelessly to TM. Doubt it matters, but the TM is in bridge mode, connected to a 2wire modem/router. Generally, it doesn't seem to matter whether I connect via the 2wire signal or the TM signal. Both have been known to fail.
    Oh, and even with the repair to the HD, still the same odd date on the widget...
    Earlier today I had another smooth backup. Could mean something's fixed, but this is also often how it goes; it'll work fine for a while and then a long streak of nothing but "indexing backup."
    Feb 8 15:48:44 Steve-Smiths-MacBook com.apple.backupd[1287]: Network destination already mounted at: /Volumes/Time Capsule
    Feb 8 15:48:48 Steve-Smiths-MacBook com.apple.backupd[1287]: Failed to attach to image: /Volumes/Time Capsule/Steve Smith's MacBook.sparsebundle, DIHLDiskImageAttach returned: 35
    Feb 8 15:48:49 Steve-Smiths-MacBook com.apple.backupd[1287]: Failed to mount disk image /Volumes/Time Capsule/Steve Smith's MacBook.sparsebundle (DIHLDiskImageAttach returned: 109)
    Feb 8 15:48:51 Steve-Smiths-MacBook com.apple.backupd[1287]: Mount failed... waiting 60 seconds and trying again.
    Feb 8 15:49:11 Steve-Smiths-MacBook com.apple.backupd[1287]: Failed to eject volume /Volumes/Time Capsule (FSVolumeRefNum: -110; status: -47; dissenting pid: 0)
    Feb 8 15:50:11 Steve-Smiths-MacBook com.apple.backupd[1287]: Network destination already mounted at: /Volumes/Time Capsule
    Feb 8 15:50:13 Steve-Smiths-MacBook com.apple.backupd[1287]: Failed to attach to image: /Volumes/Time Capsule/Steve Smith's MacBook.sparsebundle, DIHLDiskImageAttach returned: 35
    Feb 8 15:50:19 Steve-Smiths-MacBook com.apple.backupd[1287]: Failed to mount disk image /Volumes/Time Capsule/Steve Smith's MacBook.sparsebundle (DIHLDiskImageAttach returned: 109)
    Feb 8 15:50:19 Steve-Smiths-MacBook com.apple.backupd[1287]: Giving up after 3 retries.
    Feb 8 15:50:24 Steve-Smiths-MacBook com.apple.backupd[1287]: Backup failed with error: 21
    Feb 8 15:50:43 Steve-Smiths-MacBook com.apple.backupd[1287]: Failed to eject volume /Volumes/Time Capsule (FSVolumeRefNum: -110; status: -47; dissenting pid: 0)
    Feb 8 16:47:21 Steve-Smiths-MacBook com.apple.backupd[1287]: Starting standard backup
    Feb 8 16:47:21 Steve-Smiths-MacBook com.apple.backupd[1287]: Network destination already mounted at: /Volumes/Time Capsule
    Feb 8 16:47:23 Steve-Smiths-MacBook com.apple.backupd[1287]: Failed to attach to image: /Volumes/Time Capsule/Steve Smith's MacBook.sparsebundle, DIHLDiskImageAttach returned: 35

  • Question about host and local machine and applet

    hello,
    I have a question. I'm writing an applet program that will write a specific file in its working directory in the host machine.
    1)How can i get the working directory of the applet?
    2)How should i specify the path for writing on a file in the applet directory?

    >
    Can an applet write a text file to its own path in the server(or in a folder in its own path)>No. Or at least, not without help from the server.

  • Problem in creating file on local machine

    Hello everbody...
    i m using forms and reports 6i
    i m creating file out_file := Text_IO.Fopen(:filepath || '.csv', 'a'); using this command in before_report trigger. And closing file in after_report trigger.
    here filepath is = \\IP address of local machine\d$\file name
    now problem is that if i m giving IP address of local machine then its giving error ORA-39856.
    And if i m giving IP address of server machine then it is going to create file on server machine from local machine.
    Why its not creating file on client machine?
    i think there r problems related to rights
    can anyone has solution then please tell me

    yes in report there is report output and with that it also creating file in coding by
    out_file := Text_IO.Fopen(:filepath || '.csv', 'w');
    this open stmt is written in before report trigger
    Below lines r written for each row thats fetch by report main query.
    str := rpad(:apt_bil_no,8,' ') || ',' || lpad(:apt_bil_dt,10,' ') || ',"' ||
                   rpad(:supl_name,30,' ') || '",' || rpad(:supl_tin_no,11,' ') || ',' ||
                   rpad(:aptvat_hsn_no,10,' ') || ',' ||
                   lpad(ltrim(to_char((apt_amt2 - apt_vat_amt2),'999999990.00')),12,' ') || ',' ||
                   lpad(apt_vat_amt2,12,' ') || ',' ||
                   lpad(ltrim(to_char(apt_amt2,'999999990.00')),12,' ');
    Text_IO.Put(out_file, str);
    Text_IO.New_Line(out_file);
    file is closing in after report trigger.
    text_io.fclose(out_file);
    now i wants to create this file on local machine.
    yes using report server and its started window service.
    can u have any idea?

  • Steps to setup and configure Node Manager on local and remote machine

    Hello,
    I am using WLS 10.3 on Windows.
    I have two machines, One cluster and two managed servers (one on each machine) created under a domain. I have used configuration wizard to create the domain.
    I have gone through documents on Node Manager and found what to configure. But I have not found when to configure. In other words I want to know what is the sequence of steps if I have to set Node Manager on my local machine (in which domain exists) and on remote machine.
    Please let me know the sequence of steps I need to follow to set and configure the Node Manager on local and remote machine. I want to use Java Node Manager (not the Script node manager).
    Thanks,
    Sanjay

    Hello,
    Ok, let me tell you what I have done till now.
    1) Installed WebLogic 10.3 on machine A (local machine, on which I have created domain and my Admin Server is running. Also Managed Server 1 is created on this machine).
    2) Installed WebLogic 10.3 on machine B (remote machine, on which Managed Server 2 will be created).
    3) On machine A I used the configuration wizard and create a domain. While creating the domain I did the following:
    i) Created two managed servers.
    ii) Created a cluster
    iii) Assigned Servers to cluster.
    iv) Created two machines.
    v) Assigned servers to machines (Admin Server and MS_1 to machine A and MS_2 to machine B).
    4) Sarted Admin Server.
    5) On the Admin Console I made some configurations for the Node Manager on Machines -> Machine A -> Node Manager. Assigned the values:
    i) Type (SSL)
    ii) Listen Address (IP_Address of machine A)
    iii) Listen Port (5556)
    6) Similarly did for Machine B.
    So till now phsically the managed server (MS_2) directory and configuration is not there on Machine B (its only configured on machine A because I created the domain on Machine A).
    Now I want install/configure/setup NM on both the machines. Start my both the managed servers using Admin Console (which will use the node managers).
    What are the sequence of steps I need to follow my task?
    Any help and suggestions are welcome with warm regards.
    Thanks,
    Sanjay

  • Messaging between Mac and Windows machines

    Hi everyone
    I am an experienced Windows developer but new to mac development and specially network programming.
    I have an idea in my mind for a program that needs to somehow make a communication possible between a Mac machine and a Windows machine.
    In particular I want to develop two applications:
    1- Application called "M": An app written in XCode that run on the Mac machine.
    2- Application called "W": An app written in let's say Visual Studio that run on Windows machine.
    All I want for this two applications is to talk to each other for example through messaging. For example consider this simple scenario:
    1- "M" running on Mac send a message to "W" running on Windows saying "PERFORM TASK A".
    2-  "W" performs the task
    3- ""W" send message to "W" saying "TASK A DONE"
    Both Mac machine and Windows machine are on the same network.
    Also please note that I am not concerned bout security of communication at this time.
    My problem is I don't know where to start from?
    Any suggestion for where to start from, technologies, sample codes, etc that help me get started is highly appreciated.
    Thanks,
    KylieM

    hi Ralph.. thanks for helping out with this... we got ichat on our side and the AIM on the pc side but it didn't quite work out yet. We were wondering if the pc being on a dial up is a problem? the sound quality was horrid coming from the pc to us but apparently pretty clear going from us... we also wondered if it was a microphone problem but ran out of time for testing.
    If it is the dial up being the issue does anyone know of any solutions or are we out of luck?

  • WIndows 7 and Server2008 machines will not remember network discovery preferences, requires setting every start up or wake up.

    hello
    I wondered if anybody here could be so kind as to help me solve this situation
    i have two Windows 7 machines and Server2008 machines will not remember network discovery preferences,
    i am running software on the windows server machine that collects data and serves information to two windows 7 machines, and network discovery is required for this purpose
    these machines are configured in a local stand alone network configured as a workgroup the only other items on network are none PC based equipment that the server happily communicates with and reads data from
    once the network discovery is set for the network the system runs as expected but on every start-up (or wake up) the network discovery is lost and need to be re allowed. this is the case in both windows server 20008 r2 and windows 7
    how do i make these preferences permanent. so that it will restart and re establish communication its self without intervention
    am i missing a setting or if not  is there a way i can script the the selection of preference on each start(/wake)up.
    the final user need to be able to turn system on/restart and use it with out having to have any IT/networking knowledge to get system running.
    thank you for taking the time to read my query

    You can use group policy to enable network discovery so that it is always configured
    1. In the Group Policy editor on a Win7 or Windows Server 2008 R2 computer, open the GPO that you want
    to use in the Group Policy Editor.
    2. Expand "Computer Configuration", "Windows Settings", "Security Settings", "Windows Firewall with Advanced
    Security", and then "Windows Firewall with Advanced Security - {policy you have open}".
    3 Right-click "Inbound Rules", and then click "New Rule".
    4 In the Rule Wizard, on the Rule Type page, select"Predefined", and then select Network Discovery from
    the list.  Click Next.
    5 On the Predefined Rules page, ensure that the check box is on each rule that is part of the Network
    Discovery group, and then click Next.
    6 On the Action page, select "Allow the Connection", and then click Finish.

  • Get ip address of client machine and server

    Respected experts,
    I want to get ip address of the client machin and server machine.
    Which method should i use for getting this.

    drvijayy2k2 wrote:
    hi
    i am not sure
    but try request / servletrequest -> getRemoteHost() and getLocalHost()There isn't any getLocalHost() method for HTTPServletRequest. And in anycase, the getXXXHost() methods would return the hostname. You'll only get an IP address if the name cannot be resolved.
    @OP:
    [getRemoteAddr()|http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#getRemoteAddr()] - be warned that this may be the IP address of the last proxy in the chain
    [getLocalAddr()|http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#getLocalAddr()] - this is the address of the interface that the request came in on, so for a server with multiple NICs, you will only be getting one possible IP address.

Maybe you are looking for

  • Problems with old Libraries in iPhoto '09 Version 8.0.4

    A couple months ago I upgraded to iLife '09 and few days ago I software updated iPhoto to version 8.0.4. I have numerous iPhoto libraries created with an older version of iPhoto (not sure which) because I have alway found iPhoto to become balky and b

  • Set_block_property with Like and Between and function

    Hellow All I need to find out record where Column Name between :Text_item1 and :Text_item2 with Default_where For example Manu guide me to find out record with SET_BLOCK_PROPERTY('Block53', DEFAULT_WHERE, 'name like ''' || :block70.text || '%'''); go

  • What is this cable?

    My iPod video came with a black cable with a yellow end and a black end...it doesn't work with my tv so wth is it for?

  • Glitchy Slices with WordPress Design

    I was wondering if one or more of you experts can help me out. I'm working with this template from Template Monsters Template Link I made some rollover images in Fireworks, that looks pretty good on a standard export. (quick sample) However when I en

  • Update is damaged

    i can't update my flash player because it says  " Install Adobe flash player" is damaged and can't be opened. You should eject the disk image.