I have the following settings in my Windows Phone 8.0 app manifest :
<Extensions>
<FileTypeAssociation Name="My application File Type" TaskID="_default" NavUriFragment="fileToken=%s">
<SupportedFileTypes>
<FileType>.myapp</FileType>
</SupportedFileTypes>
</FileTypeAssociation>
<Protocol Name="abc" NavUriFragment="encodedLaunchUri=%s" TaskID="_default" />
<Protocol Name="abcs" NavUriFragment="encodedLaunchUri=%s" TaskID="_default" />
</Extensions>
I want similar auto launch of the application for .myapp type files in my Windows Phone 8.1 app. However, when I try the same code there it says TaskID and NavUriFragment are not supported. Any suggestions?
By Windows Phone 8.1 app I'm assuming that you mean a Universal App. In that case you are going to want to change the registration to a FileType Registration.
<Extension Category="windows.fileTypeAssociation">
<FileTypeAssociation Name="test">
<DisplayName>My App Type</DisplayName>
<InfoTip>This was created by my app</InfoTip>
<SupportedFileTypes>
<FileType ContentType="x-application/myapp">.myapp</FileType>
</SupportedFileTypes>
</FileTypeAssociation>
</Extension>
Related
[SOLVED] I created a BI project report, and I exported it on SSRS installed local,
the report works if displayed on the SSRS webapp Manager
http://localhost/Reports/Reports/ProgettoReport1/ReportVendutoProdotti1
I'm trying to display the report on an ASPNET WebForm page,
but I'm having trouble
my steps:
via NuGet I installed the UserControl Microsoft.Report.Viewer v 11.0.0
I created a WebForm .aspx page and I added the UserControl Report.Viewer, and I configured
it on the same page
/////////////////////////////////////
page code ReportVendutoProdotti.aspx
<%# Page Language="C#" AutoEventWireup="true" CodeFile="ReportVendutoProdotti.aspx.cs" Inherits="Pages_ReportVendutoProdotti" %>
<%# Register Assembly="Microsoft.ReportViewer.WebForms" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
ReportViewer1
</div>
<div>
<%--
System.Web.UI.ScriptManager
The Report Viewer Web Control requires a System.Web.UI.ScriptManager on the web form.
--%>
<asp:ScriptManager runat="server"></asp:ScriptManager>
<%--
The Report Viewer Web Control
the ReportServerUrl and ReportPath configurations were copied from the BusinessIntelligence_Reporting project published on the SSRS server, TARGET_SERVER_URL and TARGET_REPORT_FOLDER
<ServerReport ReportServerUrl=TARGET_SERVER_URL ReportPath=TARGET_REPORT_FOLDER />
--%>
<rsweb:ReportViewer ID="ReportViewer1" runat="server" ProcessingMode="Remote" Height="100%" Width="100%">
<ServerReport ReportServerUrl="http://localhost/reportserver" ReportPath="/ProgettoReport1" />
</rsweb:ReportViewer>
</div>
</form>
</body>
</html>
/////////////////////////////////////
run the project/solution, so to view the WebForm page with the report ...
get error message
/////////////////////////////////////
mozilla firefox
http://localhost:53119/Pages/ReportVendutoProdotti.aspx
webbrowser output error
ReportViewer1
Report Viewer Configuration Error
The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file.
Add
<add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
to the system.web/httpHandlers section of the web.config file,
or add
<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
to the system.webServer/handlers section for Internet Information Services 7 or later.
The operation you are trying to run on "/ ProjectReport1" is not allowed for this type of item. (RsWrongItemType)
/////////////////////////////////////////
if I try to write the suggested configuration, I get another error,
SoluzReport1\WebSiteWebFormReport1\Web.config
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.6.1" />
<httpRuntime targetFramework="4.6.1" />
<httpHandlers>
<add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</httpHandlers>
</system.web>
/////////////////////////////////////
run the project/solution, so to view the WebForm page with the report ...
get error message
/////////////////////////////////////
mozilla firefox
http://localhost:53119/Pages/ReportVendutoProdotti.aspx
webbrowser output
HTTP Error 500.23 - Internal Server Error
An ASP.NET setting was found that does not apply in integrated managed pipeline mode.
Most likely causes:
This application defines the configuration in the system.web/httpHandlers section.
Possible operations:
Migrate the configuration to the system.webServer/handlers section.
You can do it manually or by using AppCmd from the command line.
For example, run appcmd migrate config "Default Web Site" from the IIS Express installation directory.
Using AppCmd to migrate your application allows you to work in integrated mode and continue working in classic mode and in previous versions of IIS.
If you are sure you can ignore this error, you can disable it by setting system.webServer/validation#validateIntegratedModeConfiguration to False.
Alternatively, pass the application to a classic application pool.
For example, run appcmd set "Default Web Site/" /applicationPool:"Clr4ClassicAppPool" from the IIS Express installation directory. Do this only if you are unable to migrate your application.
///////////////////////////////////////////
if the problem is the couple Visualstudio2017 and WebForm
I could try to use a page of a MVC project
otherwise I would be grateful if you can help me solve with the WebForms
///////////////////////////////////////////
PS my environment:
Windows10
visual studio 2017
ASP.NET WebForms
SSRS Reporting
"Visual Studio Development Server" to run the pages
message error
http://localhost:53119/Pages/ReportVendutoProdotti.aspx
HTTP Error 500.23 - Internal Server Error
An ASP.NET setting was found that does not apply in integrated managed pipeline mode.
solved by following this post
https://www.codeproject.com/Articles/872364/HTTP-Error-Internal-Server-Error-in-Visual-Studio
Step 1
Open Visual Studio and click in the name of Website Project currently opened.
Click on Property pane.
Step 2
Double click on Managed Pipeline Mode. This will toggle between Classic and Integrated Mode. You have to switch to Classic mode
Now hit the F5 button, here goes the output as usual.
http://localhost:53119/Pages/ReportVendutoProdotti.aspx
OK !!! now the report is displayed
SOLVED
Why I need to check pushNotifications capability, when I use SocketActivityTrigger? What is the purpose of it?
You don't.
Push notification capability (ID_CAP_PUSH_NOTIFICATION) is for Windows Phone 8/8.1 Silverlight.
Both Windows Runtime 8.1 and UWP (Windows 10) do not have a push notifications capability, see the list of all capabilities in UWP.
If you check the official sample for SocketActivityTrigger, you'll see it only uses capabilities for internet connectivity.
<Capabilities>
<Capability Name="internetClient" />
<Capability Name="privateNetworkClientServer" />
</Capabilities>
A web project was created in VS Pro 2013 on Windows Pro 8.1, on which a non-MVC Razor page was placed. The .cshtml page could be viewed correctly in IIS Express and in local IIS (8.5).
The project was loaded in VS Pro 2015 on another Windows Pro 8.1 machine but failed to render in either IIS Express or local IIS. The following error was displayed:
The type of page you have requested is not served because it has been explicitly forbidden. The extension '.cshtml' may be incorrect. Please review the URL below and make sure that it is spelled correctly.*
Could this be due to a difference in the build output from 2015 vs 2013, or due to an overlooked difference in webserver configuration (given that IIS Express behavior parallels local IIS)? What could account for the problem?
Addendum
I have found that VS 2015 added a file to the solution named .vs\config\applicationhost.config (folder was added at solution level). Too big to include the whole file here, so I can only show bits of it. Could any of this be relevant to the problem?
<add name="cshtm-ISAPI-4.0_32bit" path="*.cshtm" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
<add name="cshtml-ISAPI-4.0_32bit" path="*.cshtml" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
<add name="cshtm-Integrated-4.0" path="*.cshtm" verb="GET,HEAD,POST,DEBUG" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="cshtml-Integrated-4.0" path="*.cshtml" verb="GET,HEAD,POST,DEBUG" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="StaticFile" path="*" verb="*" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" resourceType="Either" requireAccess="Read" />
The project was created as a website, not as an MVC project. It seems to be problematic serving cshtml files directly in either IIS or IIS Express. Once converted to an MVC project, it all worked properly. That it ever worked seems to be due to some tenuous support for cshtml built into IIS, which isn't really guaranteed outside of a web application.
The Visual Studio templates don't really lend themselves to a gentle learning path - too bare in some ways, too overwhelming in others. After some trial and error, I've worked up a few samples which I hope will be more helpful for newbies:
https://github.com/Zenilogix-Carl/Samples
I am using Visual Studio 2013 Express, developing new camera app for windows mobile 8.1 , getting error :
<CaptureElement x:Name="myCaptureElement"
HorizontalAlignment="Left"
Width="320" Height="240" />
CaptureElement was not found, missing assembly reference . .
As you have mentioned, you are targeting WP8.1 Silverlight - and as MSDN says, CaptureElement class is olny for Runtime:
Windows Phone 8.1 [Windows Runtime apps only]
If you need to take a photo in Silverlight, you may think of using Camera Capture Task, which:
Applies to: Windows Phone 8 and Windows Phone Silverlight 8.1 | Windows Phone OS 7.1
You may also have a look at this nice article.
In my WP Silverlight 8.1 App, the following codes would throw a UnauthorizedAccessException, and tell me that Access is denied, but it works very well on Universal Apps.
StorageFolder storageFolder = KnownFolders.PicturesLibrary;
StorageFile file = await storageFolder.CreateFileAsync("mytest.dat", CreationCollisionOption.ReplaceExisting);
To access the pictures library on Windows Phone 8.1 you must have the following capability in your package.appxmanifest file:
<Capabilities>
<Capability Name="picturesLibrary" />
</Capabilities>
Given that you already have enabled ID_CAP_MEDIALIB_PHOTO, my guess is that in WP81 Silverlight you need to use Microsoft.Xna.Framework.Media.MediaLibrary.SavePicture.