Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "klawsuc"

Answer

My apologies. I just looked at the id dataTable and assumed it was the tag. Thanks for the clarification.

Thanks again. Makes sense. I'll poke around the documentation to see how to actually set that up.

@aaron I read the post but unfortunately I'm not sure what to do with that information. Any sample code or information would be greatly appreciated. I'm fairly new to mvc and structured code...coming from the old aspx pages world. Thanks.

Thank you! Addresses are a one-to-many relation (Companies can have many different addresses). But addresses are also used for patients and users which is why I have the CompanyAddress table. I will look at the link.

Thank you again @ismcagdas! Well that's helpful information. I thought the migration scripts were included in the published app...i.e. something like a check for db structure and updating it accordingly. Do you know if this information exists anywhere in the documentation so I have it for future reference?

Thanks for the reply @ismcagdas.

I ran the *.Migrator project. The database was created and I was able to run the site from VS 2017. When I published the Host project and ran the site on the server, that is when I get the error. Is there something else I have to do on the server? I thought the published application took care of the db setup and seeding.

I get the same error when trying to run a fresh copy of Core + Angular 4.4.0.

Maybe someone can benefit from my two wasted days. Adding the following to the *.Web.Host.csporj file allowed me to build the application. In my case I wanted to use Typescript 2.5. I'm not sure why setting the TypeScriptToolsVersion property doesn't work properly...i.e. some of the calls are still made to "C:\Program Files (x86)\Microsoft SDKs\TypeScript\tsc.exe"

<PropertyGroup>
    <TscToolPath>C:\Program Files (x86)\Microsoft SDKs\TypeScript\2.5</TscToolPath>
  </PropertyGroup>

Also the instructions at <a class="postlink" href="https://www.aspnetzero.com/Documents/Merge-Angular-Client-Server">https://www.aspnetzero.com/Documents/Me ... ent-Server</a> failed to mention that you need to make sure outDir in .angular-cli.json is set to wwwroot/dist. This is already the case in 4.4.0 when downloading an already merged app but was not in 4.1.1 having to manually merge the client with server app.

Also I want to clarify that I merged core and angular properly for the 4.1.1 version. I followed the instructions at <a class="postlink" href="https://www.aspnetzero.com/Documents/Merge-Angular-Client-Server">https://www.aspnetzero.com/Documents/Me ... ent-Server</a> I notice it states Angular 2 so I'm not sure if using core + angular 4 is different.

Still having an issue trying to get the site published properly. One thing I noticed is that tsc.exe is being called at C:\Program Files (x86)\Microsoft SDKs\TypeScript\tsc.exe. That version is for VS 2012 (which I still have installed for legacy apps). However I have TS 2.1, 2.3, and 2.5 installed in their respective directories. In the project file I specify the target TS to be 2.5 (<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion>). So the error happens at

C:\Program Files (x86)\Microsoft SDKs\TypeScript\2.5\build\Microsoft.TypeScript.targets(247,5): error MSB6006: "tsc.exe" exited with code 1.

But the initial tsc file that's called is

C:\Program Files (x86)\Microsoft SDKs\TypeScript\tsc.exe --project "C:\inetpub\SquireLab_angular_4.1.1\aspnet-core\src\SquireLab.Web.Host\e2e\tsconfig.json" --listEmittedFiles --locale en-US

Is it normal for two different tsc programs to be called? Is there a way to only use 2.5?

Showing 1 to 10 of 17 entries