|
all,
We are using office automation to convert excel and word to htm we had severa issues like access denied exception etc. and for this issue to solve we followed KB article of MS to configure office under specific user account, but the problem is because security issues we cant follow KB article(http://support.microsoft.com/kb/288367/), by looking at KB article what i felt is they are trying to create a profile for local administrator user. So my question can any body have any alternate for this??
We accept tht we went for bad design, but we dont have any other alternative as this is a must requirement from customer.
Please any cluse any information you have.
|
|
|
|
|
Another option that you may want to look at is impersonation, your application may impersonate another user who has enough permission to work with the automation.
IamADotNetGuy wrote: this is a must requirement from customer.
Any chance to convince the client that the automation is not a recommendation, may give the Microsoft documentation, and consider a third party component that supports the same thing.
|
|
|
|
|
Hi
I am very badly struggling with web services. I am trying to call a web service which is prepared by one of our other team. I am passing soap message as
a) SOAP MESSAGE
---------------------------
"<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:Body><SaveCustomerService xmlns='http://www.gift.com/Gift'><ROOT><username>bob</username><email>b@v.com</email><category>1</category><subject>a</subject><message>aaaa</message></ROOT></SaveCustomerService></soap:Body></soap:Envelope>"
b) Here is my calling code
----------------------------------
Public Function Send(ByVal WSUrl As String, ByVal soapAction As String, ByVal soapBody As String)
Dim httpRequest As HttpWebRequest = CType(WebRequest.Create(WSUrl), HttpWebRequest)
Dim requestStream As System.IO.Stream
Dim requestWriter As System.IO.StreamWriter
Dim responseStream As System.IO.Stream
Dim responseReader As System.IO.StreamReader
Dim bodyData As Byte() = Encoding.UTF8.GetBytes(soapBody)
httpRequest.ContentLength = bodyData.Length
httpRequest.ContentType = "text/xml; charset=utf-8"
' httpRequest.Headers.Add("SOAPAction", soapAction)
httpRequest.Method = "POST"
httpRequest.PreAuthenticate = True
' Create a New 'NetworkCredential' object.
Dim networkCredentials As NetworkCredential = New NetworkCredential("XYZ", "XYZ")
' Associate the 'NetworkCredential' object with the 'HttpWebRequest' object.
httpRequest.Credentials = networkCredentials
' Create a new RequestStream to POST info (Synchronous call)
requestStream = httpRequest.GetRequestStream()
requestWriter = New StreamWriter(requestStream)
'Write Soap message into RequestStream
requestWriter.Write(soapBody)
' Cleanup
requestWriter.Close()
requestStream.Close()
' Create a new HttpWebResponse (Synchronous call)
Try
Dim httpResponse As HttpWebResponse = CType(httpRequest.GetResponse, HttpWebResponse)
Catch ex As Exception
Dim a, b, d As String
Dim c As Exception
a = ex.Source()
b = ex.Message
c = ex.InnerException
d = ex.StackTrace
End Try
ON HttpWebResponse i am getting an error "Internal Server error 500)...
I don;t know how to debug this or how to resolve...Please help me....
C)Here is my web method
----------------------------------
Public Function SaveCustomerService(ByVal CustomerService As String) As String
Try
Dim sUserName, sEmail, sCategory, sSubject, sMessage As String
sUserName = GetXmlValue(CustomerService, "username")
sEmail = GetXmlValue(CustomerService, "email")
sCategory = GetXmlValue(CustomerService, "category")
sSubject = GetXmlValue(CustomerService, "subject")
sMessage = GetXmlValue(CustomerService, "message")
Dim sResponse As String
sResponse = SaveCustomerService(sUserName, sEmail, sCategory, sSubject, sMessage)
Return sResponse
Catch ex As Exception
Dim a As New ThrowSoapException
a.myThrow()
End Try
PLEASE HELP ME............
Amit
|
|
|
|
|
I got this error when i run visual interdev at my pc..
Anyone can help me...
I'm using access
Error Code...
Microsoft JET Database Engine (0x80004005)
Operation must use an updateable query.
|
|
|
|
|
|
Either database is already open or some other application is using the database.
|
|
|
|
|
Hello,
I have on my web site an Asp.Net 2.0 web.sitemap file.
How can I convert it to a Google's sitemap file?
Thanks,
Miguel
|
|
|
|
|
Hello,
How to make a SiteMapDataSource to use a SiteMapProvider defined in Web.Config?
I think I should use something like:
MySiteMapDataSource.Provider = ...
However I don't know what to place in "...".
I tried to use a string with the name of the provider but it didn't work.
Thanks,
Miguel
|
|
|
|
|
|
It should be like this:
MySiteMapDataSource.Provider = SiteMap.Providers["ProviderName"];
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.
|
|
|
|
|
i want to make upload component with a progress bar poped up from aspx page when the file is uploaded to the server
if any one have any idea about this or this matter exist in any book plz support me with the sln
thanks to u in advance.
haitham
|
|
|
|
|
Hi, I need to validate users throug active directory in asp.net 2.0.
The users will be on diferents locations and dommains. The users aer part of differents companies with differents dommains, so for a single user I need to search the company at database and load the company settings to be able to do the authentication by active directory.
Is that possible?
Which active directory settings do I need to store for each company?
How can I do that validation?
I have the following snippept:
1. public bool AuthenticateUser(string domain, string username, string
2. password)
3. {
4. string domainAndUsername = domain + @"\" + username;
5. DirectoryEntry entry = new DirectoryEntry( LDAPPATH,
6. domainAndUsername,
7. password);
8. try
9. {
10. // Bind to the native AdsObject to force authentication.
11. Object obj = entry.NativeObject;
12. DirectorySearcher search = new DirectorySearcher(entry);
13. search.Filter = "(SAMAccountName=" + username + ")";
14. search.PropertiesToLoad.Add("cn");
15. SearchResult result = search.FindOne();
16. if(null == result)
17. {
18. return false;
19. }
20. // Update the new path to the user in the directory
21. LDAPPATH = result.Path;
22. }
23. catch (Exception ex)
24. {
25. throw new Exception("Error authenticating user.” + ex.Message);
26. }
27. return true;
28. }
Is the code I need? can you explain me how to contruct LDAPPATH?
Thank you I'm very newie with AD.
La realidad no es más que impulsos eléctricos del cerebro - Morpheus
|
|
|
|
|
|
Thank you very much.
The links are very very useful.
La realidad no es más que impulsos eléctricos del cerebro - Morpheus
|
|
|
|
|
Hello,
I have a Web.sitemap file. I created a SiteMapDataSource.
Every node on my Web.Sitemap have a property named Visible which is set to true or false.
I need my SiteMapDataSource to get only the nodes from Web.Sitemap which has the property Visible="True".
How can I do this?
Thanks,
Miguel
|
|
|
|
|
It looks like you have already asked this question and someone answered.
|
|
|
|
|
Hello,
In my Web.Config file I created the following:
<sitemap
defaultprovider="XmlSiteMapProvider">
<providers>
<add
name="MyWebSite_SiteMapProvider"
="" sitemapfile="~/Web.sitemap" type="System.Web.XmlSiteMapProvider">
How can I use this SiteMap provider in my page's VB.Net code?
Thanks,
Miguel
|
|
|
|
|
You will use it like this:
MySiteMapDataSource.Provider = SiteMap.Providers("ProviderName")
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.
|
|
|
|
|
Hello,
i' am working on a web-application, in asp,using c#.I have a page which demonstrates some search results in a detailsview(with more than one pages) and i want to export it to excell.I 've tried some methods but nothing happens.
It's very important
Thanks............
galatia
|
|
|
|
|
I'm trying to port an HTML Media Gallery to ASP.Net and things were moving right along until I hit the bump of wondering how to call this code from the Click Event of an ImageButton so that I can open the full size image in a pop-up window.
JavaScript:popUp('gallery/ViewTarget.aspx?Element=photos/photo1.gif&Description=A photo.')"><img height="81" alt="A photo." width="108" border="0" src="/gallery/photos/photo1.gif"
The above code was originally in an <href> tag and it worked fine. Can I do something similar in an ImageButton's click event?
<div class='ForumSig'></div>
|
|
|
|
|
Assign the javascript using the OnClientClick property
only two letters away from being an asset
|
|
|
|
|
|
Does anyone know of any examples of custom Members ships with a Sql database that is not created through the asp.net configuration? If so please help.
|
|
|
|
|
|
Hi,
I need urgent help for the situation iam facing. Appreciate any help.
The situation is very similar to what is achieved on this codeproject site. When someone tries to download some code sample or zip file without logging in it redirects the user to login first.
I also need to restrict access to image files, so if a user tries to access image file by entering the url, it should send to login page.
Since the images are opened individually, i am not opening them in any browser, so cannot write authentication code. Basically the images can be accessed directly by entering path. How to restrict it unless user is logged in?
Thanks,
stanwar.
|
|
|
|