App Insights for web application not working when deployed to Dev server
App Insights is not sending telemetry data for ASP.NET MVC web *requests* (page views from the JS instrumentation are fine) when the app is deployed to the Dev or Test IIS servers. On local IIS express it works perfectly fine. I have
no idea how to troubleshoot this problem.
Bert Jackson
- the AI.config file is both in the root of the site, and the /bin folder (which was confusing the other day). Both are correct.
- it looks like a local browser can go to https://dc.services.visualstudio.com (it results in a 403 since its just a GET to the root). During this test, I found that this server did NOT have the Root trust certificate (Baltimore cybertrust), which
would cause problems when using IE locally to browse the app; the javascript AI logging was not working, because it couldnt fetch the ai.0.js file). I got the proper root certificate installed on the server, but request logging still not working. I
dont believe the firewall is a problem.
- I've verified that all binaries are indeed deployed in to the bin folder on the server
- web.config does have the AI http module; I've verified via logging that the ApplicationInsightsWebTracking is loaded. However, I have custom Context/Telemetry initializers, and their Initialize() methods are *NOT* being called when deployed on the
server. I've tried both ways of registering the initializers; via code in the Application_Start() event and also in the ApplicationInsights.config file.
I don't know how to troubleshoot any further, to figure out if AppInsights is actually *trying* to send telemetry out and failing, or if its not actually even trying.
Bert Jackson
Similar Messages
-
Flex application not working when deployed run from Server
Hi,
I have Flex application which takes a parameter from user, makes a web-service call and returns the message.
This application is running perfectly when I launch from IDE.
But when I copy the files from bin-release to server and launch it, it gives me no result.
In the crossdomain file on the server which hosts web-service, I have added the my host IP in the
allow-access-from domain tag.
In the initialization method of the application I load crossdomain using following code:
Security.allowDomain("remoteservername");
Security.loadPolicyFile("http://remoteservername/crossdomain.xml");
var request:URLRequest = new URLRequest("http://remoteservername/crossdomain.xml");
var loader:URLLoader = new URLLoader();
loader.load(request);
Is there a way I can debug application when running from server?
Please give me some pointer to solve this problem.
Thank you.
ChintanAlex thanks for reply
The URL for the app is http://<some_IP>/flex_app
<some_IP> is added in crossdomain.
Also we have outbound IP's and of these are also added in the crossdomain file.
This is the current content of crossdomain file:
<cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only"/>
<allow-access-from domain="<some_IP>"/>
<allow-access-from domain="<outbound_IP1>"/>
<allow-access-from domain="<outbound_IP2>"/>
<allow-access-from domain="<outbound_IP3>"/>
<allow-http-request-headers-from domain="<outbound_IP1>" headers="SOAPAction"/>
<allow-http-request-headers-from domain="<outbound_IP2>" headers="SOAPAction"/>
<allow-http-request-headers-from domain="<outbound_IP3>" headers="SOAPAction"/>
</cross-domain-policy>
App runs perfectly fine when launched from Flex Builder. -
Application not working after deployment in remote server
I have a standard web application working in my localhost. But when I deploy the same in a remote server it gives the following exception. This happens for all the jsp:useBean. why is the container not able to fund the Beans. The Tomcat is installed properly and I use it's manager tool to deploy the WAR.
I checked the WEB-INF/lib directory and it has all the required JARs.
Error:
org.apache.jasper.JasperException: Exception in JSP: /test/CurWeatherBean.jsp:22
19: <a href="index.jsp">[ index ]</a>
20:
21: <h2>CurrentWeatherMapBean.ATOMICS</h2>
22: <jsp:useBean id="cwmDAO" class="com.news.pub.weather.CurWeatherBean$ATOMICS" scope="request"/>
23: <ul>
24: <li>
25: <h3>List<CurWeatherBean> get()</h3>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:506)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NullPointerException
com.news.pubt.forc.oc.Container.getReference(Container.java:68)
com.news.pubt.forc.cfg.PropertyBag.getBag(PropertyBag.java:80)
com.news.pubt.forc.cfg.PropertyBag.getProperty(PropertyBag.java:60)
com.news.pubt.atomicsbeans.impl.ATOMICSBean.<init>(ATOMICSBean.java:61)
com.news.pubt.atomicsbeans.ATOMICSAwareBean.<init>(ATOMICSAwareBean.java:175)
com.news.pubt.weather.CurWeatherBean$ATOMICS.<init>(CurWeatherBean.java:131)
org.apache.jsp.test.CurWeatherBean_jsp._jspService(CurWeatherBean_jsp.java:65)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)Please help me.
Edited by: danbrown on Feb 8, 2008 8:32 AMYour error stack refers to a class with the package sequence "com.news.pubt.weather....." but your jsp file refers to a class "com.news.pub.weather...
Is there an error in your jsp page? If so, did you change the package name, and do you still have old class files on the classpath on your local machine with the old name?
Anyway, the top of the error stack refers to line number 68 in the Container class. So that is where you should see a problem regarding the NullPointerExcpetion. You could post that line of code. -
?Import ? Statmenet Not working When Deploying it on Server.
What should be the process if I want to use import statement in RTf template on Standalone BI Publisher (Verision 10.1.3.4)
I have uploaded both the main.rtf and include.rtf and I have put the <?import:include.rtf?> in main but it does not work.
Please advise
ThanksI did that but it complains that file not found. I used the following statement
MAIN FILE
<?import:include.rtf?>
<?call:TC?>
SUB TEMPLATE (include.rtf)
<?template:TC?>
TESTING THIS Include Page
End Template
It complains that file not found.
I have uploaded both the file BI Publisher Console.
May be I am putting the wrong path or something now sure. -
Will the reports developed in sql server 2008 r2 BIDS work when deployed on sql server 2012 reporting manager?
when I check on Microsoft site it says
Reports are not upgraded when you upload a report definition file directly to the report server
or SharePoint site. Upgrading a report definition in SQL Server Data Tools is the only way to upgrade the .rdl file.
When you open an .rdl file in Report Designer in SQL Server Data Tools (SSDT), if the report was
created for a previous namespace, Report Designer automatically creates a backup file and upgrades the report to the current namespace.
This is the only way you can upgrade a report definition file.
Now here is another confusing statement which says
You can upload an .rdl file created in an earlier version of Reporting Services to a SQL Server
2012 report server and it is automatically upgraded on first use. The report server stores the report definition file in the original format. The report is automatically upgraded the first time it is viewed, but the stored report definition file remains
unchanged.
All I want to know is if I deploy a rdl made in 2008 r2 to 2012 will it work on the report manager of
2012?
<o:p>
</o:p>
MudassarI have tested this fucntionality and can confirm that ssrs 2008 r2 reports work when you deploy them on new ssrs 2012 report manager .
No Migration is required .
I didnt even moved report server dbs .All I did is just deployed reports on the report manager and it worked .
"You
can upload an .rdl file created in an earlier version of Reporting Services to a SQL Server 2012 report server and it is automatically upgraded on first use. "
Microsoft needs to correct this the documentation is misleading
Mudassar -
Save for web & devices not working (CS4)
I noticed today that I can't save for web & devices any more. when I try it shuts down the program and gives me the following message to send a crash report:
Adobe has detected that the application Adobe Illustrator CS4 has unexpectedly quit.
this started as a Photoshop CS4 problem where I also can't save for web & devices any more. before people jump down my throat again for mentioning this Photoshop problem on the Illustrator forum - this is for context only. I have the same problem in both applications. I just include this information here in case it helps. the Photoshop message I get is:
The operation can not be completed.
savign for web & devices worked totally fine up till last night in Photoshop. haven't saved anything out of Illustrator for web & devices in a while but it used to work just fine.
I have a PC and use Windows 7. All my Adobe products are up-to-date.
Any help is much appreciated. Thx a lot!thank you very much. at least it happened before. I was seriously doubting myself. tried trashing preference files multiple times, but that didn't help. will reinstall everything and see if that does the trick.
thanks again! -
The Smartart feature of Office for Mac will not work in my user account. It works for all other user accounts on the same computer, and it works after a "safe start". How can I fix the problem?
You may also want to search/ask in the forums run by the people who make the product which is causing you problems:
http://answers.microsoft.com/en-us/mac/forum/macoffice2011 -
AS3 not working when uploaded to linux server
Works like a charm when I preview it but when I upload to the
server (tried 3 different ones) it just ignore the actionscripts
all together no matter what I use.
What I have is a rotating banner system. I set it up to
randomly start at a specific one. If I preview it locally or run in
in my .html file locally (just using preview in dreamweaver) it
works like a charm and starts at a random one. When I upload it it
just starts at the first one like the actionscripts do not exist.
Using Flash CS3 and AS3.
ThanksPretty sure it is not a problem with the upload as I have
been doing this for years the same way with Dreamweaver. In
diagnosing the issue I rebuilt it and in place of the movie clips I
just put text and uploaded it. Worked like a charm. Added the movie
clips and again does not work when I upload it. Ignores the
actionscript and just plays them in order. Did a build from top to
bottom and from bottom to top also. Something in the movie clips is
causing it but darned if I can find the answer. I have done this
same thing before and it worked just fine. Just at a loss. I am
attaching the code inside the movie scripts which work just fine.
It is just ignoring scripts on the Scene 1 level. -
WMI InvokeMethod for StartService does not work when used with ManagementOperationObserver on IIS
Hi,
I am using .net 4.5 and C# to remotely restart the services. I am using WMI to do this task. This code works when called from windows application on the machine, but same code when used inside web application it gives exception of invalid parameter.
We saw it log error in System Event log
The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID
{49BD2028-1523-11D1-AD79-00C04FD8FDFF}
and APPID
{49BD2028-1523-11D1-AD79-00C04FD8FDFF}
to the user IIS APPPOOL\<app pool user> SID (S-1-5-82-634865507-143429395-1373251082-3464226226-3883016302) from address LocalHost (Using LRPC). This security
permission can be modified using the Component Services administrative tool.
I am pasting below code for reference.
m.InvokeMethod(observer, "Startservice", null, null);
//wait until invoke method is complete or 30 sec timeout
int intCount = 0;
while
(!completionHandlerObj.IsComplete)
if (intCount > 60)
MessageBox.Show("Inside 30 seconds");
break;
//wait 1 sec.
System.Threading.Thread.Sleep(1000);
//increment counter
intCount++;
//see if call was successful.
if (HandlerObj.ReturnObject.
Properties["returnValue"].Value.ToString() == "0")
isStarted = true;
DhanajiFor web apps the context will be the context of the app pool. Unless you set the app pool to run as a user account that has admin privileges on the remote machine then you won't be able to control the services on a remote machine. If you have
enabled Win auth such that the app runs in the context of the remote user then you might need to turn on delegation otherwise the hop won't work.
Note that if you are using Win auth then consider using ServiceController instead which provides the same functionality as WMI but with a cleaner syntax. This wouldn't work if you need to impersonate a user though.
Michael Taylor
http://blogs.msmvps.com/p3net -
Application for receiving application not working..
Hi..experts.
i m new to j2me programming. plese help me.
I got an application for receiving SMS from net. i nstalled it on nokia N73. but it's not working.
this is the code of that app...
package receivedemo.sms;
import javax.microedition.lcdui.*;
import javax.microedition.io.*;
import javax.microedition.midlet.*;
import java.io.*;
public final class ReceiveMidlet extends MIDlet
//The data we expect to receive.
private static final String TEST_DATA = "This is just a test";
public ReceiveMidlet()
//Signals the MIDlet that it has entered the Active state.
public void startApp()
//Get the display object for this MIDlet.
Display d = Display.getDisplay(this);
//Create and start a new WorkerThread.
Thread t = new WorkerThread();
t.start();
//Create a new Alert.
Alert alert = new Alert("Starting DynamicPushRegisry");
//Display the alert for 2 seconds.
alert.setTimeout(2000);
d.setCurrent(alert);
private class WorkerThread extends Thread
public void run()
//Get all connections registered with the PushRegistry
//for the current MIDlet suite.
String[] connections = PushRegistry.listConnections(true);
if ( connections.length == 0 )
//Nothing is registered, register a connection.
try
//Dynamically register a socket connection
//on port 50000.
PushRegistry.registerConnection("socket://:50000",
"receivedemo.sms.ReceiveMidlet","*");
} catch (ConnectionNotFoundException e)
message(e.toString());
} catch (ClassNotFoundException e)
message(e.toString());
} catch (IOException e)
message(e.toString());
else
//A connection is already registered and data is arriving.
//Fetch the incoming data.
fetchData(connections[0]);
//Shut down to wait for data.
message("Done");
System.out.println("correct till here");
notifyDestroyed();
//Fetches the incoming data.
private void fetchData(String connection)
try
//Open the connection.
Connection c = Connector.open(connection);
if ( c instanceof StreamConnectionNotifier )
//Open an InputStream.
StreamConnectionNotifier scn = (StreamConnectionNotifier)c;
StreamConnection sc = scn.acceptAndOpen();
InputStream input = sc.openInputStream();
//Extract the data from the InputStream.
StringBuffer sb = new StringBuffer();
byte[] data = new byte[256];
int chunk = 0;
while ( -1 != (chunk = input.read(data)) )
sb.append(new String(data, 0, chunk));
//Close the InputStream and StreamConnection.
input.close();
sc.close();
String s = sb.toString();
//Test the data for validity.
//If invalid an exception is thrown.
Assert.assertTrue(TEST_DATA.equals(s),
"Failed to receive proper string: " + s);
//Display the received data.
message("Received: " + sb.toString());
} catch (IOException e)
message(e.toString());
//Display a String message to the user.
private void message(String msg)
//Create a new Alert with the message.
Alert alert = new Alert(msg);
//Display the alert for 5 seconds.
alert.setTimeout(5000);
Display.getDisplay(this).setCurrent(alert);
//Signals the MIDlet to stop and enter the Pause state.
public void pauseApp()
//Signals the MIDlet to terminate and enter the Destroyed state.
//Unconditional when set to true. The MIDlet must cleanup and release
//all resources. Otherwise, the MIDlet may throw a
//MIDletStateChangeException to indicate it does not want to be
//destroyed at this time.
public void destroyApp(boolean unconditional)
//Throws an IllegalStateException with the supplied error message.
final class Assert
private Assert()
static public void assertTrue(boolean exp, String failmsg)
if (!exp)
throw new IllegalStateException(failmsg);
plzz help me...it's important for me. Thanks a lotwhen i send a SMS there is no reaction from application.
i don't know how is this failing.
i am very troubling about this.
i have to receive the SMS that comes to the inbox.
if you have any working source code please give me.
Thank you so much.
Edited by: RavindraDiwakar on Sep 14, 2008 8:17 PM -
PortalPath for Mydashboard is not working when the username contains a "/"
Hi,
Our OBIEE application is integrated with a java web application. We are providing links to the dashboards, Mydashboard, Answers and Administration using java and passing the credentials and portal paths to OBIEE using java.
Every other link is working fine, except the Mydahsboard link. When an username contains a "/" (Ex: xyz/adc.admin), then the mydashboard link is thorwing a path not found exception.
We tried escaping the user name, encoding the username. Nothing worked.
Finally removed the portal path from the URL and it is working fine, but lead to another problem.
The other problem is that, if the user clicks the Mydashboard link and then Dashboard link and again mydashboard link, then the dashboard is coming up, but not the mydashboard.
As we have removed the portalpath from the url, I guess the portal path of the dashboard is getting cached somewhere and it is being used even for the mydashboard.
Any ideas, how to get this worked would be appreciated!!
Thanks!!
Vasantha.PWhy do you need user names with /? If this is due to SSO try using the stripWindowsDomain option in your SSO configuration. See this post:
http://www.clearpeaks.com/blog/oracle-bi-ee/configuring-obiee-to-work-in-single-sign-on-sso-environment-on-iis
Otherwise you are going to have to convert it to something else or you will have plenty of problems in OBIEE. We ended up replacing it by "_" (underscore) and that worked fine for us. -
Updating my .ipa in DPS App Builder for testing is not working
Hi there,
I've build my .ipa file in DPS App Builder for testing on my iPad before I publish it to the app store. No problem. I tested it and saw some modifications to make. I made the changes on my folio, updated it in the folio builder of indesign (on the cloud). Then I get back to DPS App Builder and rebuild an .ipa file from the "Manage" and "Modify" windows, it download and test my certifates, seems to work ok. Then I've created the new .ipa file (after erasing the old one on my desktop and iTunes) but when I synch it back on my iPad it's not updated. It's still the first version of my folio without the changes.
I tried to create a new app from the beginning but the single edition serial number does not work anymore. So my only solution is to update my folio, right? But what is the right way to do it? Am I missing something? I didn't find any answer in the step by step guide about that.
Or is it possible to delete completly the first version in DPS App Builder to recreate it without losing my single edition serial number as I didn't submit it to Apple yet?
Do I have something to do in the Folio Producer?
Thanks for your help.
Julien.Single Edition Serial is one time use thus modification is not possible from your end directly in case you wish to use the same serial number. For such cases you need to contact DPS Support, who can get an approval on a serial number reset after reviewing the need.
In this case, I'll take this offline with you in reference to forum post # http://forums.adobe.com/message/5597607. -
Powershell unzip with shell.application not working when launched from windows service
I have a deployment agent on a machine implemented as a windows service. Service is 32-bit and runs on windows server 2008R2 x64 SP1 with powershell V2. Powershell script requires elevation and to run under x64 because of dependency to powershell module
'IIS Administration'. To achieve this, the service starts a cmd file which in turn launches powershell x64 console:
C:\WINDOWS\sysnative\WindowsPowerShell\v1.0\powershell.exe "Start-Process C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell -ArgumentList '-ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -File C:\Temp\EndJobCmd\Install.ps1' -Verb RunAs"
This seems to work well. The problem I have is that the script has a sequence where it unpacks a zip file to a destination folder using shell.application, this works fine when triggered manually on the server or through the task scheduler, but when triggered
from the service it does not extract any files at all (cannot see any errors thrown by the script but it seems to continue to execute as it logs a successful message to the event log after finishing).
Unzip sequence looks like:
$shell = New-Object -com shell.application
$pkg = $shell.namespace($sourceFile)
$installDir = $shell.namespace($targetDir)
$installDir.Copyhere($pkg.items(), 20)
Any advice greatly appreciated. I have searched some and seen a few people with similar issue but have yet to find a solution.If it's still actual, I managed to fix this with having CopyHere params equal 1564.
So in my case extract zip function looks like:
function Expand-ZIPFile{
param(
$file, $destination
$shell = new-object -com shell.application
$zip = $shell.NameSpace($file)
foreach($item in $zip.items())
$shell.Namespace($destination).copyhere($item,1564)
"$($item.path) extracted"
1564 description can be found here - http://msdn.microsoft.com/en-us/library/windows/desktop/bb787866(v=vs.85).aspx:
(4) Do not display a progress dialog box.
(8) Give the file being operated on a new name in a move, copy, or rename operation if a file with the target name already exists.
(16) Respond with "Yes to All" for any dialog box that is displayed.
(512) Do not confirm the creation of a new directory if the operation requires one to be created.
(1024) Do not display a user interface if an error occurs. -
Web service not working when called remotely
Hi there!
I built a simple web service to generate a sequence number to be cosumed by PDF forms.
It works perfecly when I run PDFs on my machine, using localhost, etc.
Whem deployed on the client's servers it does not work. The only difference is the client is running LiveCycle on Linux over their inhouse corporate network.
When the web service is added to forms in LC Designer, the ws structure is built correctly and if called from a web browser the XML response is ok too.
I've checked LiveCycle log file - there's nothing there, the ws is not even being called.
Where should I look for error messages or other resources to aid me in identifying the problem?
Thank you very much for any hints!
MarcosHi there!
I built a simple web service to generate a sequence number to be cosumed by PDF forms.
It works perfecly when I run PDFs on my machine, using localhost, etc.
Whem deployed on the client's servers it does not work. The only difference is the client is running LiveCycle on Linux over their inhouse corporate network.
When the web service is added to forms in LC Designer, the ws structure is built correctly and if called from a web browser the XML response is ok too.
I've checked LiveCycle log file - there's nothing there, the ws is not even being called.
Where should I look for error messages or other resources to aid me in identifying the problem?
Thank you very much for any hints!
Marcos -
Certificate not works when deploy the store app package by powershell
I request a web service with a pfx certificate in windows store app, it works well, but after I create a package by VS2013, and
deploy the app with powershell, access web service failed, seems the certificate not works. Any hints, suggestion ? My code as below:
string certRawData = StringEncryptionHelper.Decrypt(ConfigurationLoader.ApplicationSettings.CertificateData.RawData);
string certPassword = StringEncryptionHelper.Decrypt(ConfigurationLoader.ApplicationSettings.CertificateData.Password);
await CertificateEnrollmentManager.ImportPfxDataAsync(certRawData,
certPassword,
ExportOption.Exportable,
KeyProtectionLevel.NoConsent,
InstallOptions.None,
ConfigurationLoader.ApplicationSettings.CertificateData.FriendlyName);
CertificateQuery certQuery = new CertificateQuery { FriendlyName = ConfigurationLoader.ApplicationSettings.CertificateData.FriendlyName };
IReadOnlyList<Windows.Security.Cryptography.Certificates.Certificate> certs = await CertificateStores.FindAllAsync(certQuery);
certificate = certs.FirstOrDefault();
var protolFilter = new HttpBaseProtocolFilter { ClientCertificate = certificate };
var client = new HttpClient(protolFilter);
HttpResponseMessage result = await client.GetAsync(requestUri);Hello Mosser lee,
As this issue is related to Development, it is recommended to post in the related MSDN forum.
The professionals there will be glad to help you.
https://social.msdn.microsoft.com/Forums/en-US/home
Thanks for your understanding.
Best regards,
Fangzhou CHEN
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]
Maybe you are looking for
-
Work Manager 6.0 Hide Menu Options
Hi Community. we are trying to hide some options from Work Manager 6.0 menu. We know how to hide timesheets, but we need to hide work orders function (See Screenshoot). Anyone knows how to hide them without Agentry project modification? the specific
-
How do I stop the drop box from activating, it is using the wrong info and I can't stop it
When I use the slot to provide my e-mail address, the drop box is activated and has the wrong info in it
-
Applicatio​n works differentl​y under run time license
I used the evaluation period of my TestStand 3.1 to install and debug an application on a computer. I got the application just right and activated 3.1 as a deployment computer. Now the test sequence fails communication steps it passed before. Of cour
-
Making photos fit to screen, how do I do this?
When I set int the preferences the photos to be scaled to fit the display, the photos I import seem to get scaled down to half screen size. What i'd like is to ask the software to fit all photos to the screen so the longest dimension fits. Can I do t
-
This appears to have begun happening about the time of the Plug in container, but that is a guess. I do experience more firefox crashes now though. I just closed every item on my computer, was looking at desktop on screen, hit task manager then proce