Why Is There Errors on forgeSample When I Copied And Pasted The Section As-Is? - autodesk-forge

On this page:
OAuthController.cs
I added the section of code from the page. However I get the following errors:
I removed the reference to my personal location and changed it to mine.
1>------ Build started: Project: forgeSample, Configuration: Debug Any
CPU ------
1>C:\Users\mine\source\repos\forgeSample\forgeSample\Controllers\forgeSampleController.cs(1,7,1,15):
error CS0246: The type or namespace name 'Autodesk' could not be found
(are you missing a using directive or an assembly reference?)
1>C:\Users\mine\source\repos\forgeSample\forgeSample\Controllers\OSSController.cs(1,7,1,15):
error CS0246: The type or namespace name 'Autodesk' could not be found
(are you missing a using directive or an assembly reference?)
1>C:\Users\mine\source\repos\forgeSample\forgeSample\Controllers\OSSController.cs(2,7,2,15):
error CS0246: The type or namespace name 'Autodesk' could not be found
(are you missing a using directive or an assembly reference?)
1>C:\Users\mine\source\repos\forgeSample\forgeSample\Controllers\forgeSampleController.cs(50,65,50,70):
error CS0246: The type or namespace name 'Scope' could not be found
(are you missing a using directive or an assembly reference?)
I was going along fine until this point.

Make sure you have installed the Autodesk.Forge Nuget Package as stated in the initial Create a server step, as it seems your IDE cannot find the Autodesk namespace.

Related

'Autodesk.Forge' package with Net 6.0

When adding package 'Autodesk.Forge into my VSCode project I get the below error.
error: There are no versions available for the package 'Autodesk.Forge'.
I'm following this tutorial with .NET 6 & VSCode.
https://tutorials.autodesk.io/tutorials/hubs-browser/setup
using Autodesk.Forge;
The type or namespace name 'Autodesk' could not be found (are you missing a using directive or an assembly reference?)

I try read files of directory on blob container use asp.net 4.6.1

Error CS0234 The type or namespace name 'Retry' does not exist in the namespace 'Microsoft.WindowsAzure.Storage.RetryPolicies' (are you missing an assembly reference?)

The type 'local:VideoView' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built

I have added the assembly "Plugin.MediaManager.Forms" But it is showing the following error-"Failed to resolve assembly: 'Plugin.MediaManager.Forms, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' ,
The type 'local:VideoView' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
Have added my code in the comment.

Add date picker for WP8 in Cordova

I'm trying to call the native WP8 datepicker in a Cordova project.
Do I need a plugin for that?
The plugin should be only for WP8, for IOS and Android I want to use the native input.
I tried this one 'https://github.com/hypermurea/phonegap-wp8-datepicker-plugin' but it fails on compilation with the following error:
(Plugins\com.hypermurea.phonegap.wp8-datetimepicker-plugin\DateTimePickerTask.cs(83,17): error CS0246: The type or namespace name 'NavigationInTransition' could not be found (are you missing a using directive or an assembly reference?) [C:\Projectos\VS\NoesisWrapper\NoesisWrapper\bld\Debug\platforms\wp8\NoesisWrapper.csproj]
1>Plugins\com.hypermurea.phonegap.wp8-datetimepicker-plugin\DateTimePickerTask.cs(84,17): error CS0246: The type or namespace name 'NavigationOutTransition' could not be found (are you missing a using directive or an assembly reference?) [C:\Projectos\VS\NoesisWrapper\NoesisWrapper\bld\Debug\platforms\wp8\NoesisWrapper.csproj]
1>Plugins\com.hypermurea.phonegap.wp8-datetimepicker-plugin\DateTimePickerTask.cs(85,17): error CS0246: The type or namespace name 'IDateTimePickerPage' could not be found (are you missing a using directive or an assembly reference?) [C:\Projectos\VS\NoesisWrapper\NoesisWrapper\bld\Debug\platforms\wp8\NoesisWrapper.csproj])
I'm using VS2015 v14.0.22609.0, and added the WPToolkit to the project via NuGet.
You need to install windows phone toolkit. Please install it as mentioned in below link:
https://www.nuget.org/packages/WPtoolkit

fragment support compilation errors

I have an Android app which uses:
ActionBarSherlock Xamarin component
MvvmCross fragment support.
I just upgraded to MvvmCross 3.1.1 and I get some errors:
Error 2 The type 'Android.Support.V4.App.Fragment' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Error 3 The type 'Android.Support.V4.App.FragmentActivity' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
I delete bin and obj folders just to be sure and rebuilt, same errors.
If I add the Android Support Library v4 Xamarin component, I get a many errors like
Error 11 The type 'Android.Support.V4.App.ActionBarDrawerToggle'
exists in both 'c:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework\MonoAndroid\v4.3\Mono.Android.Support.v4.dll'
and
'..\xamandroidsupportv4-18-4.18.1\lib\android\Xamarin.Android.Support.v4.dll'
..MyActionBarDrawerToggle.cs 19 44
If I remove the Mono.Android.Support.v4 I got error which asks me to put it back.
It seems you have an old version of ActionBar Sherlock component that references Mono.Android.Support.v4, the latest version 4.4.0.2 uses the new Android Support Library.
Hope this helps.
Alex