Base solution for your next web application

Activities of "joshboilered"

<cite>ismcagdas: </cite> Hi,

Do you use Azure websites or do you have a Virtual Machine on azure ?

Azure Websites.

Hey Gents,

When I run the app locally, targeting a local db, Signal R works. However, I just recently pushed to Azure web services with a sql db. Everything seems to be working good with the exception of signalR. See attached errors.

Thanks for your help in advance. Josh

Answer

Got it up on Azure, thanks. Had an issue with the Db connection string.

ismcagdas,

I'd like to download the template as well. However the link you provided returns a 404 page. Please advise.

Thanks.

Question

Hey Guys,

In a typical .net project, I right click on the web project and publish to azure. However, this is for smaller projects where I haven't followed an NLayered approach. What are the steps to publish all the projects to Azure vs. just Web? I didn't see any documentation for this, thanks.

<cite>chrisworrell: </cite> josh i had the same issue and discovered i needed to install

<a class="postlink" href="https://www.microsoft.com/net/download/core#/current">https://www.microsoft.com/net/download/core#/current</a>

hope that helps

Worked, thank you!

<cite>ismcagdas: </cite> Hi,

You need to install it to your computer not to project itself. Please download and install from here <a class="postlink" href="https://www.microsoft.com/net/core#windowsvs2015">https://www.microsoft.com/net/core#windowsvs2015</a>.

Hello,

As illustrated above, I have it installed : - The following versions are installed: 1.0.1

The link that you provided downloads the above, <a href="https://go.microsoft.com/fwlink/?LinkID=827546" class="os button active">Download .NET Core 1.0.1 tools Preview 2</a>

Zero is asking for: The specified framework 'Microsoft.NETCore.App', version '1.1.0' was not found.

Scott Hanslemen is reccomending a dependency within .net 461 here; <a class="postlink" href="http://www.hanselman.com/blog/HowToReferenceAnExistingNETFrameworkProjectInAnASPNETCore10WebApp.aspx">http://www.hanselman.com/blog/HowToRefe ... ebApp.aspx</a>

Others have had to do something similar: <a class="postlink" href="https://jonhilton.net/2016/09/07/using-asp-net-core-against-net-4-6/">https://jonhilton.net/2016/09/07/using- ... t-net-4-6/</a>

Can you tell me what you recommend for this bug? Thanks.

Please advise, thanks.

Hello,

I'm walking through the phonebook tutorial. I'm at this step: Open Windows Command Prompt, locate to the folder containing the .EntityFramework project and run the "dotnet ef migrations add "Added_Persons_Table"

when I run this command, I receive a response stating;

The specified framework 'Microsoft.NETCore.App', version '1.1.0' was not found.

  • Check application dependencies and target a framework version installed at: C:\Program Files\dotnet\shared\Microsoft.NETCore.App
  • The following versions are installed: 1.0.1
  • Alternatively, install the framework version '1.1.0'.

But when I; Install-Package Microsoft.NETCore.App via PM, I receive a message stating that 4.6.1 is not compatible.

Seems like a catch 22... Any suggestions?

I read that some are changing this;

"frameworks": { "net461": { //"Microsoft.NETCore.App": "1.1.0" "Microsoft.NETCore.App": "1.0.0-rc2-3002702" } }

to something more like this;

"frameworks": { "net461": { }, "netcoreapp1.0": { "dependencies": { "Microsoft.NETCore.App": { "type": "platform", "version": "1.1.0" } } } }

I tired this but it didn't work either.

Tried to run the migrator against;

"Default": "Server(localdb)\mssqllocaldb;Database=ProjectName;Trusted_Connection=True;MultipleActiveResultSets=true"

But received the following error. I don't have SQL so I spun up a quick db in Azure, changed my connection string and re-ran the migrator, same issue.

Any suggestions? Thanks.

Error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) ---> System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) ... more sql errors then; Run(Boolean skipConnVerification) in C:\Users\joshr\Documents\Visual Studio 2015\Projects\ProjectName\src\ProjectName.Migrator\MultiTenantMigrateExecuter.cs:line 60

ClientConnectionId:00000000-0000-0000-0000-000000000000

In case anyone else has this issue, it was related to not having the latest TypeScript nuget package. Thanks for resolving Halil!

Showing 11 to 20 of 23 entries