While execuing "update-database" using Packagemanager i am getting error [closed] - asp.net-mvc

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
While executing the "update-database" in package manager console i am getting this kind of error.
i am using MVC4 with Code-first
[First time i am executing this comment the table is created based on model.After that i deleted one property from the model so i deleted the "UserProducts" table.and again i run the application that time i got this error.
please help me to find the problem.]
"Cannot find the object "dbo.UserProducts" because it does not exist or you do not have permissions."

If this is your first time creating the database using package manager, you need to add/create a migration before updating the database. Or, you may be missing a migration file.
Try this:
//First create a migration
PM> add-migration give_it_a_name
//Then update the database
PM> update-database

Related

BC2008 - No input sources specified [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I have downloaded web project source code from github.I am using VS2015 enterprise edition and when build the project it throws below two errors.
The source code is in vb.It always throws error and due to that I could not modify existing source code.
BC2008 - No input sources specified
BC2011 - BC2011 unable to open response file 'C:\Windows\System32\config\systemprofile\AppData\Local\Temp\tmp96de1e2bc3d24b21b1987021ee3aa247.rsp'
I have uninstalled and reinstall VS2015 and it resolved this error.

Debug application without recompile [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
In an earlier version of delphi (2007/2009) I found a way to debug the application without recompiling.
But I can't find it in XE5:(
I often find my self in need of restart debugging to debug a condition that only appears on application load.
So avoiding an unnecessary compile would be a great time saver.
Best regards
Ove B-)
I am not sure if this is what you need, but you can debug an application without having delphi trying to recompile it by following these steps:
launch the application outside of the debugger (with "run without debugging" or by executing it from windows)
attach the debugger to the already running instance you just created by using the delphi menu item "Run->Attach to process..."
Edit: a little error i made: you actually have to launch your program from windows: using the "Run without debugging" option from the IDE will make delphi try to recompile the project.

MVC Projects upload on server and IIS6 without publish [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have a MVC project. I am not interesting a publishing my project. because after publishing it creates a single Dll. that times i am not able to change code of a particular page.
I want to direct upload a files or folders of MVC projects. Can It possible. if possibles, please explain me..
Regards,
Bharat Gupta
You can't. IIS is not a compiler and cannot compile your source files. It can, however, understand a DLL. When you publish your project, only the source code files (for example .cs) will be compiled and packed in the DLL. All other resources, such as scripts, images and even views, are shipped as is. You can only make changes within these files. This means that after publishing you can change your JavaScript code, or CSS styles or even "Razor code" inside your views (e.g. ".cshtml"), but you cannot change the code inside controllers.

Installshield: Setting the Installdir to an environment variable [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
EDIT:
NO LONGER RELEVANT. Due to difficulties with Installshield including not only this issue but also issues with getting it to build with the project in Visual Studio and its inability to replace one of the old files that needs to be replaced I am now coding an installer in C#. I should have done this earlier because I'd be done by now. Thank you Christopher Painter and Michael Urman for trying to guide me though this issue. Unfortunately I did not get anywhere further with it.
ORIGINAL POST BELOW
Honestly, this has been like pulling teeth. I hope that I'm missing something blatantly obvious. I have been trying to get Installshield to let me set the INSTALLDIR to an environmental variable. This is necessary because of the way the company does things. I know I can set it outside of the installer via a batch file which calls the MSI and passes the folder via an argument, but that solution ended up with an unfriendly MSI. If anyone has any internal solutions please let me know.
Windows Installer has the Environment table that is exposed by InstallShield in the environment view and component | advanced settings | environment view.
Setting Environment Variables
Windows Installer allows you to refer to environment variables using a variant of property notation. I would suggest an approach similar to RobertDickau's, where you use a set-property custom action early to set INSTALLDIR from [%SOMEVAR]. Only run the custom action if INSTALLDIR isn't already defined, so that people can override INSTALLDIR at the command line. Note that this must be run before costing, or you will have to find a different condition and use a set-directory action (like Robert mentions) instead.

Godaddy with Open XML SDK [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I am trying to load the Open XML SDK library in my webpage on Godaddy.
I am not able to load the dll properly.
I asked the technical support, but all they said is create a folder in their IIS setting and something about "ASP.NET application DLLs" which I don't get.
I think this library should be ok since it just manipulates XML files.
The error I'm getting is:
CS0246: The type or namespace name 'DocumentFormat' could not be found (are you missing a using directive or an assembly reference?)
When you download the Open XML SDK 2.0 from here, it will give you a dll that you will need to include in order to use the DocumentFormat namespace. The specific dll is called DocumentFormat.OpenXml.dll and you should copy that dll into the folders the support person told you to create. You will also need to reference that dll in your project in order to use it. Once you do that the specific error message you are seeing will go away.
I was able to solve the error by using the tick box "Create Application Root".
Note that the application created using the IIS manager on GoDaddy should be the same name as the application created on GoDaddy using the FTP.
This was answered using GoDaddy support.
The only time I have seen that error is when you are trying to install .MSI files on shared hosting. To have access to that ability, you will need a virtual dedicated (http://x.co/b7Si) or dedicated server (http://x.co/b7Sk).

Resources