Getting a "Could not find a base address that matches scheme net.tcp"
I've written several WCF services which use HTTP (and its variants). Now I'm trying to learn how to write a WCF service which will use TCP. I'm using Andrew Troelsen's book, "Pro C# 2008 and the .NET 3.5 Platform" as a guide (chapter 25). I've asked questions related to this before on a much more complicated WCF service, so I decided to write a simple WCF service to learn how to do it, rather than work on my more complicated WCF service. Coincidentally I chose the same routine as Troelsen did in his book, although in my case I called the WCF service SimpleAdd.
Anyway, after writing the WCF service, I then wrote the Windows Service to host it. I then installed it, and the installation went fine. When I tried to run the service, the service started but then immediately stopped. I checked the event log and found the following message in it:
"Service cannot be started. System.InvalidOperationException: Could not find a base address that matches scheme net.tcp for the endpoint with binding MetadataExchangeTcpBinding. Registered base address schemes are [http]."
Here's the interface code for my SimpleAdd:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
namespace SimpleAdd
// NOTE: If you change the interface name "IService" here, you must also update the reference to "IService" in App.config.
[ServiceContract]
public interface IService
[OperationContract]
int Add(int FirstNumber, int SecondNumber);
Here's the code for the implementation (I'm leaving out the using statements):
namespace SimpleAdd
// NOTE: If you change the class name "Service" here, you must also update the reference to "Service" in App.config.
public class Service : IService
#region IService Members
int IService.Add(int FirstNumber, int SecondNumber)
return (FirstNumber + SecondNumber);
#endregion
And here's the App.Config file for the service:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation debug="true" />
</system.web>
<!-- When deploying the service library project, the content of the config file must be added to the host's
app.config file. System.Configuration does not support config files for libraries. -->
<system.serviceModel>
<services>
<service behaviorConfiguration="SimpleAdd.ServiceBehavior" name="SimpleAdd.Service">
<clear />
<endpoint binding="wsHttpBinding" contract="SimpleAdd.IService"
listenUriMode="Explicit">
<identity>
<dns value="localhost" />
<certificateReference storeName="My" storeLocation="LocalMachine"
x509FindType="FindBySubjectDistinguishedName" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"
listenUriMode="Explicit">
<identity>
<!--
<certificateReference storeName="My" storeLocation="LocalMachine"
x509FindType="FindBySubjectDistinguishedName" />
-->
</identity>
</endpoint>
<endpoint address="net.tcp://localhost/SimpleAdd/" binding="netTcpBinding"
bindingConfiguration="" contract="SimpleAdd.IService" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/SimpleAdd/Service/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="SimpleAdd.ServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
I don't think it will matter much, because I believe the problem probably lies in the App.config file for the Windows service, but just in case, here's the code for the AddWinService (without the using statements):
namespace WindowsAddService
public partial class AddWinService : ServiceBase
//A member variable of type ServiceHost. (I'm using the "Pro C# 2008" book as reference for this.)
private ServiceHost myHost;
public AddWinService()
InitializeComponent();
protected override void OnStart(string[] args)
//just to be really safe
if (myHost != null)
myHost.Close();
myHost = null;
//create the host
myHost = new ServiceHost(typeof(SimpleAdd.Service)); //I've included the class from SimpleAdd, which isn't in the book!!!
//open the host
myHost.Open();
protected override void OnStop()
//shut down the host
if (myHost != null)
myHost.Close();
And lastly, here is the App.Config file from my AddWinService:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<client>
<endpoint address="net.tcp://localhost/SimpleAdd"
binding="netTcpBinding"
contract="SimpleAdd.IService"
name="netTcpBinding_IService" />
</client>
<services>
<service name="SimpleAdd.Service"
behaviorConfiguration="SimpleAddMEXBehavior">
<!-- Enable the MEX endpoint -->
<endpoint address="mex"
binding="mexTcpBinding"
contract="IMetadataExchange" />
<host>
<!-- Need to add this so MEX knows the address of our service. -->
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/SimpleAdd/Service/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="SimpleAddMEXBehavior">
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
So, where have I gone wrong?
Rod
Hello Richard,
Well, I've tried making the change to the MEX point for net.tcp, but now when I try to start the service I get the following error in the event log:
Service cannot be started. System.InvalidOperationException: Service 'SimpleAdd.Service' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element.
I am sure the problem lies with what I've put into the app.config file. My app.config file now looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<client>
<endpoint address=""
binding="netTcpBinding"
contract="SimpleAdd.IService"
name="netTcpBinding_IService" />
</client>
<services>
<service name="SimpleAdd.Service"
behaviorConfiguration="SimpleAddMEXBehavior">
<!-- Enable the MEX endpoint -->
<endpoint address="mex"
binding="mexTcpBinding"
contract="IMetadataExchange" />
<host>
<!-- Need to add this so MEX knows the address of our service. -->
<baseAddresses>
<add baseAddress="net.tcp://localhost/SimpleAdd" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="SimpleAddMEXBehavior">
<serviceMetadata httpGetEnabled="false" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
I've also tried using this for the <client> tag under <system.serviceModel>:
<client>
<endpoint address="net.tcp://localhost/SimpleAdd"
binding="netTcpBinding"
contract="SimpleAdd.IService"
name="netTcpBinding_IService" />
</client>
But that gives me the same error in the event log.
So, what have I done wrong now?
Rod
Similar Messages
-
I have an orchestration published as a web service. It was working fine on our test environment, we deployed to production, and now getting this error. The website wouldn't go in the BizTalk MSI, so we copied the files. We reset the Authentication
to match the test system (we are using Basic Auth).
When we try to browse the webservice in the browser, it prompt for userid/password, we enter it, then it gives the following error.
I'm not even sure what it means by "base address", if URL was https://prod.mydomain.com/myapp/myservice.svc, would https://prod.mydomain.com be the based address? In the test environment, the URL is https://test.mydomain.com/myapp/myservice.svc.
In both environments, we have a customer calling this webservice.
Also, I don't know what it means "scheme http". We are using https:... on the URL.
I'm thinking this is either security related, something to do with the app pool being different, or maybe something to do with bindings.
Thanks,
Neal Walter
http://MyLifeIsMyMessage.net
Web.config:
<services>
<!-- Note: the service name must match the configuration name for the service implementation. -->
<service name="Microsoft.BizTalk.Adapter.Wcf.Runtime.BizTalkServiceInstance" behaviorConfiguration="ServiceBehaviorConfiguration">
<endpoint name="HttpMexEndpoint" address="mex" binding="mexHttpBinding" bindingConfiguration="" contract="IMetadataExchange" />
<!--<endpoint name="HttpsMexEndpoint" address="mex" binding="mexHttpsBinding" bindingConfiguration="" contract="IMetadataExchange" />-->
</service>
</services>
</system.serviceModel>
<system.webServer>
<security>
<authorization>
<remove users="*" roles="" verbs="" />
<add accessType="Allow" users="myCustomer" />
</authorization>
</security>
</system.webServer>
Server Error in '/eSecuritelIn' Application.
Could not find a base address that matches scheme http for the endpoint with binding MetadataExchangeHttpBinding. Registered
base address schemes are [https].
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the
code. Exception Details: System.InvalidOperationException: Could not find a base address that matches scheme http for the endpoint with binding MetadataExchangeHttpBinding. Registered base address schemes are [https].
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using
the exception stack trace below.
Stack Trace:
[InvalidOperationException: Could not find a base address that matches scheme http for the endpoint with binding MetadataExchangeHttpBinding. Registered base address schemes
are [https].]
System.ServiceModel.ServiceHostBase.MakeAbsoluteUri(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) +16582113
System.ServiceModel.Description.ConfigLoader.LoadServiceDescription(ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action`1
addBaseAddress) +1082
System.ServiceModel.ServiceHostBase.ApplyConfiguration() +156
System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses) +215
System.ServiceModel.ServiceHost..ctor(Object singletonInstance, Uri[] baseAddresses) +400
Microsoft.BizTalk.Adapter.Wcf.Runtime.WebServiceHost`3..ctor(IsolatedReceiverType isolatedReceiver, BizTalkServiceInstance serviceInstance, Uri[] baseAddresses)
+36
Microsoft.BizTalk.Adapter.Wcf.Runtime.WebServiceHostFactory`3.CreateServiceHost(String constructorString, Uri[] baseAddresses) +533
System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +1413
System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +50
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +1172
[ServiceActivationException: The service '/eSecuritelIn/eSecuritelIn_OrchPublished_RepairEquipmentService.svc' cannot be activated due to an exception during compilation.
The exception message is: Could not find a base address that matches scheme http for the endpoint with binding MetadataExchangeHttpBinding. Registered base address schemes are [https]..]
System.Runtime.AsyncResult.End(IAsyncResult result) +901424
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +178702
System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +107
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.272When you want to migrate Web Applications from one environment to other there are multiple ways to achieve it.
1) Migrate in MSI- Export MSI and select the option for your Web Application, however I don't recommend this option
2) Is to browse the folder for Web Application(Right click on web app and browse). Copy this folder(normally within inetpub folder) and take it to the inetpub folder of other environment. Later from the IISManager create application.
Are you not using the same Binding file?
Check you web.config file and see if the endpoint is configured for mexHTTpBinding.
Old: binding="mexHttpBinding"
New: binding="mexHttpsBinding"
web.config snippet:
<services>
<service behaviorConfiguration="ServiceBehavior" name="LIMS.UI.Web.WCFServices.Accessioning.QuickDataEntryService">
<endpoint behaviorConfiguration="AspNetAjaxBehavior" binding="webHttpBinding" bindingConfiguration="webBinding"
contract="LIMS.UI.Web.WCFServices.Accessioning.QuickDataEntryService" />
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
</service>
Also look into the below article- How to fix: "Could not find a base
address that matches scheme http for the endpoint with binding WebHttpBinding" Errors
Moving to https = Could not find a base address that matches scheme
Thanks,
Prashant
Please mark this post accordingly if it answers your query or is helpful. -
Hi all , I have an exchange 2010 SP 2 environment with 2 sites , the remote site FL free busy has NEVER worked and I get this error on the remote site , is this related ?
thanks
Log Name: Application
Source: System.ServiceModel 3.0.0.0
Date: :
Event ID: 3
Task Category: WebHost
Level: Error
Keywords: Classic
User: SYSTEM
Computer: FL-CAS1.WOMBAT.LOCAL
free bust works from WITHIN the remote (FL ) site , but NEVER to the main (WASH) site , it has Never worked ,I am thing that this error is related
thanks I have no idea how to fix
Description:
WebHost failed to process a request.
Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/17256489
Exception: System.ServiceModel.ServiceActivationException:
The service '/EWS/exchange.asmx' cannot be activated due to an exception during compilation. The exception message is: Could not find a base address that matches scheme http for the endpoint with binding CustomBinding. Registered base address schemes
are [https].. ---> System.InvalidOperationException:
Could not find a base address that matches scheme http for the endpoint with binding
++++Hi
This issue could be with corruption in Autodiscover and web services virtual directory
Replace Web.config file for Autodiscover and web services virtual directory from the other working site
Delete and Recreate Autodiscover and web services virtual directory
Do this only on the affected site
Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com Thanks Sathish
(MVP) -
After Saving File get Message "Could not find the included template"
I have a strange issue going on and it's becoming very, very annoying. When I edit a file on our web server (it's a virtual machine running Windows Server 2008) and then try to view it in my browser, I get the error message "Could not find the included template". If I refresh the page (sometimes upwards of 40 times) my page with whatever changes I made will finally load. I checked with our system administrator and he's not aware of what could be causing this.
It happens on whatever the most recent file I was working on. If it's a ColdFusion file, I get the "Could not find the included template" error. If it's a change to my stylesheet, the styles will not load. Again, in both instances it takes hitting F5 upwards of 40 times until the page displays correctly.
Has anybody else ever encountered such an issue? It's happening on two separate virtual servers (both Win 2008), one has CF9 installed and the other CF10. It get's frustrating having to referesh before the page or stylesheet get picked up. Any help or suggestions are appreciated!
Thanks.
Brianazuro28 wrote:
> I'm new to ColdFusion and after I edit a cfm
(template.cfm) file using vim, I
> got the following error:
> Could not find the included template template.cfm
>
> page.cfm contains:
> <cfinclude template="template.cfm">
>
That means that the file 'template.cfm' is not where
ColdFusion needs it
to be so that it can include it. Which is generally in the
same folder
at page.cfm with that syntax. -
Luxadm probe / Could not find the loop address for the device at physical path
Using EMC FibreChannel Disks on a Solaris 10
# luxadm probe
No Network Array enclosures found in /dev/es
Error: Could not find the loop address for the device at physical path.
# echo $?
255
Any ideas how to fix?
Thank,
MarcelHi Marcel,
Which Solaris 10 release is this?
I found a very old bug that says this problem is already fixed in Solaris 10 although the bug description says
its mostly seen on Solaris 8 and 9.
https://bug.oraclecorp.com/pls/bug/webbug_print.showbug?c_rptno=15123550
The bug says that these errors are displayed when StorADE 2.1 is running its rasagent cron job, which executes a luxadm display.
This process runs in the background so the user is not aware that another luxadm display process is running.
Work-around: Do not run Storade rasagent cron job at same time as another luxadm display process.
I hope this might help to debug this problem but I puzzled why this might be happening if its already fixed.
Let me know if the workaround helps or so I can follow-up with the right support team.
Thanks, Cindy -
Hi,
I am currently creating custom timer job to call WCF web service to perform nighty job to update employee document library metadata. If I update regular list/library items it updates correctly on a specified interval basis. However when I try to integrate
the WCF client, it throws error shown below :
Could not find default endpoint element that references contract EmployeeServiceReference.
EmployeeServiceClient in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.
I followed exact instructions Andrew Connell has provided but included my logic in execute()
public
override
void Execute(Guid
targetInstanceId)
var empClient =
new
'ServiceReference.EmployeeServiceClient();
var employee = empClient.EmployeesMethod();
I have tried all approaches to manually adding app.config settings in sharepoing web.config but still it throws the error mentioned. It seems that application config and sharepoint site config binding issue still exist and cannot be resolved.
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding
name="BasicHttpBinding_EmployeeService"
/>
</basicHttpBinding>
<netTcpBinding>
<binding
name="CustomBinding_EmployeeService">
<security>
<transport
protectionLevel="None"
/>
</security>
</binding>
</netTcpBinding>
<wsHttpBinding>
<binding
name="WSHttpBinding_EmployeeService">
<security
mode="None"
/>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint
address="http://services.mycomp.com/EmployeeService.svc"
binding="wsHttpBinding"
bindingConfiguration="WSHttpBinding_EmployeeService"
contract="EmployeeServiceReference.EmployeeService"
name="WSHttpBinding_EmployeeService"
/>
<endpoint
address="http://services.mycomp.com/EmployeeService.svc/soap"
binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_EmployeeService"
contract="EmployeeServiceReference.EmployeeService"
name="BasicHttpBinding_EmployeeService"
/>
<endpoint
address="net.tcp://crmapp.mycomp.com:5050/EmployeeService.svc/tcp"
binding="netTcpBinding"
bindingConfiguration="CustomBinding_EmployeeService"
contract="EmployeeServiceReference.EmployeeService"
name="CustomBinding_EmployeeService">
<identity>
<userPrincipalName
value="[email protected]"
/>
</identity>
</endpoint>
</client>
</system.serviceModel>
Will you please help resolving this issue?Hi,
You can use any of the three approaches:-
1) Access web application's web.config programmatically in Execute() method.
http://praveenkasireddy.wordpress.com/2012/12/14/access-web-application-configuration-values-in-timer-job-sharepoint/
2) Store the configuration in xml and upload it to SharePoint document library then read from there
http://www.sharepointdynamics.net/2011/08/using-an-xml-settings-file-to-store-values-for-your-sharepoint-projects/
3) Programmatically configure a WCF endpoint.
http://msdn.microsoft.com/en-us/library/ff647110.aspx
Regards, Shruti -
Hi,
I created custom BDC Model using Visual Studio. In ReadList method i am getting data using Web Service call. Using this External Content Type (BDC Model) i created one external list and it is populating with data.
I created one new content source in search service application using this BDC Model and when crawled this content source i am getting the below error.
Error while crawling LOB contents. ( Error caused by exception: Microsoft.BusinessData.Runtime.RuntimeException MethodInstance with Name 'ReadList' on Entity (External Content Type) with Name 'Entity1' in Namespace 'bcsex.BdcModel1' failed
unexpectedly. The failure occurred in method 'ReadList' defined in class 'bcsex.BdcModel1.EntityService1' with the message 'Could not find default endpoint element that references contract 'ServiceReference1.Service1Soap' in the ServiceModel client configuration
section.
I included the bindings and client end point configuration settings in web.config file located at
\\Inetpub\wwwroot\wss\VirtualDirectories\Port_Number, but still getting the same error.
Please help. Thanks a lot.The Issue resolved by including the bindings and client end point configuration settings in
machine.config file located at C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\ and also restarted the server after config changes. -
Hi,
I have a taskflow with an input parameter.
The input parameter value is to be assigned to a list item as the default selected value.
I have mapped the pageFlow scope parameter to set value to the list item using input page parameters defined in task flow.
but When i Run the task flow the value does not get assigned to the drop down list and jdevloper console screen shows up the following message
"Could not find the item selected to match the value 2 by type: oracle.jbo.domain.Number in LOV."
But If I click the Lov to check the values it shows that value is present in the list.
The same configurations works if the list of values is for a column with type as java.lang.String.
Is it somethng different that is to be done for a Number field to assign value from a taskflow parameter?
Edited by: user3067156 on Jun 25, 2011 3:34 PMHi Jobinesh,
I am assigning the default value in the task flow using input page parameters ...
<view id="VIEW1">
<page>/title.jsff</page>
<input-page-parameter>
<from-value>#{pageFlowScope.pInputTyp_Id}</from-value>
<to-value>#{bindings.pTyp_Id1.attributeValue}</to-value>
</input-page-parameter>
</view id>
It does not assign the value, if Bind variable(pTyp_Id1) NDtype and task flow input parameter(pInputTyp) class type, both are set to use type oracle.jbo.domain.Number.
If I change both to use java.lang.String and additionally also change the VO defination the accept the bind variable of type string, it assigns the value correctly.
Usecase:
I have a a task flow for which has its first page a search page.
The Search page is created using operation execute with params and dragging the query parameters on the page.
The Query parameters are to be filled using a select one choice option and the list is bound to the master values.
This task flow can be used inside a standalone page as a region to provide a search page
The same task flow can be called from within another taskflow which will provide the default values for the drop down lists ..
Since the search page is a jsff fragment i dont have a page on load handler to provide default values..
So assiging the values using input page parameters defined in task flow view tag.
For testing I am passing the taskflow input parameters by calling the task flow from a jspx page a region . When I configure this task flow a region in a page its asks for providing the values for the parameters
And the same gets configured in my testpage def as
<executables>
<variableIterator id="variables"/>
<taskFlow id="Flow1" taskFlowId="/WEB-INF/Flow1.xml#Flow1"
activation="deferred"
xmlns="http://xmlns.oracle.com/adf/controller/binding">
<parameters>
<parameter id="pTyp_Id" value="1207"/>
</parameters>
</taskFlow>
</executables>
Edited by: user3067156 on Jun 27, 2011 1:50 PM -
Getting Errors: could not find program unit being called ORA-0651
Hello,
I'm new to Oracle and I need your help. I'm using Oracle SQL Developer and I have a package that compiles without errors (only warnings) but it still shows a little red x in package's body icon. I get the following error message:
ORA-04063: package body "SAFETYUSER.SEL_INCIDENT_INFO" has errors ORA-06508: PL/SQL: could not find program unit being called ORA-06512: at line 1
Here is the body of the package. I would appreciate your help.:
create or replace PACKAGE BODY "SEL_INCIDENT_INFO" as
procedure sel_0022Info
in_ID0022 in number,
out_eName out t_varChar2,
out_mName out t_varChar2,
out_Work out t_varChar2,
out_Loc out t_varChar2,
out_Sign out t_varChar2,
out_obsDate out t_varChar2,
out_veh out t_varChar2,
out_vehType out t_varChar2,
out_vehTag out t_varChar2,
out_secSup out t_varChar2,
out_dlic out t_varChar2,
out_dlType out t_varChar2,
out_rc out t_varChar2,
out_JTitle out t_varChar2,
out_actTake out t_varChar2,
out_jobfunc out t_varchar2,
out_ecuid out t_varchar2,
out_mcuid out t_varchar2
is
-- cursor to get ecuid ID for entered employee cuid
CURSOR cur0022 IS
select o.ecuid,o.mcuid,o.workperf,o.loc,o.obsdate,o.sign,o.dlid,o.secid,o.vehid, o.action, o.eID (NMC 11/28/2006)
select o.euid,o.muid,o.workperf,o.loc,o.obsdate,o.sign,o.dlid,o.secid,o.vehid, o.action, o.eID
from TBL_0022 o
where o.id0022 = in_ID0022;
-- variables
out_eFN varchar2(50);
out_mFN varchar2(50);
out_eJF varchar2(4);
out_DL varchar2(100);
out_DLT varchar2(100);
out_Sec varchar2(100);
out_Vh varchar2(50);
out_VhT varchar2(50);
out_VhTg varchar2(50);
out_eID varchar2(7);
out_eRC varchar2(10);
out_signFull varchar2(50);
out_eJT varchar2(100);
-- rows for cursors
row0022 cur0022%rowtype;
begin
open cur0022;
fetch cur0022 into row0022;
sel_eFullName(row0022.ecuid,out_eFN, out_eJF,out_eID,out_eRC,out_eJT); (NMC 11/28/2006)
sel_eFullName(row0022.euid,out_eFN, out_eJF,out_eID,out_eRC,out_eJT); -- Changed ecuid to euid NMC 11/28/2006
--sel_mFullName(row0022.mcuid,out_mFN);
sel_DL(row0022.DLID,out_DL,out_DLT);
sel_Sec(row0022.secid,out_Sec);
sel_Veh(row0022.vehid,out_Vh,out_VhT,out_VhTg);
out_veh(1) := out_vh;
out_vehType(1) := out_vht;
out_vehTag(1) := out_vhtg;
out_secSup(1) := out_Sec;
out_dlic(1) := out_DL;
out_dlType(1) := out_DLT;
out_eName(1) := out_eFN;
out_mName(1) := out_mFN;
out_Work(1) := row0022.workperf;
out_Loc(1) := row0022.loc;
sel_mfullname(row0022.sign,out_signFull);
out_Sign(1) := row0022.sign;--out_signFull;
out_obsDate(1) :=row0022.obsdate;
out_actTake(1) :=row0022.action;
out_jobFunc(1) := out_eJF;
out_rc(1) := out_eRC;
out_ecuid(1) := row0022.ecuid; (NMC 11/28/2006)
out_ecuid(1) := row0022.euid; -- Changed ecuid to euid. (NMC 11/28/2006)
out_mcuid(1) := row0022.mcuid; (NMC 11/28/2006)
out_mcuid(1) := row0022.muid; -- Changed mcuid to muid. (NMC 11/28/2006)
out_JTitle(1) := out_eJT;
close cur0022;
end;
procedure sel_eFullName
in_0022EcuID in varchar2, --number,
out_eFN out varChar2,
out_eJF out varchar2,
out_eID out varchar2,
out_eRC out varchar2,
out_eJT out varchar2
is
-- cursor to get ecuid ID for entered employee cuid
CURSOR curCUID IS
select e.efn, e.eln,e.jobfunc,ecuid,rc,e.eid, e.jTitle
from TBL_EINFO e
where e.ecuid = in_0022ecuid
order by e.eid desc;--eid = in_0022EID;
-- rows for cursors
rowCUID curCUID%rowtype;
begin
open curCUID;
fetch curCUID into rowCUID;
out_eFN := rowCUID.efn||' '||rowCUID.eln;
out_eJF := rowCUID.jobfunc;
out_eID := rowCUID.eid;--ecuid;
out_eRC := rowCUID.rc;
out_eJT := rowCUID.jTitle;
close curCUID;
end;
procedure sel_mFullName
in_mcuid in varchar2,
out_mFN out varChar2
is
-- cursor to get ecuid ID for entered employee cuid
CURSOR curCUID IS
select m.mname
from TBL_managers m
where m.mcuid = in_mcuid;
-- rows for cursors
rowCUID curCUID%rowtype;
begin
open curCUID;
fetch curCUID into rowCUID;
out_mFN := rowCUID.mname;
close curCUID;
end;
procedure sel_DL
in_DLID in number,
out_DL out varChar2,
out_DLT out varChar2
)is
-- get Last DL
CURSOR curDL(parDLID number)IS
SELECT D.DL, D.DLTYPE, D.DLID
FROM tbl_DL D
WHERE D.DLID = parDLID;
-- rows for cursors
rowDL curDL%rowtype;
begin
-- get DL if not 0
open curDL(in_DLID);
fetch curDL into rowDL;
if(rowDL.DL!='0')then
out_DL := rowDL.dl;
else
out_DL := '';
end if;
if(rowDL.DLType !='0')then
out_DLT := rowDL.dltype;
else
out_DLT := '';
end if;
close curDL;
end;
procedure sel_Sec
in_SecID in number,
out_Sec out varChar2
)is
-- get Last Second Supervisor
CURSOR curSec(parSecID number)IS
SELECT s.Super
FROM tbl_SecSup s
WHERE s.secsID = parSecID;
-- rows for cursors
rowSec curSec%rowtype;
begin
-- get Sec if not 0
open curSec(in_SecID);
fetch curSec into rowSec;
if(rowSec.Super!='0')then
out_Sec := rowSec.Super;
else
out_Sec := '';
end if;
close curSec;
end;
procedure sel_Veh
in_VehID in number,
out_Veh out varChar2,
out_VType out varChar2,
out_VTag out varChar2
)is
-- get Last Second Supervisor
CURSOR curVeh(parVehID number)IS
SELECT v.vehicle, v.vehtype, vehtagnumber
FROM tbl_Vehicle v
WHERE v.vehID = parVehID;
-- rows for cursors
rowVeh curVeh%rowtype;
begin
-- get vehicle if not 0
open curVeh(in_VehID);
fetch curVeh into rowVeh;
if(rowVeh.vehicle!='0')then
out_Veh := rowVeh.Vehicle;
else
out_Veh := '';
end if;
if(rowVeh.vehtype!='0')then
out_VType := rowVeh.vehtype;
else
out_VType := '';
end if;
if(rowVeh.vehtagnumber!='0')then
out_VTag := rowVeh.vehtagnumber;
else
out_VTag := '';
end if;
close curVeh;
end;
procedure sel_ObsIds(
in_IncID in number,
out_obsID out t_number
is
-- cursor
cursor curFindObsID is
select o.obsID from tbl_obs o where o.id0022 = in_incID;
-- variables
obsExist tbl_Obs.obsid%type;
pcount number default 1;
begin
FOR xLoop IN curFindObsID
LOOP
out_obsID(pcount) := xLoop.obsID;
pcount := pcount + 1;
END LOOP;
end;
procedure sel_ObsIdsWSitem(
in_IncID in number,
in_SitemID in number,
out_obsID out t_number
is
-- cursor
cursor curObsIDwSitemID is
select o.obsID from tbl_obs o where o.id0022 = in_incID and o.sitem_id = in_sitemID;
-- variables
pcount number default 1;
begin
FOR xLoop IN curObsIDwSitemID
LOOP
out_obsID(pcount) := xLoop.obsID;
pcount := pcount + 1;
END LOOP;
end;
procedure delObsId(
in_obsID in number
is
begin
DELETE FROM tbl_obs o WHERE (o.obsID=in_obsID);
end;
procedure sel_last0022(
in_ecuid in varchar2,
--in_mcuid in varchar2,
out_secSup out t_varChar2,
out_dlic out t_varChar2,
out_dlType out t_varChar2,
out_rc out t_varChar2,
out_veh out t_varChar2,
out_vehtag out t_varChar2,
out_vehtype out t_varChar2,
out_eName out t_varChar2,
out_mcuid out t_varChar2,
out_ecID out t_varchar2,
out_jobFunc out t_varChar2,
out_jTitle out t_varchar2
is
---cursor
cursor curGetLast0022 is
select o.vehid, o.dlid, o.secid, o.eid, o.mcuid (NMC 11/28/2006)
select o.vehid, o.dlid, o.secid, o.eid, o.muid
from tbl_0022 o
-- where o.ecuid = in_ecuid and o.mcuid = in_mcuid (NMC 11/28/2006)
where o.euid = in_ecuid and o.mcuid = in_mcuid Changed ecuid to euid (NMC 11/28/2006)
order by o.id0022 desc;
---variables
row0022 curGetLast0022%rowtype;
out_eFN varchar2(50);
out_mFN varchar2(50);
out_eJF varchar2(4);
out_DL varchar2(50);
out_DLT varchar2(50);
out_Sec varchar2(50);
out_Vh varchar2(50);
out_VhT varchar2(50);
out_VhTg varchar2(50);
out_eRC varchar2(10);
out_eID varchar2(7);
out_eJT varchar2(100);
pOut_mCuid varchar2(7);
begin
open curGetLast0022;
fetch curGetLast0022 into row0022;
sel_eFullName(in_ecuid,out_eFN, out_eJF,out_eID,out_eRC,out_eJT);
--sel_mFullName(in_mcuid,out_mFN);
sel_DL(row0022.DLID,out_DL,out_DLT);
sel_Sec(row0022.secid,out_Sec);
sel_Veh(row0022.vehid,out_Vh,out_VhT,out_VhTg);
out_veh(1) := out_vh;
out_vehType(1) := out_vht;
out_vehTag(1) := out_vhtg;
out_secSup(1) := out_Sec;
out_dlic(1) := out_DL;
out_dlType(1) := out_DLT;
out_eName(1) := out_eFN;
if(row0022.mcuid IS NULL)then
sel_EInfoMCuid(in_ecuid,pOut_mCuid);
out_mcuid(1) := pOut_mCuid;
else
out_mcuid(1) := row0022.mcuid; (NMC 11/28/2006)
out_mcuid(1) := row0022.muid; -- Changed mcuid to muid. (NMC 11/28/2006)
end if;
--sel_EInfoMCUID(in_ecuid,pOut_mCuid);
--out_mcuid(1) := pOut_mCuid;
out_rc(1) := out_eRC;
out_ecID(1) := out_eID;
out_jobfunc(1) := out_eJF;
out_jTitle(1) := out_eJT;
close curGetLast0022;
end;
procedure sel_EInfoMCUID(
pIn_ecuid in varchar2,
out_mcuid out varchar2
is
-- cursor
cursor curEInfoMCuid is
select e.eid, e.mcuid from tbl_einfo e where e.ecuid = pIn_ecuid order by e.eid desc;
-- variables
rowMCuid curEInfoMCuid%rowtype;
begin
open curEInfoMCuid;
fetch curEInfoMCuid into rowMCuid;
close curEInfoMcuid;
out_mcuid := rowMCuid.mcuid;
end;
procedure sel_empInfo
in_0022EcuID in varchar2, --number,
out_eFN out t_varchar2,
out_eJF out t_varchar2,
out_eID out t_varchar2,
out_eRC out t_varchar2,
out_eJT out t_varchar2,
out_eStA out t_varchar2,
out_eStaN out t_varchar2,
out_eMcuid out t_varchar2
is
-- cursor to get ecuid ID for entered employee cuid
CURSOR curCUID IS
select e.efn, e.eln,e.jobfunc,ecuid,rc,e.eid, e.jTitle,e.stA, e.stacode,e.MCUID
from TBL_EINFO e
where e.ecuid = in_0022ecuid
order by e.eid desc;--eid = in_0022EID;
-- rows for cursors
rowCUID curCUID%rowtype;
begin
open curCUID;
fetch curCUID into rowCUID;
out_eFN(1) := rowCUID.efn||' '||rowCUID.eln;
out_eJF(1) := rowCUID.jobfunc;
out_eID(1) := rowCUID.eid;--ecuid;
out_eRC(1) := rowCUID.rc;
out_eJT(1) := rowCUID.jTitle;
out_eStA(1) := rowCUID.sta;
out_eStaN(1) := rowCUID.staCode;
out_eMcuid(1) := rowCUID.mcuid;
close curCUID;
end;
end;This is the results of that query:
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW
40 rows selected -
HT3275 could not find previous back ups that where there before only giving me one date
I can not see my previous back ups that I have been doing for the past year. The last time I went to back up it said i had no space left but knew that I had. All other back ups had gone except for one. I have a lot of images from my desktop over the past few months that I cnt find now.
Hope I'm making sense.I ran into the same problem -- I had this error :
Red "i" message: "The backup volume is read only."
I rebooted my system, then reset my Time Machine backup disk (to the same disk I've been using for the last year).
Now all my history is gone -- TimeMachine is starting from scratch. Please help !!! - I need to figure out how to get access to all my old daily backups back. -
Could not find any available Global Catalog in forest when running RemoteMailbox cmdlet
My current Exchange environment is a hybrid configuration of Office 365, Exchange 2013 hybrid, and Exchange 2007 on-premise.
I have a script responsible for enabling remote mailboxes and assigning O365 licenses to a list of users; essentially provisioning users an O365 mailbox. This script runs every hour through a defined scheduled task in the Task Scheduler.
The script is proven to work but will intermittently throw an error on some days: "Could not find any available Global Catalog in forest root.xyz.com"
Here are the nuances of the error when it does occur:
It will only throw the error when the script is run via scheduled task - the script will work fine if executed from the command line
The error occurs when "Enable-RemoteMailbox" or "Get-RemoteMailbox" is called.
The same error will occur with ANY script that calls "Enable-RemoteMailbox" or "Get-RemoteMailbox" and is ran via scheduled task - even when the RemoteMailbox cmdlet was the only line in the script
Here is the output and error when Get-RemoteMailbox -verbose is ran:
VERBOSE: [15:49:52.474 GMT] Get-RemoteMailbox : Active Directory session
settings for 'Get-RemoteMailbox' are: View Entire Forest: 'True',
VERBOSE: [15:49:52.489 GMT]
Get-RemoteMailbox : Runspace context: Executing
user: ,
Executing user organization: ,
Current organization: ,
RBAC-enabled:Disabled.
VERBOSE: [15:49:52.489 GMT] Get-RemoteMailbox : Beginning processing
VERBOSE: [15:49:52.521 GMT] Get-RemoteMailbox : Current ScopeSet is: {
Recipient Read Scope: {{, }},
Recipient Write Scopes: {{, }}, Configuration Read Scope: {{, }},
Configuration Write Scope(s): {{, }, },
Exclusive Recipient Scope(s): {},
Exclusive Configuration Scope(s): {} }
VERBOSE: [15:49:52.521 GMT] Get-RemoteMailbox : Resolved current organization: .
VERBOSE: [15:49:52.521 GMT] Get-RemoteMailbox : Searching objects "abose" of type "ADUser" under the root "$null".
VERBOSE: [15:49:52.536 GMT] Get-RemoteMailbox : Previous operation run on global catalog server 'evw-xyzdc-p02.ad.xyz.com'.
Get-RemoteMailbox : Could not find any available Global Catalog in forest root.xyz.com.
At C:\IDM_In\Scripts\MinimalTest.ps1:42 char:14
+ $abose = Get-RemoteMailbox 'abose' -verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-RemoteMailbox], ADTransientException
+ FullyQualifiedErrorId : E421EF0B,Microsoft.Exchange.Management.RecipientTasks.GetRemoteMailbox
VERBOSE: [15:49:52.567 GMT] Get-RemoteMailbox : Ending processing
What could be the cause of this intermittent error?
Thanks for any helplooks to me permission error as when you are running it via a schedule task is is not able to call exchange shell/ commands {confirm this} where as when you running this manually looks to me you open exchange shell, may be as admin also and then running
the script.
schedule task process is not able to get the permission..
MARK AS USEFUL/ANSWER IF IT DID
Thanks
Happiness Always
Jatin -
Could not find registry for CommunicationsApp_JBOServiceRegistry
Hi,
I have an SDO running at
http://localhost:7101/CoreModelApp-CommunicationsSDO-context-root/CommsAppModuleService
The application name in JDeveloper is CommunicationsApp though, so I believe that is the name i should be using?
The web-application.xml for my SDO contains the oracle.jbo.client.svc.ADFApplicationLifecycleListener already, and the composite which references the SDO contains :
<reference name="CommunicationsSDO" ui:wsdlLocation="http://localhost:7101/CoreModelApp-CommunicationsSDO-context-root/CommsAppModuleService?wsdl">
<interface.wsdl interface="/ybs/poc/app/sdo/communications/common/#wsdl.interface(CommsAppModuleService)"/>
<binding.adf serviceName="{/ybs/poc/app/sdo/communications/common/}CommsAppModuleService" registryName="CommunicationsApp_JBOServiceRegistry"/>
I continuously get the 'Could not find registry' error whenever I call the service from enterprise manager.
How do I make sure I have the correct registry name? Or is my problem something to do with my SDO running on JDevelopers Integrated WebLogic Server whilst my service references it from an independent WebLogic installation?
Any help on this would be much appreciated.
Thanks,
AlexHi,
most probably that means you are trying to use command (in some command group or so) which does not exist or is wrongly registered with different alias. It should be logged in the error message what is the alias it can not find.
Best,
--epexpert -
Could not find installation information, contact apple care ?
I am trying to re-install the OS according to the guide and after erasing the harddisk.
I am using OS X utilities and try to reinstall OS X.
Then the screen popped up : To Download and restore OS X, your computer's eligibility will be verified with Apple.
However, the message now I am getting is : Could not find installation information for this machine. Contact AppleCare.
Any body know how to deal with this ?Make sure that your network connection satisfies the requirements for Recovery or Internet Recovery, depending on which you're trying to use. If possible, connect to the router with Ethernet.
Reboot and try again.
Connect to a different network, if possible.
Wait a few hours and try again.
Make a "Genius" appointment at an Apple Store. -
Can not start WebLogic in Eclipse. Error: "Could not find the main class."
I have installed Eclipse 2.0 and WebLogic Server 6.1. and the WebLogc plug in from GENUITEC (and jdk1.3.1_04, on Win2K Server). After I have done the configuration, the WebLogic start/stop buttons are integried into the Eclipse Toolbar, but when I click on the start button to start Weblogic, it pops up a dialog box "Java Virtual Machine Launcher" with message: "Could not find the main class. Program will exit!"
Starting WebLogc Server from the Start panel works fine.
Does any one have seen this before or have a suggestion what I should do?
Many many thanks in advance.
HuanWeblogic must be started with a full JDK; otherwise
JSPs and dynamic EJB stubs could not be deployed. The
error message
indicates you are attempting to use a JRE. Configure
Eclipse JRE to point to a JDK. The product
documentation will help you with this process. It does not work for me. :-(
I have tried JDK 1.3.1 and 1.4.1: same result: I get a "Could not find the main class: Program will exit"
For free expert support please consider contacting
Genuitec at [email protected] If just want any
answer ask a newsgroup.
WayneI'll try the support at '[email protected]' :)
Michel
Michel Szybist
[email protected]
Fax: +33 (0)173729897
SMS: http://www.szybist.net/ -
VS2013 - Something related to app config - How to remove "Could not find schema messages"
All of the sudden, I am getting many "Could not find Schema" messages in my Windows Form App.
Why is this occurring ? How to fix it ?
I tried deleting the app.config and regenerating it. That did not work.
ThanksThanks for responding.
I tried the suggested solution in the post you referenced earlier and it did not work. Then I tried deleting the app.config and resestablishing that and that did not work.
I just tried another suggestion in the post you sent (below)... This DID work for me.
Quickest, easiest laziest way to solve the problem:
Right-click on the project icon and choose "Properties".
Go to the "Application" tab and choose another .NET target framework.
Save changes.
Go to the "Application" tab and choose the initial .NET target framework.
Save changes => problem solved!
I have seen this issue come and go before. It appears to be a bug to me. Why isn't it something that get fixed ? Why is it occurring to begin with ?
Maybe you are looking for
-
How to disable intergrated Display
As subject above, i want to plug my old G force 4 into my K8M Neo-v AGP slot. When i did, my samsung 710N black out but the power LED still blinking. When i unplug the VGA cable, my monitor show 'no signal'. i know i should disable intergrated Disapl
-
Web Link Not Working in IE7 with Vista
I have a fairly simple website of my photography (www.esdigitalart.com) that uses Lightroom flash galleries linked to a Dreamweaver CS3 home page. I use the Contact Info and Web Link in the Site Info Panel to create a "return to Home Page" link. This
-
Oh boy, am I really mad as ****. My iPhone is so buggered, can anyone help to restore this. After downloading this new software, everything is just frozen, just does not work, keeps trying to log in but to no avail. Just cannot do anything damm thing
-
Create Table As Select From Select
Table_2 CREATE TABLE TABLE_2 "ID" VARCHAR2(10), "EXCL" VARCHAR2(10), "SEQ" NUMBER(10) Inserts INSERT INTO TABLE_2 (ID ,EXCL ,SEQ ) VALUES ('123456' ,'' ,1 ); INSERT INTO TABLE_2 (ID ,EXCL ,SEQ ) VALUES ('123456' ,'EX' ,2 ); INSERT INTO TABLE_2 (ID ,E
-
How to set No Selection Attribute in List of Values?
Hi Everyone, I'm developing an ADF form which has a List of Value(LOV) as a requirement. I've got it working based on a View Object. However, I'm trying to set the No Selection option in the LOV and it doesnt seem to work. I've set it to the "Labelle