creating roles in database project - visual-studio-2013

I`m using database project in visual studio 2013(professional).
All other thing works great, but I`m facing the issue with create user command. even I have already created user for dbproj on server with all access. Even I have only import database in database project and try to build though it showing me error.
Below command showing me error.
"Create user [dbproj] for Login [dbproj]".
Please help me out...
Thanks in Advance.

If same command I write into the postDeploymentScript then it works in my case.

Related

Getting "Could not find stored procedure 'dbo.AuthCookies_Update' " Error When Running DNN from Visual Studio

Im trying to run DNN 9.4.1 from Visual Studio.
And Im gettin the following error;
"progress":54,"details":"ERROR:Could not find stored procedure dbo.AuthCookies_Update"
Firstly Ive created dnndev.me database and Ive checked and completed the permissions.
Ive created an app pool on iis named dnndev.me and Ive set the path like ...\Dnn.Platform-9.4.1\Website
Ive checked the folder permissions.
After that Ive run the project from Visual Studio.
In the first step Ive filled Account Informations properly.
In the second step when creating stored procedures, dbo.AuthCookies_Update couldnt be created
error-capture
The way Ive tried to solve the error but I couldnt success is;
Ive created a new database with the same name (dnndev.me) and the same permissions
Ive created an app pool with the same name and the same path with controling folder permissions
And I've commented the lines following on the Visual Studio
( ...\Dnn.Platform-9.4.1\Website\Providers\DataProviders\SqlDataProvider --> 09.02.00.SqlProvider file)
commented-lines
Before running project on Visual Studio I've create that procedure on SSMS and it has been created successfully
succeeded-command
Then when I run the project Ive got the same error and when I checked the database I couldnt see dbo.AuthCookies_Update on the Stored Procedure files
Ive checked out about this error, its a common error I guess.
I hope there is someone who can help me to solve this.
Thanks in advance
I'm not quite clear on what you are trying to do.
Are you trying to compile and run DNN with VS? If so, you probably need to do some other things, too. Building DNN is not recommended. So ... what exactly are you trying to do?
I'm not sure why you are looking for that stored procedure, unless you are looking because the error is that it doesn't exist?
When you "install" DNN, it builds out the database with tables, stored procedures, etc. That is the first step of doing an install, and it's not going to run unless you've installed it properly.
To install DNN on a local machine, give nvQuickSite a try. It will do all of that work for you.
Still, why are you doing this with VS? It's really not the thing to do. But, it might make more sense if I understaood what you are trying to accomplish?

Creating Setup/Installation Project in visual studio

I have created an standard installation project in vs2017. I require to update the string connection over user input and run an script to Create DB on selected String connection.
I am following the following article https://www.codeproject.com/Tips/446121/Adding-connection-string-during-installation#_articleTop
But I do not understand where to create the Installation class.
Any suggestion on how to perform this task?
For people fighting Against this, I found a more detail tutorial.
https://codeteddy.com/2016/04/04/creating-an-msi-package-for-c-windows-application-using-a-visual-studio-setup-project/.
The instalattion class, must be added into the proyect you want to install.
Regards,

Error: Registration of the app failed

While trying to deploy an app from Visual Studio, I'm getting an error. I have already set developer mode and also deleted the app package from the packages folder, but it still won't work.
Here's the error message:
Error : DEP0700 : Registration of the app failed. Deployment Register
operation with target volume C: on Package
App_1.0.0.2_x64__m0fsgersa29a0 from: (AppxManifest.xml) failed with
error 0x80070002. See http://go.microsoft.com/fwlink/?LinkId=235160
for help diagnosing app deployment issues. (0x80073cf9)
Do I need to set anything else?
I got this when attempting to debug a project from a shared folder.
Opening the project from a local folder first resolved the issue.
I know there is already an accepted answer, but I had a totally different problem with the same excact error message. When th app was running I took a look in the SQLite database with a program that I didn't close when I uninstalled the app and re-run it from Visual Studio. I think that Visual Studio couldn't overwrite the database as I was 'using' it.
Closed the program and voila the app run smoothly.
Hope this helpes anybody else as I was stuck for precious hours!
In Windows 10 there are two possible cause of this problem are as follows,
Previously installed app is locked and preventing VS to delete while deploying the application. Goto C:\Users\{you user}\AppData\Local\Packages and delete the folder of your application. Now rebuild and deploy your application.(this was the solution in Windows 8 devices as well)
If it is still not working, double check if you have removed the below entry from appxmanifest file. If you are targeting Desktop Name="Windows.Desktop" entry should be there in the file. If it is Phone, Name="Windows.Mobile" should be there in the TargetDeviceFamily. You can have both in the configuration but sometimes Microsoft will suggest to keep separate configuration when you submit the application for STARTS testing.
< Dependencies>
< TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
< /Dependencies>
Hope this help in figuring out the reason and solution for "Error : DEP0700 : Registration of the app failed" error.
Don’t worry, the solution is actually very simple.
Error: DEP0700: Registration of the app failed. An internal error occurred.
So you’ve started your Windows 8 app development journey. All things are going smooth until one day you hit this error when trying to run/debug your app. The error says “Error: DEP0700: Registration of the app failed. An internal error occurred with error 0x80073D05. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues. (0x80073cf6)”
This is a very cryptic error and does not give you any info about what the problem actually is. The problem is that Visual Studio is not able to delete the application data in your local packages folder.
Don’t worry, the solution is actually very simple. On your Windows 8 machine, go to C:\Users\\AppData\Local\Packages\ folder. There you will find a folder that has your application’s Package Family Name in it – you just need to delete that folder. The issue is that while your app is in development, it might have a random GUID as its Package Family Name, so the folder will also have that random GUID as its name which makes it hard to know which folder belongs to your app. Again, that is easy to find as well. Right click your project in Visual Studio and click properties. The value you see in the “Package Family Name” field is the name you should look for in the folder. Simply delete it and build your solution again and it will run like a charm.
Read more details at http://paraswadehra.blogspot.com/2012/12/error-dep0700-registration-of-app.html
For me this was caused by being signed in with my Microsoft account in windows instead of the local user account. Logging in as a local user fixed this.
DEP0700: Registration of the app failed
For me the error DEP0700: Registration of the app failed, was raised because my Store App was installed from the actual Microsoft Store. I had to uninstall it and then I could debug my app smoothly.
I got this when I tried to run the project from a ReFS filesystem. Running from NTFS worked. My error code was 0x80073cfd.
I stumbled over the same issue today and after a few hours I found out, that the problem was because I moved the AppIcon files into a subfolder and forgot to adjust the references inside my package.appxmanifest. Unfortunatly the corresponding error message didn't point into this direction and all the above mentioned solutions didn't help for me, so hopefully this helps someone else!
In my case, I was opening one of the App files (Log Files). When deploying, Visual Studio attempts to remove all the files and packages (if uninstall is on in the properties). It was unable to remove the Log file as it was opened. When I closed all files, and tried again, it worked.
I ran into this error when testing some code in domain-bound and non-domain-bound scenarios (which requires me to have a domain account and a non-domain account on the same machine).
I found that I had to uninstall the application from the account I originally deployed it from before I could deploy it again on the other account.
My problem is that there is another Microsoft account in my computer that installed the app from Microsoft Store.
Nothing from the provided solution helped.
The only thing that solved my problem is to delete that account that I installed the app there.
SQLlite database might be opened. Just close the sqllite and try to deploy again.

Creating a Windows forms app with database

I am using 2010 ultimate and just build a simple windows forms application. Just added a database as well to the form. Pull the application file out of bin directory. Tried to run but got error as unable to attach database? Installed Microsoft SQL Server Compact 4.0 and got same error? What am i dong wrong?
Error:
An attempt to attach an auto-named database for file C;\Users\Admin\Desktop\Database1.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share
Use C:\Users\Admin\Desktop\Database1.mdf instead of C;\Users\Admin\Desktop\Database1.mdf
The reason i am getting a error is because i was trying to run the app file without the database in the same folder, in this case the desktop. I am currently trying to rectify this. I think i will go with a ado.net entity database online and forget integrating a local database with the desktop application. –

OracleSetviceSID stops itself

I have oracle 10.2.0.4 version..Some days before everything was well..but after changing tnsnames.ora file(I had just one SID of database,which is located on my computer.Then I have added SIDs of other databases which are located on another servers) OracleServiceSID stops itself after a while and user is automatically disconnected...How to solve this problem?I want OracleServiceSID to remain started...
After searching on the internet I found the following:
Start->All Programs->Oracle..->Configuration and Migration Tools->Administration Assistant for Windows
Collapse the following folders:
Oracle Managed Objects->Computers->Comp_name->Databases->SID<-right click->Start Service
File->Save
And after that everything works fine...Maybe It is a solution or temporary solution..Not sure..
You should need to investigate why this issue occurred to prevent this issue in future too. Check event viewer for further investigation of issue.

Resources