I have a WCF Web Service that my ASP.NET app uses. It has been working fine for quite some time.
I just added in a Dev Express Grid (and the Dev Express DLLs) and a new page that uses them and now I am getting parsing errors on the WSDL.
But the weird part is that it works fine on my machine but fails on the web server machine. (Both are connecting to the same web services WSDL.)
Here is the error message I am getting:
Server Error in '/MyWebAppWebDev' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Reference.svcmap: Failed to generate code for the service reference 'MyWebAppService'.
Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: Referenced type 'WebClientApp.MyWebAppService.ReferenceUpdatesDataContract, WebClientApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' with data contract name 'ReferenceUpdatesDataContract' in namespace 'http://schemas.datacontract.org/2004/07/MyWebAppServiceLibrary.DataContracts' cannot be used since it does not match imported DataContract. Need to exclude this type from referenced types.
XPath to Error Source: //wsdl:definitions[#targetNamespace='http://tempuri.org/']/wsdl:portType[#name='IMyWebAppReferenceDataServiceLib']
Cannot import wsdl:binding
Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: //wsdl:definitions[#targetNamespace='http://tempuri.org/']/wsdl:portType[#name='IMyWebAppReferenceDataServiceLib']
XPath to Error Source: //wsdl:definitions[#targetNamespace='http://tempuri.org/']/wsdl:binding[#name='MyWebAppServicesDefaultEndpoint']
Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[#targetNamespace='http://tempuri.org/']/wsdl:binding[#name='MyWebAppServicesDefaultEndpoint']
XPath to Error Source: //wsdl:definitions[#targetNamespace='http://tempuri.org/']/wsdl:service[#name='MyWebAppReferenceDataServiceLib']/wsdl:port[#name='MyWebAppServicesDefaultEndpoint']
Source Error:
[No relevant source lines]
Source File: /MyWebAppWebDev/App_WebReferences/MyWebAppService/ Line: 1
I am completely stumped on this. I have checked my web.config endpoint address and it is spot on (and notably is not in the error message above).
Any ideas would be welcomed.
Things I have tried:
Giving permissions to C:\Windows\temp to my Website user name
Giving permissions to C:\Windows\temp to my App pool user name
Checking to see that none of my data contracts are generic and have IsReference=true in them.
Are you running Skype? Seems like something is already using up a port for that web site, try browsing the site in a web browser to confirm.
Related
I have configured my environment as described in this link for the Application Insights Agent for Java: https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-agent
I configure an environment variable so that the Java Options are set with the option "-javaagent:" set to the directory where the agent jar file is located and the associated AI-Agent.xml file. I continue to get a startup error:
"[Fatal Error] AI-Agent.xml:1:10: The processing instruction target matching [xX][mM][lL]" is not allowed."
The configuration file contains the default values from the above link. I have also tried other times where I have removed everything except for the outer tags but still get the same error so I do not believe the config file is the issue. Does anyone know what this message means?
In classic Asp, I have installed ABCpdf8.dll for creating PDF, but I am getting an error.
Microsoft VBScript runtime error '800a01ad'.
ActiveX component can't create object.
What should I do?
The two most likely possibilities are that you haven't actually registered ABCpdf.dll on your server, or that the IUSR account associated with your website doesn't have read/execute permission on ABCpdf.dll
Your error message suggests that you are using CreateObject() rather than Server.CreateObject() - which would give you a different message - "Server.CreateObject Failed". Take a look at this question about another third party component - the issues are the same.
Server object error 'ASP 0177 : 800401f3' Server.CreateObject Failed
If the problem is the component ABCpdf8, you can use an PHP lib (as mpdf) for create the PDF, group the informations in an variable HTML and send to PHP page with MSXML2.ServerXMLHTTP.
We are getting the following error on application launch.
MobileFirst Platform Foundation version 7.0
error response when calling : WL.Client.connect();
{"status":500,"errorCode":"UNEXPECTED_ERROR","errorMsg":"The server was unable to process the request from the application. Please try again later."}
error on server side
>com.worklight.core.auth.impl.AuthenticationFilter E FWLSE0048E: Unhandled exception caught: FPWSE0001E: Not Found - Targeted resource 'PushDevice' does not exist. Check the '17e57139-b8ff-3d29-b105-ddc44
2147adc' parameter
com.ibm.pushworks.server.exceptions.PushWorksEntityNotFoundException: FPWSE0001E: Not Found - Targeted resource 'PushDevice'
does not exist. Check the '17e57139-b8ff-3d29-b105-ddc442147adc' parameter
at com.ibm.pushworks.server.core.PushServiceImpl.updateDevice(PushServiceImpl.java:461)
at com.worklight.integration.notification.UserSubscriptionData.addSubscriptionDataToResponse(UserSubscriptionData.jav
a:87)
at com.worklight.core.auth.impl.LoginContext.addIdentityToJSONResponse(LoginContext.java:438)
at com.worklight.core.auth.impl.AuthenticationContext.addIdentitiesToResponse(AuthenticationContext.java:522)
at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:225)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:86)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:975)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1097)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:81)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:912)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run(DynamicVirtualHost.java:262)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskWrapper.run(HttpDispatcherLink.java:938)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:626)
at java.lang.Thread.run(Thread.java:780)
But there is no issue while I am testing in my development machine.
The error message that you have provided matches the following APAR:
http://www-01.ibm.com/support/docview.wss?uid=swg1PI41837
As noted on the APAR page, this issue occurs when there are multiple versions of the application installed. The fix for this issue is included in build level IF201507012211 and above. I believe that if you check "About" from your MobileFirst console, you will find that the version that you have is earlier. My suggestion would be to apply the latest ifix to your Studio and Server environments, rebuild/redeploy your project war file, and verify that the issue no longer occurs. Ifixes can be downloaded from the IBM Fix Central site.
Please review the following link for information about installing the ifix and updating the server runtime:
https://www.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.upgrade.doc/devenv/c_upgrade_to_srvr_in_production_env.html?lang=en
I have a WEB application on multiple servers (Windows 2008). However on a windows 2012 server, I receive the following error
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30002: Type 'myservice.units.AFMService' is not defined.
Source Error:
Line 8: Dim oService As New myservice.units.AFMService
The code is not precompiled, I simply copied the code from one server to another. All other pages/calls work correctly.
The Web.config has the following line
<add key="myservice.units.AFM" value="http://xxxxxx/xxxx/x/xxx.asmx"/
Any Ideas on what I could check?
I guess I was too quick to ask the question.
I re-copied the folder APP_WebRefrences and it worked
When I launch my website from IIS, I get this error:
Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'MonitoringToolUI.Global'.
Source Error:
Line 1: <%# Application Codebehind="Global.asax.cs" Inherits="MonitoringToolUI.Global" Language="C#" %>
Source File: /global.asax Line: 1
I found duplicates of this issue, several actually - Parser Error Message: Could not load type 'TestMvcApplication.MvcApplication', "Parser Error Message: Could not load type" in Global.asax but none of the solutions given seem to be working for me. The solution which worked for most of them is that they cleaned/rebuilt the solution and it worked. In my case it is an installed website, using a MSI to create the web application in my IIS. I have tried rebuilding my application and reinstalling it, the same issue persists. However this application launches if I run it otherwise so guessing it is an installer issue.
I am using VS2012 and was forced to use InstallShield to deploy my web application. I followed a tutorial(http://www.c-sharpcorner.com/UploadFile/cb88b2/simple-steps-to-create-setup-of-website-using-install-shield/) and was able to create my installer. It creates a virtual directory, the content files/project output are copied correctly.
I've checked the .net version, platforms, rebuilt the solution several times. Am not sure what to try next, any suggestions would be helpful.
Note: One of the things I tried, I removed the "inherit" part from the global.asax file and then a similar error was thrown from one of the aspx files. Instead of gloabal, it was a different file name.
Thank you!
Make sure you the dlls are inside the bin folder in the virtual directory or your application directory.
For that you should import the Primary Output of your project inside the bin folder
Check out this link:
http://helpnet.flexerasoftware.com/installshield16helplib/webservices.htm