Vote count: -1 I am trying to upload a PDF document programmatically to a folder on my webhosting account; however, I receive the following error message. Access to the path 'D:CustomerDatawebspaceswebspace_xxxwwwrootassetsdocumentstest.pdf' is denied. I have the following groups and I set the "Application Pool User" access to enable write access and I could upload the document without any problem. 1) Application Pool User 2) Webspace Group 3) Anonymous Users I wonder if there will be a security problem when I set the write access for the "Application Pool User". Thank you. asked 7 mins agoGuven Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have been here before, but this time I have managed to get further than I have before. I have been following this guide and done everything it has said. If I navigate to http://localhost:61589/help I actually see the help page, but there is only the introduction, there are no descriptions. In my controller I have comments (always do) like this: /// /// For all answer related endpoints /// [RoutePrefix("answers")] public class AnswersController : ApiController { // Readonly properties private readonly IUnitOfWork _unitOfWork; private readonly AnswerService _service; private readonly StateService _stateService; /// /// Default constructor /// public AnswersController() { // Map...
ادامه مطلبVote count: 0 It's my first time to do the project and my project manager give me time to research how to do it. I came from google and some codes are too complicated, is there a simple way how to do it? or maybe not too complicated I guess. asked 1 min agouser6398482 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am new to ASP.NET 5 and have a question regarding the local database mdf file. In ASP.NET, it is very easy to create a mdf file and put it in the APP_Data folder. However, when it comes to ASP.NET 5, I could not find such function and I even could not create such file. Does anyone know how to create an mdf file in ASP.NET 5 project? Thank you. asked 35 secs agoBen Let's block ads! بخوانید...
ادامه مطلبVote count: 0 It's any possible to using new dependency injection mechanism in ASP.NET Core to inject IdentityDbContext into my repository? EF version: "EntityFramework.Commands": "7.0.0-rc1-final", "Microsoft.AspNet.Identity.EntityFramework": "3.0.0-rc1-final", Context: public class ApplicationDbContext : IdentityDbContext, IApplicationDbContext { public DbSet Customers{ get; set; } protected override void OnModelCreating(ModelBuilder builder) => base.OnModelCreating(builder); } Repository: public class CustomerRepository: ICustomerRepository { private readonly IApplicationDbContext _context; public CustomerRepository(IApplicationDbContext context) { _context = context; } public List GetAll...
ادامه مطلبVote count: 0 I've been trying to figure out how to do this for a while now, because the ID of the Image Button I created ('titanBtn') is not recognised in my code behind file. Which would allow me to simply write 'titanBtn.ImageUrl =" but alas, the code behind says it doesn't exist. All I am trying to do with this code, is take a string read from the Db, that specifies the filename of the image (the appropriate images are named after the element type of each object), and puts this in a concatenated string that specifies the ImageUrl. Level: Step: code behind using (SqlCommand cmd2 = new SqlCommand("getElement", co)) { cmd2.CommandType = CommandType.StoredProcedure; cmd2.Parameters.AddWithVa...
ادامه مطلبVote count: 0 I have a simple https server serving a simple page like so (no error handling for brevity): package main import ( "crypto/tls" "fmt" "net/http" ) func main() { mux := http.NewServeMux() mux.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) { fmt.Fprintf(w, "hello!") }) xcert, _ := tls.LoadX509KeyPair("cert1.crt", "key1.pem") tlsConf := &tls.Config{ Certificates: []tls.Certificate{xcert}, } srv := &http.Server{ Addr: ":https", Handler: mux, TLSConfig: tlsConf, } srv.ListenAndServeTLS("", "") } I want to use a Let's Encrypt TLS certificate to serve the content over https. I would like to be able to do certificate renewals and update the certificate in the server with...
ادامه مطلبVote count: 0 I'm trying to send a cURL request to a Windows 7 VM on my Ubuntu machine and getting "Coection refused" on all ports I try to curl, and I can't telnet, either. Host: Ubuntu 15.10 x64, 8GB RAM Guest: Windows 7, IE 11, 1GB RAM(from here https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/linux/) I can ping the machine from both the host and the guest, but when I try to curl I get this: Rebuilt URL to: http://192.168.1.6/ Trying 192.168.1.6... coect to 192.168.1.6 port 80 failed: Coection refused Failed to coect to 192.168.1.6 port 80: Coection refused Closing coection 0 curl: (7) Failed to coect to 192.168.1.6 port 80: Coection refused I need to be able to send GET req...
ادامه مطلبVote count: 0 Disclaimer: I am trying to get a feeling of real world numbers from peoples first hand experience. No implementation details / code is needed at this point. We have web api that will use queues / message brokers to drop messages to and then in tu, windows services will read queues for delivering different kind of http notifications (simply: send many http requests to different urls/hosts). At peek times, those numbers might be in thousands per second. Having on mind ServicePoint max coections limit plus ThreadPool threads, i am trying to find right measure for finetuning that sending part. So, potential questions are: What numbers of concurrent http requests (most probably thro...
ادامه مطلبVote count: 0 I'm having a problem with my etheet shield server coection. I coected my etheet shield to a router ( client mode ) and then coect this router to my phone hotspot. This is my code: #include #include byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; char server[] = "www.xxx"; IPAddress ip(192, 168, 1, 177); EtheetClient client; void setup() { Serial.begin(9600); while (!Serial) { ; } // start the Etheet coection: if (Etheet.begin(mac) == 0) { Serial.println("Failed to configure Etheet using DHCP"); Etheet.begin(mac, ip); } // give the Etheet shield a second to initialize: delay(1000); Serial.println("coecting..."); Serial.println(Etheet.localIP()); // if you get a coection, re...
ادامه مطلبVote count: 0 Google and stackexchange finds hit upon hit where the dlls aren't compatible. This time, they are. It's my DLL. I know full well it's compatible. The dll file is placed in lib/netstandard1.5 Nuspec file reads: redacted.dll 1.0.0-alpha joshudson joshudson https://sourcecontrol.inteal.lan http://ICON_URL_HERE_OR_DELETE_THIS_LINE false Redacted Redacted TEST Redacted Hand verifying references in ildasm yields: // Metadata version: v4.0.30319 .assembly exte System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) // .?....: .ver 4:1:0:0 } .assembly exte System.Collections { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) // .?....: .ver 4:0:10:0 } .assembly exte System.Text.Encod...
ادامه مطلبVote count: 0 I have a local just and I want to add it to dependencies of a Maven. I try to things work according to this My file is somewhere locally so I use this in the pom.xml file: opt Copt 1.4 compile $C:Usersaiafilesexample.jar What is the right way to right the systemPath? asked 1 min agoEmklj Let's block ads! بخوانید...
ادامه مطلبVote count: 0 For example, I want to generate a plan table web page (like https://trello.com/) with a button. So in trello, you get to make your own plan, then add list, and in each list, you can add cards. I am developing a website which will be able to do something like trello, which you will be able to add list, and cards. Example of trello here In the screen shot, it can be seen that there are 2 lists, "List 1" & "Objectives". In "List 1", there are 3 cards. However, how do I do that? to generate a new web page every time I add a new plan. I am a newbie in web development and need some help. Thank you,. asked 1 min agoJason Christopher Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am getting an error net::ERR_INSECURE_RESPONSE in the Chrome console when fetching some data from my API This error usually occurs as a result of an unsigned certificate; however, it is not an issue with this because I have a valid and signed certificate. The error doesn't happen often at all and it goes away if I restart my Chrome browser. It also doesn't occur in any other browser at all (tested on Safari, Mozilla, Opera) Any idea why this is happening? Is this just a browser bug? asked 1 min agoKarim Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Using this I changed the environment of my VS Community 2015 to .NET Core. Now my vsto projects dont work anymore and when I try to create a new vsto Word 2010 application add-in I am forced to create a Word Document add-in instead as shown below. Please help: asked 3 mins agonam Let's block ads! بخوانید...
ادامه مطلبVote count: 0 currently i am writing a login and register function for my app, i followed the tutorial on youtube and tried the same code as provided. this is my code of loginactivity java class. public class LoginActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); final EditText etUseame = (EditText) findViewById(R.id.etUseame); final EditText etPassword = (EditText) findViewById(R.id.etPassword); final Button bLogin= (Button) findViewById(R.id.bLogin); final TextView RegisterLink= (TextView) findViewById(R.id.tvRegisterHere); RegisterLink.setOnClickListener(new View....
ادامه مطلبVote count: 0 migrating my web app from ASP.NET Core RC1 to RC2. I'm trying to load my referenced class libraries. This code snippet doesn't work with RC2 anymore. public class Startup { public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { // libraryManager is null .... ILibraryManager libraryManager = app.GetService(); List result = new List(); IEnumerable libraries = libraryManager.GetLibraries(); IEnumerable assemblyNames = libraries.SelectMany(e => e.Assemblies).Distinct(); assemblyNames = Enumerable.Where(assemblyNames, e => e.Name.StartsWith("projectNamespace")); foreach (AssemblyName assemblyName in assemblyNames) { Assembly assembly ...
ادامه مطلبVote count: 0 Simplistically the question I'm asking is in a given set of DNA sequencing reads what bases were mutated. To do this I created a data structure like this: baseDict = {'a':0, 't':0, 'g':0, 'c':0} varDict = {'a':baseDict, 't':baseDict, 'g':baseDict, 'c':baseDict} So, a given base can be either A, T, G, or C, and then can be mutated to any of the four bases. So and A could be mutated to a T. I am reading through a file containing mutations, and using a lot of if...elif statements to process the information, like this: if base == 'a': if mutation == 't': varDict['a']['t'] += 1 elif mutation == 'g': varDict['a']['g'] += 1 #and so on... Is there a way to do the same thing with much l...
ادامه مطلبVote count: 0 Imagine there's relatively complex network infrastructure, from PC, then intelligent hub, then router, then area network switches, then inteet, and then same chain of devices towards the server. Imagine I make HTTP request from some local PC's IP address and some its local port, to the remote server's port 80 (HTTP). Under normal circumstances communication goes from coection request packet, through acknowledgments and requests, and then finally till the finalization and chael close. All intelligent network devices can see this communication, and act accordingly. Now imagine the following situation: PC makes request from its IP address and some fixed source port, receives half ...
ادامه مطلبVote count: 0 I have problem with parse string after toLocaleTimeString() var b = new Date(); var c = b.toLocaleTimeString(); var d = c.split(":"); var e = parseInt(d[0]); After this: Inteet Explorer: e is NaN, d is "15" Chrome: e is 15, d is "15" asked 1 min agoEmerceen Let's block ads! بخوانید...
ادامه مطلب