RRA / RDL issue

Hi,
I have a question regarding the following scenario:
I have created roles on the consumer (EP 7.0) side based on the usage of Remote Delta Link. Everything is ok.
But the application running on the producer side needs additional UME actions assigned to the users. So I created an according role on the producer side containg these actions.
Is there any way to assign the UME role to the users on the consumer? What's the best way to solve this? I don't really want to assign pcd-roles on the consumer and ume-roles on the producer to the users...
Any help would be appreciated.
Regards, Bernd

Hi,
Just a thought : maybe you could create a group and assign both roles to this group. Then you would assign the group to the users instead of the roles.
Regards,
Pierre

Similar Messages

  • Windows 2008 R2 RRAS VPN Issue

    Hello,
        I have a Windows 2008 R2 server configured with RRAS.  I have several persistent connections set up to do remote data backups.  After a while, the connections get disconnected and if I try to reconnect, I get an error message
    that states:
    An error occurred during connection of the interface.  A connection to the remote computer could not be established.  You might need to change the network settings for this connection.
    If I restart the RRAS service, then I can reconnect them all.  And they work fine until they get disconnected again.  The server is a standalone server, not part of a domain or anything.
    I previously had these connections set up on a 2003 server, and they worked pretty flawlessly.  It's only since I changed to this new server that these issues started.  Anyone know what the issue could be?
    Thanks.

    Is that Event ID 20167?
    Is there a DHCP Relay Agent configured?
    I assume the DHCP server has enough free IPs to hand out to RRAS when needed. RRAS grabs a block of 10 IPs from DHCP at a time to use for connections.
    How long is the lease?
    References:
    Event ID 20167 — RRAS IPCP Negotiation - Resolution
    http://technet.microsoft.com/en-us/library/dd315994(v=ws.10).aspx
    Not enough IPs in DHCP Scope:
    http://www.eventid.net/display.asp?eventid=20167&eventno=5288&source=RemoteAccess&phase=1
    Routing and Remote Access VPN DHCP error - DHCP lease too short
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/58e62df7-ce40-4814-b522-6785e230c869/routing-and-remote-access-vpn-dhcp-error?forum=winserver8gen
    Ace Fekay
    MVP, MCT, MCSE 2012, MCITP EA & MCTS Windows 2008/R2, Exchange 2013, 2010 EA & 2007, MCSE & MCSA 2003/2000, MCSA Messaging 2003
    Microsoft Certified Trainer
    Microsoft MVP - Directory Services
    Complete List of Technical Blogs: http://www.delawarecountycomputerconsulting.com/technicalblogs.php
    This posting is provided AS-IS with no warranties or guarantees and confers no rights.

  • Server 2012 R2 RRAS NAT VPN connectivity issues

    Hello all,
    I'm having trouble making IKEv2 connections to my VPN server from the Internet after changing my home lab network infrastructure to use Server 2012 R2 RRAS NAT routing. Despite all of the appearances of a proper configuration, it appears that NAT-T is not
    working properly.
    Let me preface my questions/issues with some critical infrastructure disclosures/explanations to help troubleshoot this issue:
    1. This is a home lab environment with no impact to corporate production systems in any way. All information garnered from help in this session is understood to be as-is.
    2. The entire environment is on Server 2012 R2 Hyper-V. I’ve configured trunking on all of the layer 2 (Cisco Catalyst switch) etherchannels, and I’ve configured trunking on the Hyper-V vSwitches. I have no issue with internal routing or NAT or with attaching
    to VPN from an internal VLAN, which indicates that routing (Layer 3) is not at issue here since everything goes where it should.
    3. The NAT server and the VPN server are two separate Windows Server 2012 R2 Std. Hyper-V VMs. The NAT server has 1 NAT uplink to/from my ISP and 5 router interfaces (NICs with no gateways specified). I have a static IP, so it’s not an IP changing anywhere.
    I have all of the port forwarding on the public NAT interface configured properly. Email, web, and application access work fine from out-to-in. The VPN server has 2 NICs: one on a VPN VLAN and the other on an internal VLAN.
    4. I ran Netmon from my corporate office and saw that IKEv2 traffic to my host over UDP 500 was successful (I got a response back), but the connection to UDP 4500 was attempted 3 times and then fails. Since UDP 4500 is the NAT-T port, I’m thinking this is
    where the fault is occurring. I also ran Netmon from the NAT router itself and found that traffic was flowing from the Internet to the VPN server up the stack to Layer 3.
    5. As a test, I turned off Windows firewall on both the VPN server and the NAT server. This made no difference, so firewall is not at play here.
    6. My certificates are configured properly with my external VPN address and appropriate SANs pointing to the public IP address. These same certificates worked without issue prior to the migration to Server 2012 R2 RRAS as my NAT router.
    The actual error I'm receiving is Error 809 which indicates a problem with the connectivity to the VPN server, presumably through the NAT router. Prior to the change to virtual routing, I was using a Linksys E3000 with L2TP/PPTP passthrough enabled and had
    no issues connecting to my VPN server remotely.
    Some questions I have specifically regarding Server 2012 R2 RRAS and NAT:
    1. Is NAT-T "turned on" by default? Are there any settings required through netsh or elsewhere that I might have overlooked to enable NAT Traversal?
    2. How can I test if NAT-T is working outside of VPN testing?
    3. Is it Microsoft's recommendation/requirement that VPN and NAT be collocated on the same server? I noticed in the NAT forwarding rules that the pre-defined L2TP forwarder says "L2TP on this server." Does that indicate that L2TP can't pass beyond
    that server? What are the security implications for running VPN from the router?
    Any help would be appreciated. I've been troubleshooting this issue for 2 weeks and cannot seem to find any documentation or help on this issue. I'm hoping if others have similar issues, this post will help point them in the right direction. I have netmon
    captures to assist with troubleshooting if it comes to that. I'm certain this is NAT-T at this point, but I just can't prove it beyond a shadow of a doubt, and I have customers who have asked about using Microsoft RRAS for routing. I can't, in good conscience,
    recommend it if NAT-T is problematic since most companies want some sort of VPN solution for their environment.
    Respectfully yours,
    Ron Arestia

    Hi Ron,
    Please try to create and configure the AssumeUDPEncapsulationContextOnSendRule registry value.
    For detailed information, please refer to the link below:
    http://support.microsoft.com/kb/926179
    Best Regards.
    Steven Lee Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Reporting Service issue: Unable to open reports (.rdl files) from SharePoint 2013

    Hi All,
    I am facing issue while accessing reports from SharePoint sites and below is the error message.
    Report Server has encountered a SharePoint error. ---> Microsoft.ReportingServices.Diagnostics.Utilities.SharePointException: Report Server has encountered a SharePoint error. ---> Microsoft.SharePoint.SPException: Virus Found:  ---> System.Exception:
    For more information about this error navigate to the report server on the local server machine, or enable remote errors (Fault Detail is equal to Microsoft.ReportingServices.ServiceContract.RsExceptionInfo).
    Error message shows "Virus Found", so we have disabled the antivirus scanning (Symantec Protection for real time scanning) and it started working.
    We have tried to add ".rdl" and ".rsds" files in the exception, but didn't work. Noticed that issue is happening when we enabled the option "Scan the item when download".
    Please suggest how we can rectify the issue without disabling any Symantec settings.
    Thanks,
    Anoop

    Hi Anoop,
    Not sure this option "Scan the item when download" of Symantec will do what action, you may want to get more info from symantec, it seems you have posted in symantec official forum
    here, I would recommend to keep an eye on updates there.
    Thanks
    Daniel Yang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • BIDS - report file permissions issue on master, yet im a sysadmin when running the RDL from SSMS

    Im building a report file and when I preview the report, it fails because my account cant access the master database.
    My dataset is just calling xp_readerrorlog, which is in master.
    I can call it just fine in a query window, but not from BIDS, using a connection with windows security.
    I can however, preview the dataset ok, but when I open the RDL file from SSMS under custom reports, I get an login error.
    However, if I preview the report...it fails and says the login failed, login failed for user mydomain\myuser ....

    Hi,
    It seems a permissions related issue, try the following methods to troubleshoot the issue:
    1. Use this form of giving the user exec rights on extended stored procedure.
    create user usename for login login
    go
    grant exec on xp_readerrorlog to username
    Refer to:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/ffd3a32b-7e17-4f15-9fb7-fa744611ac7e/minimum-persssion-required-to-execute-spreaderrorlog-system-stored-procedure
    2. Run BIDS as administrator and see how it works.
    3. Also, check the SQL event log (SQL Server Management Studio > Management > SQL Server Logs) and post the full error message for the failed login.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Federated Portal Network RRA Issues (SP15)

    Hello,
    We are attempting to implement a FPN consiting of our BI Portal as a Producer, CRM Portal as a Producer, and our Enterprise Portal as the Consumer.  The goal is to set up Remote Role Assignment.
    All three portals are at SP level 15, and thus for RRA the Producers require that  UME actions "Remote_Producer_Read_Access" and "Remote_Producer_Write_Access" be applied to the a role and assigned to user "pcd_service".
    Here is my problem:  Although both producer portals are at SP level 15 I am unable to find the required UME actions.  I can find them on our consumer portal but this is of course no use.
    Is there some action I need to take to add these UME actions or is there some other issue I am missing?  Any ideas would be appreciated and thanks in advance!

    Hi Kiran,
    Thank you for taking the time to post.
    I have tried from that link and also Identity Management while logged into the portal itself with identical results.
    Is it possible the UME engine was not fully updated when SP15 was applied to these two portals?
    Kind regards,
    Luke

  • RRAS issue - only one client can connect?

    Hello, I have set up my server 2012 standard server and set it up as a DC and RRAS server, the VPN works perfectly but only one user can use it, the second user will always get error 800. there are enough IP slots in the LAN and it is correctly assigning
    a new IP address to each new user that connects, but only one can connect at a time without error - I have searched around and couldnt find anything conclusive - is this a licensing or configuration issue?
    Thank you very much for your time and consideration,
    Larry

    Hi Larry,
    As far as I know, it’s not recommended to install RRAS server role on DC, since it would make the DC multi-homed.
    I suggest you install RRAS server role on another server.
    Here is a related blog below for you:
    Multihomed DCs with DNS, RRAS, and/or PPPoE adapters
    http://blogs.msmvps.com/acefekay/2009/08/17/multihomed-dcs-with-dns-rras-and-or-pppoe-adapters/
    If there is any RRAS/VPN related query, please refer to Network Infrastructure Servers forum below to get more efficient support:
    https://social.technet.microsoft.com/Forums/en-US/home?forum=winserverNIS
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • RRAS/NAT connection issues

    Hi everyone, I'm running into a weird problem with RRAS/NAT on my Windows Server 2012 machine for my home lab. In my lab I have a private 10.0.0.x network that are hosted VMs. My hypervisor is running RRAS and NAT and is configured with one physical
    nic and 1 virtual Internal nic. The physical nic connects to my router that goes to the internet(192.168.1.0/24 subnet) and the internal nic connects to my private network.
    In the RRAS management tool I use a custom config and select only NAT and LAN Routing. Now at this point NAT is not configured since I haven't assigned the internal and external interfaces. So from here I'm able to ping the 10.0.0.x machines
    from the 192.168.1.x network and vice versa. After I configure NAT with the external and internal interfaces, I am no longer to ping the 10.0.0.x machines from the 192.168.1.x subnet. However, I can successfully ping from the 10.0.0.x machines to the 192.168.1.x
    network.
    I've also setup a rule on the internet router to route all 10.0.0.0 traffic to the physical nic of the hypervisor. Here's my current layout.
    Internet
    |
    Router 192.168.1.1
    |
    Hypervisor - Physical nic 192.168.1.100 DG 192.168.1.1
                    - Virtual Internal nic 10.0.0.1 No DG assigned
    |
     VM Client - 10.0.0.4 DG 10.0.0.1 
    Any ideas as to why I can ping both ways when NAT is disabled but not when it is enabled? I'd like to keep NAT on that way my clients can connect to the internet for updates, but also accessible for remote login from the 192.168 subnet.

    <snipped>
    .... After I configure NAT with the external and internal interfaces, I am no longer to ping the 10.0.0.x machines from the 192.168.1.x subnet. However, I can successfully ping from the 10.0.0.x machines to the 192.168.1.x network.
    I've also setup a rule on the internet router to route all 10.0.0.0 traffic to the physical nic of the hypervisor. Here's my current layout.
    Internet
    |
    Router 192.168.1.1
    |
    Hypervisor - Physical nic 192.168.1.100 DG 192.168.1.1
                    - Virtual Internal nic 10.0.0.1 No DG assigned
    |
     VM Client - 10.0.0.4 DG 10.0.0.1 
    Any ideas as to why I can ping both ways when NAT is disabled but not when it is enabled? I'd like to keep NAT on that way my clients can connect to the internet for updates, but also accessible for remote login from the 192.168 subnet.
    Unless I'm totally misunderstanding the problem here, and I apologize if I do, but with NAT, any internal machine behind a NAT can and will successfully be able to ping anything external (referred to outbound traffic) that is as long as the firewall
    rules allow ICMP echo replies for established sessions by an internal host.
    However, anything external, including a directly connected subnet, such as your 192.168.1.0/24, WILL NOT be able to do ping anything internal (referred to Inbound traffic). This is because the outside interface of a NAT is that one and only one IP. NAT will
    then translate inbound traffic...
    This is default and expected behavior.
    It's the same as if I had setup a Cisco ASA firewall that is using NAT for my internal company network. It will not allow inbound access from anything unless I create port translations. I wouldn't want anything to do that anyway.
    As for no NAT, then if you have a machine on the outside subnet directly connected to the router, (such as your server), then the router will route that traffic directly to the internal subnet because it knows the route, since it's directly connected.
    I hope I understood your question and concerns. If not, please elaborate...
    Ace Fekay
    MVP, MCT, MCITP/EA, MCTS Windows 2008/R2 & Exchange 2007, Exchange 2010 EA, MCSE & MCSA 2003/2000, MCSA Messaging 2003
    Microsoft Certified Trainer
    Microsoft MVP - Directory Services
    Technical Blogs & Videos: http://www.delawarecountycomputerconsulting.com/
    This post is provided AS-IS with no warranties or guarantees and confers no rights.

  • Issues with XML Content and Actions to import RRA in FPN (EP7 SPS13)

    Hi,
    I am having trouble using the import functionality of XML Content and Actions to transport Remote Role Assignments between Consumer Portals. Whenever I want to upload an XML file containing RRA for Roles and Groups that were already assigned to eachother, the import fails and nothing is updated. The error I get:
    UMException. Data could not commit to Role: gp:/[full ID of portal role]
    Anyone with experience in how to use this?
    Kind regards,
    Christian Staalby

    hi,
    @Maksim :
    When user launch an URL like http://myserver:port/irj/portal/ import/*filename=C:\test.xml, he is requested to provide username and password; as this link is a shortcut for the upload xml page, there is a check of authorization and only portal admin that have authorization and permission on this page/iview will be able to upload xml file through the URL. Hope this clarify.
    @Kumar :
    thank you for your answer. What a pity to not be able to pass parameter through standard portal page/iview particularly knowing that we can pass paramater through many kinds of iviews (transactional iview, url iview, VC iview...). I explored some option on file com.sap.portal.ivs.init.par but this was unsuccessful. However, thanks to this [link bellow|http://wiki.sdn.sap.com/wiki/display/Snippets/ComponenttouploadXMLfilewithPCD+objects], I was able to upload through URL the XML file.
    The problem is that I can upload only XML file that are stored in the server not in the local user computer. My requirement is to be able to upload local XML file stored on user's computer.
    If someone could provide and idea/solution, I would be very grateful.
    Cheers

  • SSTP VPN fails with Error 0x80092013 when certificate is issued by an Enterprise CA

    I have spent several days trying to configure an SSTP VPN in an environment with a 2008R2 Enterprise CA server without much luck. I have been using the example found at   http://technet.microsoft.com/en-us/library/cc731352(v=ws.10).aspx which
    works very well as long as you configure the CA Extensions tab with an http CRL Distribution point that is included in the CRLs and CDP extension of issued certificates and is available to the client prior to VPN connection.
    Basically my lab environment is as follows:
    Separate 2008R2 domain controller, Single 2008R2 Enterprise CA / RRAS server with one nic. I know the instructions that I mentioned above use an RRAS server with 2 nics but I don't want my RRAS server serving as a router. I have an external hardware firewall
    that port forwards port 443 to my single nic in my RRAS server and this entire configuration works fine as long as I am using a standard CA configuration. The RRAS was configured using the custom option and only VPN was chosen. Since my RRAS server is behind
    a NAT router, the dns name my external client uses to connect is different than the internal name of my RRAS server.
    In the example above, a Windows 2008R2 CA server is configured as a standalone non-enterprise root CA. As long as I stick with a standard CA, I have no problem and everything works.
    My problem is that if I configure my Windows Server 2008R2 Enterprise server as an Enterprise Root CA, My Windows 7 client always gets an "Error 0x80092013 The revocation function was unable to check revocation because the revocation server was offline."
    I'm not certain, but I think the problem is with the way that I request the certificate for my RRAS server. When I configure a standalone standard root CA and use the web enrollment page and use an Advanced Certificate Request, I get a page that I can use
    to fill out the external dns name that I use to connect to SSTP, choose a Server Authentication Certificate,  choose to mark keys as exportable and submit my request. Once I install this key in the Certificates (local computer) / Personal / Certificates
    store, everything works and my client can connect as long as I have installed the root CA certificate on my client.
    When I install my CA as an Enterprise Root CA server, everything changes. I no longer have the same options to install a custom certificate. Instead of getting the same page as I do with a standard CA, I get my choice of Certificate Templates. Prior to this,
    I have duplicated the Computer template in the CA authority and configured the subject name to "supply in request" and configured my CA to issue it. I have tried issuing my RRAS SSTP certificate using the web enrollment and I have also tried using the certificates
    plugins in mmc to request custom certificates and tried using an alternative subject name, filling out the DNS option with my external dns name.
    When it is all said and done, I end up with an RRAS SSTP certificate that has CRL Distribution Points defined as URL=http://www.mywebsite/CertEnroll/myCA.crl and it is available to my client or anyone. I have compared the certificate issued by an Enterprise
    CA vs the Standard CA and I find little difference in the two. I also know that I can reach this RRAS SSTP certificate from my client by going to  https://myexternaladdress.mydomain.com/sra_{BA195980-CD49-458b-9E23-C84EE0ADCD75}/and
    I can view the padlock in IE and view my internal RRAS certificate. The CRL Distribution point looks no different when I have a standard vs an Enterprise CA but my client always fails with the Error 0x80092013 when I have issued the RRAS SSTP certificate
    with the Enterprise CA.
    I have probably re-setup this lab about 20 times and am getting very familiar with getting it set up quickly and working with the standard CA but I want to use an Enterprise CA environment.
    What am I missing? How can I make this work with an Enterprise CA? How can I troubleshoot this?
    Thanks,
    Rod
    Rod Miller

    Thanks for  your reply. I did read the article and addressed that issue in the first part of my previous post. I don't think that the website where I am hosting my CRL has directory browsing permissions or that I have the ability to set them but the
    point of my question was everything works using that same public website when I use a standard CA to create my certificate but does NOT work when I create the certificate using an Enterprise CA.
    Rod
    Rod Miller

  • Routing Issue with 2 Nics on Windows Server 2008 R2

    Good Day
    My issue is I needed to set up port forwarding for a web server to communicate with our hotels management server to check availability.
    Initially the server has a single Nic configured in the 172.26.1.0 /24 network  , Its default gateway the Switch vlan interface 172.26.1.1
    We have many vlans for all the systems in the hotel and the server also needs to communicate with 3 other servers on different subnets which it does just fine.
    I now added an additional adsl line with a managed router which has an interface of 192.168.10.1 /24 , My servers second NIC has the IP address 192.168.10.2 with its gateway being the 192.168.10.1
    This 192.168.10.0 network is in a L2 Vlan and the rest of the network does not know it exists. It was working fine then just stopped asfter i added a static route to the server , which i did with RRas... I did this as the server could not communicate with
    just one of the servers..
    If i disable the 172.26.1.0 NIC the port forwarding works but then obviously the rest of the network goes down.. I know its a routing issue but am lost
    please help

    Hello,
    using multiple default gateways is not a good idea.
    See details in http://support.microsoft.com/kb/159168/en-us
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • Pagination not working when RDL report is integrated with MVC web application using ascx control reportviewer

    I have the below code in my User control ASCX page.
    <form id="form1" runat="server">
        <asp:ScriptManager runat="server"></asp:ScriptManager>
        <table>
    <tr>
                <td>
                    <rsweb:ReportViewer ID="rvDracas" runat="server" Height="100%" Width="100%" ProcessingMode="Local"
                        DocumentMapCollapsed="true" SizeToReportContent="True" PromptAreaCollapsed="True"
                        ShowCredentialPrompts="false" ShowBackButton="False" ShowPrintButton="true"
                        AsyncRendering="false" ShowFindControls="false" ToolBarItemBorderStyle="None" ShowToolBar="true"
                        ShowReportBody="True" ShowPromptAreaButton="True" ShowRefreshButton="True" ShowZoomControl="False"
                        ShowParameterPrompts="False"  ViewStateMode="Enabled" OnLoad="rvDracas_Load" onclick="window.App.submitting
    = true;" style="margin-bottom: 0px" OnPageNavigation="rvDracas_Load"  >
                    </rsweb:ReportViewer>
                </td>
            </tr>
        </table>
    </form>
    In page load I am filling the RDL with the data source.
    When I click on Page navigation control it is throwing me the below error.
    "Unhandled exception at line 885, column 13
    0x800a139e - JavaScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.
    Please help...

    Hello,
    Welcome to MSDN forum.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because you are doing ASP.NET MVC app development, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Best 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.

  • Issue with SSRS Loading Report from Definition From Assembly

    I am using SharePoint 2010. I created web-part where there is report viewer control. On the page load of the control. I am writing below codes to load report from definition. Web part is not giving any error but also not lading report. I tried to make physical
    report file from my stream and I found that report is correct.
    But I don't know what is missing.
    protected void Page_Load(object sender, EventArgs e)
    if (!IsPostBack)
    Assembly assembly = Assembly.Load("Reports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f51c855eec632536");
    Stream stream = assembly.GetManifestResourceStream("Reports.Reports.rdlc");
    MemoryStream rdl = new MemoryStream();
    CopyTo(stream, rdl);
    rptInspectorPlan.Reset();
    rptInspectorPlan.LocalReport.LoadReportDefinition(rdl);
    rptInspectorPlan.LocalReport.DataSources.Clear();
    rptInspectorPlan.LocalReport.DataSources.Add(new ReportDataSource("MyData", finalData(getInspectionPlan())));
    rptInspectorPlan.LocalReport.Refresh();
    protected DataTable getInspectionPlan()
    DataTable dt = new DataTable();
    DataTable dtCurrentUser = getCurrentUser();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("InspectionPlan");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='Title'/><Value Type='Text'>" + dtCurrentUser.Rows[0]["ID"].ToString() + "</Value></Eq></Where>";//getCurrentUserID()
    oQuery.Query = query;
    dt = list.GetItems(oQuery).GetDataTable();
    return dt;
    protected string getMarketSurveillanceURL()
    string URL = ConfigurationManager.AppSettings["MarketSurveillanceURL"].ToString();
    return URL;
    protected string getMainSiteURL()
    string URL = ConfigurationManager.AppSettings["MainSiteURL"].ToString();
    return URL;
    protected DataTable getCurrentUser()
    SPUser user = SPContext.Current.Web.CurrentUser;
    DataTable currentUser = new DataTable();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("Inspector");
    SPQuery oQuery = new SPQuery();
    string query = "<Query><Where><Eq><FieldRef Name='LoginID'/><Value Type='Text'>" + user.LoginName + "</Value></Eq></Where></Query>";
    oQuery.ViewFields = "<FieldRef Name='ID'/><FieldRef Name='Title'/>";
    oQuery.Query = query;
    currentUser = list.GetItems(oQuery).GetDataTable();
    return currentUser;
    protected DataTable finalData(DataTable inspectionPlan)
    DataTable dt = inspectionPlan;
    DataTable dtCurrentUser = getCurrentUser();
    dt.Columns.Add("InspectorName");
    dt.Columns.Add("ProductName");
    dt.Columns.Add("CategoryName");
    dt.Columns.Add("InspectionTypeName");
    foreach (DataRow dr in dt.Rows)
    if (dr["Title"].ToString() == dtCurrentUser.Rows[0]["ID"].ToString()) dr["InspectorName"] = dtCurrentUser.Rows[0]["Title"].ToString();
    dr["ProductName"] = getProductName(dr["ProductID"].ToString());
    dr["CategoryName"] = getCategoryName(dr["ProductID"].ToString());
    switch (dr["InspectionType"].ToString())
    case "0":
    dr["InspectionTypeName"] = "Periodic";
    break;
    case "1":
    dr["InspectionTypeName"] = "ComplainFollowup";
    break;
    dt.AcceptChanges();
    return dt;
    protected string getProductName(string id)
    string productName = "";
    DataTable dt = new DataTable();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("Product");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='ID'/><Value Type='Text'>" + id + "</Value></Eq></Where>";//getCurrentUserID()
    oQuery.ViewFields = "<FieldRef Name='ProductEN'/><FieldRef Name='ProductAr'/>";
    oQuery.Query = query;
    dt = list.GetItems(oQuery).GetDataTable();
    foreach (DataRow dr in dt.Rows)
    productName = dr["ProductEN"].ToString();
    return productName;
    protected string getCategoryName(string productID)
    string categoryName = "", CategoryID = "";
    DataTable dtCategory = new DataTable();
    DataTable dtProduct = new DataTable();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("Product");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='ID'/><Value Type='Counter'>" + productID + "</Value></Eq></Where>";
    oQuery.ViewFields = "<FieldRef Name='CategoryID'/>";
    oQuery.Query = query;
    dtProduct = list.GetItems(oQuery).GetDataTable();
    foreach (DataRow dr in dtProduct.Rows)
    CategoryID = dr["CategoryID"].ToString();
    using (SPSite site = new SPSite(getMainSiteURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("SAS_Categories");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='ID'/><Value Type='Text'>" + CategoryID + "</Value></Eq></Where>";
    oQuery.ViewFields = "<FieldRef Name='Category_Title_EN'/><FieldRef Name='Category_Title_Ar'/>";
    oQuery.Query = query;
    dtCategory = list.GetItems(oQuery).GetDataTable();
    foreach (DataRow dr in dtCategory.Rows)
    categoryName = dr["Category_Title_EN"].ToString();
    return categoryName;
    public static void CopyTo(Stream input, MemoryStream output)
    byte[] buffer = new byte[16 * 1024]; // Fairly arbitrary size
    int bytesRead;
    while ((bytesRead = input.Read(buffer, 0, buffer.Length)) > 0)
    output.Write(buffer, 0, bytesRead);

    Have you found a solution to this issue? I am searching for the same.

  • Exchange 2013 Mail Receiving Issues

    Hi everybody,
    Yesterday I configured a new DC and Exchange on Hyper-V (Server 2012 and Exchange 2013)
    All functions and rolls are configured and installed but i am having issues receiving external e-mails.
    Almost all of the external mails are being deliverd a half hour to a hour after being sent.
    To start of on the first level.
    I got a Siemens Fiber modem with an external address connected to the WAN of my Draytek 2995 router.
    Alle the needed ports are forwarded to the Draytek (80,443,25,1723).
    The Draytek DHCP function is set to off.
    192.168.168.2  (DC) -> 80 (HTTP IIS)
    192.168.168.2 (DC) -> 1723 (RRAS)
    192.168.168.3 (Exchange) -> 25 (SMTP)
    192.168.168.3 (Exchange) -> 443 (SSL)
    My Draytek router is connected through LAN1 to a HP switch (unmanaged).
    The physical server has 3 NIC's, all of these are connected to the HP Switch
    I Disabled Hyper-V Queuing on the NIC's because this causes an issue with slow network connections.
    The network has been configured as following.
    I configured the Server 2012 R2 on the hardware(physical server) with only the Hyper-V roll.
    NIC1is setup for the physical server,
    IP Address: 192.168.168.1
    Subnet: 255.255.255.0
    Gateway: 192.168.168.254 (Draytek address)
    DNS: 192.168.168.254 (Draytek address)
    The Server software firewall has been set to a private network through the local security policy.
    I have setup 2 VM's through the Hyper-V roll.
    The first VM is the Server 2012 R2 Domain controller.
    For this VM I created a virtual switch connected to my second NIC(2).
    I unchecked the box where my host can communicate with the NIC(2).
    The DC has been configured as following:
    Hostname: SERVER
    IP Address: 192.168.168.2
    Subnet: 255.255.255.0
    Gateway: 192.168.168.254
    DNS: 127.0.0.1
    I can ping to all the adresses from this server (internal and external).
    The server has been promoted to domain controller with the following rolls.
    ActiveDirectory, Certificate Autohority, DHCP, DNS, RRAS, RDP.
    Alle these rolls have been set and working. (all have been tested)
    DHCP has all options configured (scope, router-192.168.168.254, dns-192.168.168.2)
    A DNS simple and recursive test work fine.
    I did no configuration on the DNS after the DC PROMO.
    So i created users in the AD.
    After that I created a second VM, this one is used for the Exchange.
    I setup a second virtual switch connected to NIC3 and installed Server 2012 R2 with the following config.
    Hostname: SERVER
    IP Address: 192.168.168.3
    Subnet: 255.255.255.0
    Gateway: 192.168.168.254
    DNS: 192.168.168.2 (pointing to the DC)
    I joined this server to the domain, everything is working fine.
    Both servers have internet and network.
    Running portscans on 1723 and 80 all work like a charm.
    No its time to install Exchange.
    I ran all the prerequisits and PowerShell commands (IAcceptLicense. etc.)
    Installed de needed API and filters.
    Installed Frameworks 3.5 on both servers.
    And the Exchange installation was succesfull.
    CU3 is also installed.
    I configured the send connector, accepted domains etc.
    Created all needed certificates (self signed)
    Did a portscan on 433 and 25 and they work.
    All the hosting records are set mail.domain.nl etc. and MX records.
    I created inboxes for the users and was able to connect them to the users in the Active Directory on the DC without any problems.
    Connecting through the internet to OWA works perfect and i can login with users.
    Sending e-mail internally works perfect, the messages are being deliverd in an instant.
    Sending e-mail externally also works perfect, i receive mails in a few seconds on a person email address.
    But when i reply or send e-mail to my new Exchange it can take up to hours to receive the mails!
    I did online SMTP checks and e-mail checks, the all come out like it should.
    One message from MX TOOLBOX on the SMTP:
    SMTP Transaction Time
    8.408 seconds - Not good! on Transaction Time
    I have nog other receive connectors setup, just the standard connectors.
    So i got into the Exchange ECP and under "server" i setup the DNS to listen to 192.168.168.2 (DC).
    I've read that when this is set to all ip addresses it can cause mail delay, but no luck.
    I ran the best practices analyzer and get about 23 errors and 20 warnings.
    A lot of services are unhealt like the "ExchangeTransport).
    I have no idea what is causing the issues and read almost every forum.
    Does anyone have a clue what is going on?
    Did i miss something, is there a misconfiguration?
    Best regards,
    Tim

    The mailserver did not receive any e-mails in this timespan, it was not an issue with the connector to the user mailboxes.
    The internal e-mail also works flawless.
    The entire Exchange server just not received this mail in time.
    I sent an e-mail from my personal accout with the option in my outlook to receive a delivery-reply.
    I got the reply as soon as the mail was deliverd, this took about a half hour to a hour.
    After you asked me about the firewall, i got a hunch..
    It had to be on the incomming connection, so i checked every single firewall on the network and disabled them.
    Still the same problem...
    But there was still one ethernet device that could have a firewall, the internet modem!
    This ATM modem receives multiple external IP's from the ISP, so I figured there was no firewall on this device. (Just like all the cable modems that are deliverd in our area by Ziggo(ISP).
    But I was wrong, there was a firewall enabled on the modem!
    All the ports in the modem had been forwarded but somehow the modem-firewall filtered the traffic,
    creating the issue on the incomming e-mail.
    I disabled the firewall and all the external e-mails are being received in an instant!
    Re-enabled all the software firewalls on the servers and re-enabled the malware filter through powershell, after these steps I did another test, and everything still works like a charm!
    Many thanks for your help Kjartan!

  • Ssrs pagination issue

    This issue is related to pagination in ssrs.I want to handle pagination using stored procedure. I have created below sp and would like to know that how can i set  value for parameter @pageNum. so that every time i change page in report viewer value
    get increase with +1(like 1,2,3,4,5.....).
    create proc [dbo].[Test_paging]
     @pageNum int, --page no
     @pageSize int---how many rows
    as
    ; with test 
    as
    SELECT DISTINCT row_number() over(order by column name),
    List of the columns 
    from table name
    select * from TBL_CMBLY
    WHERE RowNum BETWEEN (@pageNum - 1) * @pageSize + 1
      AND @pageNum * @pageSize
    order by rownum

    Hi Tejaskumar,
    As you may know, per the RDL specification, accessing the current page number from within the report body is not supported in Reporting Services. Using custom code to work around this limitation is also not supported, because it would rely on intrinsic expression
    evaluation order and pagination/rendering order which is not documented.
    One possible workaround is calculating the page number by yourself to display the page number in the report body. Suppose the report has 100 records, and one page has 10 row, then we can refer to the steps below:
    Add another column with the expression like below in the tablix, then hide the column:
    =ceiling(Rownumber("DataSet1") / 10)
    Drag a table right of the current tablix, and delete the tablix header, second and third columns.
    Right-right the Details group to add Page Breaks with the “Between each instance of a group” option.
    Insert the expression below in the textbox:
    =ceiling(Rownumber("DataSet1") / 1)
    Then use the expression below to control the row visibility:
    =iif(ceiling (Rownumber("DataSet1")  / 1)>reportitems!Textbox6.Value,true,false)
    Note that the Textbox6 is the name of the textbox which contains the value: =ceiling(Rownumber("DataSet1") / 10)
    Besides, we can use the expression below to manually add page break with 10 rows for each page in the tablix:
    =ceiling(Rownumber("DataSet1") / 10)
    The following similar thread is for your reference:
    http://social.msdn.microsoft.com/forums/sqlserver/en-US/ab9c18bc-ee37-45a2-a52d-628c12d08b33/ssrspagination-on-report-body
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for