Web Forms :: Copy Files To A Pc That Is Not In The Domain?
Feb 22, 2011
I have a requirement to write a web app, that should copy files from one location to another pc. The destination pc is not in the same domain as the source. So in windows explorer when I enter \10.22.12.1 it prompts me for the user id and password. Once I enter them, it shows all the folders in the target pc. Now I need to write the code to copy certain files from the source to the destination.
View 1 Replies
Similar Messages:
Mar 13, 2010
I followed the instructions from the release notes, except for one thing. I did not include the following in my web.config. Thas the the "bindingRedirect oldversion 1.0.0.0 to newVersion 2.0.0.0". I got an error message to the effect that I could not have 2 configuration sections in the web.config. I was told that as long as I had the system.web.mvc 2.0.0.0 in my BIN and, I was refereincing this same version dll that I should be fine? I am wondering if I should just create a new MVC2 project and copy my MVC1 relevent files into this MVC2 project, not sure.
View 1 Replies
Nov 1, 2010
I'm trying to use the Web One Click Publish feature in VS10 to push my asp.net app to IIS. I have some .resx files and another folder for uploaded images, none of these got copied to IIS. How do I tell it to copy the specified files and folders
View 1 Replies
Mar 7, 2012
How can I tell Visual Studio to copy .svg files when I publish from the "Publish Web" dialog (right-click on Project and select "Publish...")? It's copying all other image files to the target directory, but is not copying .svg files.
View 3 Replies
Jun 29, 2010
I am ready to deploy my first real website to my Hosting Server and was wondering exactly how a simple FTP or Copy of the website files will operate as opposed to proper deployment via publishing the website to a DLL?
Will my Typed Datasets within my .xsd files work normally by FTP'ing them to my server or is there something special i need to do such as build them?
Here are the file types i need to deploy:
1) .aspx and aspx.vb files for my website pages (some in folders such as Admin, etc....)
2) App_Browsers --> CSSMenuAdapter.Browser for use with the CSS Control toolkit
3) App_Code --> several .xsd dataset files. Do these just get FTP'd to the server as well????
4) Bin --> several .dll files for using the CSS Control Toolkit, AJAX Control Toolkits, FCK Editor controls
5) CSS files and folders
6) web.config file
Can i just FTP all of the above folders and files and get the website to work, or does some of this .net 3.5 require publishing to DLL's???
View 1 Replies
Feb 16, 2010
I have a site that was created with VWD2005. I tried to open the solution with VS 2008. This prompted me to convert it which I did. Now when I look at the project in the Solution Explorer in VS 2008, I see all of the files but they are now with in a folder named "2" that's within a folder named "back up". I also see another folder with in the solution that's named _UpgradeReport_Files.
The files for my project that are with in the folder "2" that is with in the folder "back up" are actually in the back up folder for my project in the Visual Studio 2005 folder with in My Documents. I assume this is because I chose the "create back" up option when doing the conversion. I don't understand why these files and this project aren't in the project directory with in the VS2008 folder with in My Documents.
I want all of my files for this project to be in the projects folder with in the Visual Studio 2008 folder in My documents, the same as if I had created this project in Visual Studio 2008 originally. But the conversion doesn't seem to have done this. Instead I seem to be using a solution/project that references the original files with in the back up folder as mentioned above.
Can I just create a new project in VS 2008 and paste these files into it? Will this work? I'm not sure if it will because the original one was created in VWD 2005 which I think uses the .net framework 2.0. My Visual Studio 2008 uses version 3.5 Sp1 of the .NET framework.
View 1 Replies
Jan 13, 2011
I have a directoty containing some files , so if I run the code
[Code]....
If I create new Files on the same folder DirTEST or update contains of the files , CreationTime and
LastWriteTime works correctly But if I copy and Paste the same files on the folder DirTEST ( crush or run over files) , CreationTime and LastWriteTime does not change
How can we get datetime of pasting files (already exist)
View 1 Replies
Nov 22, 2010
I have a folder on my server say:
MasterArt
in that folder there is 4 folders
pics
videos
music
other
in the pics folder is jpg's that are the buttons for a web page, the web page is in the MasterArt folder and is named default.aspx upon a user creating an account, i have my program create a folder under a subfolder named ARTIST
I got that part but now what I need to learn how to do is to have at run time, when a new user creates an account, that my program creates a subdirectory under the ARTIST subdirectory and then I copy the default.aspx from the MasterArt folder into their folder, then copy the folders and contents of the 4 subfolders (pics, videos, music, other) so that they now have the direcotries and its contents.
Example: I create a user account and my artist name is Kevin
a subdirectory is created called Kevin, the folder Kevin should now have the default.aspx page, and 4 sub folders, pics, videos, music, and other.
View 1 Replies
Mar 8, 2011
I had problems showing my .aspx files on my server after "copy website"-ftp, as the server had ASP.NET version 2.0. However, html-files worked like a charm. I got my server-dude to install ASP.NET 4.0 on server, and I can now publish an empty aspx-file only containing text without error. BUT, if I add a standard login-form from ASP.Net and copy the website, it says "Server Error in '/' Application", "Configuration Error" blablabla and "Line 8: roleManager enabled = "true"/>" is highlighted in red..And also some IIS-errors. What is IIS? I thought IIS was for people who ran websites from their computers? Is this an IIS-error? What can I do to fix this?
View 9 Replies
Aug 30, 2010
The following code works as it was originally designed to move a file from one directory to another directory on the same server, but I need to change it to work so it will move a file from one server to another server. My challenge is how to define the source directory on a different server and check if file exists.
Code behind:
Protected Sub btnSubmit_Click(ByVal sender
As Object, ByVal e As System.EventArgs)
Handles btnSubmit.Click
[Code]....
View 2 Replies
Jan 20, 2011
I have upload my files in domain.after uploading,i run the site.i get the following error The EXECUTE permission was denied on the object 'xxxxxxx', database 'zzzzzzz', schema 'dbo'. what reason for this error raised and how to solve it?.
View 2 Replies
Feb 17, 2011
I have also installed SSL on a subdomain. I have put payment page under this sub domain.
View 4 Replies
Sep 28, 2010
My feeling says it's not posible but anyway I am curious if there is at least a workaround for accomplish this.Basically I am working at my client site and my machine is not connected to the domain.What I want to do is running a web application locally under a domain account, and using the webdev server.The webapp uses the default authentication, windows authentication that is.I tried using impersonation with domainuser & password but I got the following error Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'Logon failure: unknown user name or bad password.I have to mention that the username and the password are correct.
View 1 Replies
Aug 3, 2010
We have a ASP.NET site that partially depends on forms authentication for login credentials, however the implementation of IPrincipal is completely custom.
But, when running the site on a particular server (which is somewhat semi-hardened when it comes to security), the app crashes when invoking IPrincipal.IsInRole() with the following messsage:
System.SystemException: The trust relationship between the primary domain and the trusted domain failed.
This indicates a communication error between the web-server and the DC, however since our application doesn't at all utilizes Windows authentication, I don't see why it needs to communicate with the DC.
This is my implementation:
[code]...
EDIT:
I was finally enable to reproduce this error on my dev-machine (i revoked my machine from the DC yesterday, but didn't reproduce it until today)
HttpContext.User is actually a WindowsPrincipal by default it seems, and the error in my code was that I only replace it with CustomPrincipal upon login. Hence, unathenticated users still get the WindowsPrincipal which then fails horribly if you have trust issues on your AD.
I tried changing the default principal by invoking this on appstart
AppDomain.CurrentDomain.SetPrincipalPolicy( PrincipalPolicy.NoPrincipal);
But this doesn't seem to kick in. How do I change the default Principal in ASP.NET?
View 1 Replies
Aug 16, 2010
Im returning the username from sharepoint site as a string. This is done successfully with the below code but I also get the domain with it. How can I only return the username and not the domain either through sharepoint or programmatically removing it? domain/username
[Code]....
View 3 Replies
Sep 28, 2010
My feeling says it's not posible but anyway I am curious if there is at least a workaround for accomplish this.Basically I am working at my client site and my machine is not connected to the domain.What I want to do is running a web application locally under a domain account, and using the webdev server.The webapp uses the default authentication, windows authentication that is.I tried using impersonation with domainuser & password but I got the following error Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'Logon failure: unknown user name or bad password.I have to mention that the username and the password are correct.
View 2 Replies
Jul 28, 2010
I have two domain servers X and Y.My Asp.net Web application is hosted on Domain X.But my scope is required to authorize the user of Domain Y on the Web application hosted on Domain X server.I am using Windows Authetication mode in application
View 2 Replies
Jul 28, 2010
I have a main domain "mydomain.com" and then a sub domain "forums.mydomain.com". If a user visits "forums.mydomain.com" without being logged in, they are redirected to "mydomain.com/login.aspx".
The two scenarios are:
If they are redirected to the login page with "mydomain.com/login.aspx?ReturnUrl=http://forums.mydomain.com", then they are succesfully logged into the forums but NOT the main site.
If they are simply redirected to the login page with "mydomain.com/login.aspx" with no returnUrl, they are correctly logged into both the main site and the forums.
View 2 Replies
Jul 23, 2010
I have a domain: http://www.mydomain.com. This domain is redirected to http://mydomain.anotherDomain.com.
I user forms authorization, so when the user navigates to Default.aspx he is redirected to Login.aspx. Pretty standard stuff.
On FireFox the user can log in on both on http://www.mydomain.com and http://mydomain.anotherDomain.com.
But with Explorer http://www.mydomain.com doesn't work. I only get the Login.aspx page.
Can it have anything to do with that on http://www.mydomain.com I can't see the filename ('Default.aspx', 'Login.aspx')? How can I enable so the filename is included in the redirected domain?
View 3 Replies
Jan 27, 2011
I have an intranet web application. There are 2 user groups, group A belongs to the domain and group B does not. If I set the IIS to enable anonymous access, Request.ServerVariables("LOGON_USER") always return nothing. If I disable anonymous access and set Integrated Windows authenication, a Windows login prompt will come up if group B's users want to access the website.
How can I setup IIS so that when domain user access the website, it will direct to the main page with Session("user_name") = Request.ServerVariables("LOGON_USER"). If a user is not a domain user, the website will direct him/her to a login.aspx instead of having the Windows authenication prompt, then set Session("user_name") = txtUserName.Text, and finally redirect to the website main page ?
View 2 Replies
Oct 13, 2010
is it possible to remove Main Domain cookie from Sub Domain ?I am using single sign on .On logout i want to remove the maindomain cookie
View 2 Replies
Apr 12, 2010
We have a website for our company on one domain and we have a login form to a webmail solution on another domain.Now i would like to build a form on our website the transfers the request to the login form on the webmail domain and automatically validate the user if user and pass are correct.Need help to find the correct way of doing this. The domains is hosted by our company, the website and webmail is on different servers. I don't want to use the querystring,
View 3 Replies
Jan 21, 2010
could i use the begin request of Global.asax to redirect everything, from mydomain. domain to www.mydomain.domain?
View 1 Replies
May 4, 2010
We're doing a whitelabelled version of our site, which will be hosted at foo.ourdomain.com.
However we need to ensure session is maintained between www.ourdomain.com and foo.ourdomain.com, as our SSL certificate only covers the main domain.
In practice this means we'll swap to the main domain on our payment pages, which run HTTPS, and then redirect back to the subdomain, after payment.
So the question is: How do we maintain the session when doing so ?
I've tried with <httpCookies domain=".ourdomain.com" /> in web.config to no avail :-(
Edit: Figured it out now, I lacked domain on my <forms /> tag to handle login properly.
View 1 Replies
Aug 24, 2010
I've got an Search Engine Optimisation problem where users are able to access my site by specifying any sub-domain. This is causing duplicate page issues with SEO.For example if a user mis-types 'www' then posts a link on a forum, google is crawling 'wwww.domain.com'. Furthermore, google is also crawling 'domain.com'.I need a way of forcing the site to always redirect to 'www.domain.com' regardless of how the user accesses the site.
View 4 Replies